emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mikael Fornius <mfo@abc.se>
To: "Dennis Groves (CISG)" <degroves@microsoft.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Properties and Columns
Date: Fri, 07 Nov 2008 17:01:37 +0100	[thread overview]
Message-ID: <87tzajle3i.fsf@abc.se> (raw)
In-Reply-To: <C5391FFE.8FD2%degroves@microsoft.com> (Dennis Groves's message of "Thu, 6 Nov 2008 22:28:14 +0000")

"Dennis Groves (CISG)" <degroves@microsoft.com> writes:

> Can anbody give me some examples of how they use the Properties and Columns
> stuff - it looks like that would be way more flexible and useful than what I
> did with all my spreadsheets...

Say we want to collect body weight data. I would make notes of my weight
in a timestamped heading with the weight as property:

M-RET
C-c . RET
M-x org-set-property

Results in entry:

* <2008-11-07 fre>
  :PROPERTIES:
  :weight:   68
  :END:

With point on property-drawer magic key C-c C-c makes adding more or
editing properties easy.

Now I define what columns to show with: 

#+COLUMNS: %TIMESTAMP %weight

now when doing C-c C-x C-c on the heading will show the data as a table
row instead of a heading. Columns can be defined globally (as I did in
my example) or for a subtree by setting :COLUMNS: property in root of
folding tree.

For more info see info page
M-: (info "(org) Properties and Columns")

Personally I think it is cool to be able to view headings as columns
although the alignment of the columns is not in a straight line when
viewing over many subtrees.

It is nice that org-columns preserves the tree view you have folded, so
you can limit your columns view with tag searches.

At the top of the columns table there is headlines and you can tell org
to sum a column and have it displayed, sum times or numbers. Thats it as
far as I know.

> How would you do calculations for calculated or derived data from the data
> points you do gather? (for example, I do lean body mass calculations based
> on a number of physical metrics I gather each day...)

You can dump a org-columns view to a standard org-table with a dynamic
block, then maybe apply some table formulas on it for more advanced use.

I am not sure if the TABLEFM can be kept outside of the dblock? (So it
is not erased when updating.)

/Mikael Fornius

      reply	other threads:[~2008-11-07 16:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-06 22:28 Properties and Columns Dennis Groves (CISG)
2008-11-07 16:01 ` Mikael Fornius [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tzajle3i.fsf@abc.se \
    --to=mfo@abc.se \
    --cc=degroves@microsoft.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).