From: Stefan Huchler <stefan.huchler@mail.de>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: how to group together fields
Date: Mon, 03 Feb 2014 16:25:44 +0100 [thread overview]
Message-ID: <8738k09q13.fsf@mars.lan> (raw)
In-Reply-To: <87txcgy3ya.fsf@bzg.ath.cx> (Bastien's message of "Mon, 03 Feb 2014 09:51:09 +0100")
Hi Bastien,
I want to extract Information with ColumnView from a org-tree, that
works like group-by in a select statement.
so if I have a tree like that:
* Tea Database
:PROPERTIES:
:COLUMNS: %Shop(Shop) %rating(Rating){mean}
:END:
** Tea Shop 1
:PROPERTIES:
:Shop: Tea Shop 1
:END:
*** Order 1
:PROPERTIES:
:END:
**** Tee 1
:PROPERTIES:
:blend: Pussimbing
:rating: 1
:END:
*** Order 2
:PROPERTIES:
:END:
**** Tea 1
:PROPERTIES:
:blend: Pussimbing
:rating: 5
:END:
**** Tea 2
:PROPERTIES:
:blend: Steinthal
:rating: 7
:END:
** Tea Shop 2
:PROPERTIES:
:Shop: Tea Shop 2
:END:
*** Tea 1
:PROPERTIES:
:blend: Pussimbing
:rating: 6
:END:
*** Tea 2
:PROPERTIES:
:blend: Steinthal
:rating: 8
:END:
that works so far, I can see a list of shops and there mean ratings.
I want now as another "table" a second columns line what I would
comment out with the current :COLUMNS: line that would look like that:
:COLUMNS: %blend(Blend){groupby blend} %rating(Rating){mean}
I get with the 1. COLUMNS line something like that:
Tea Shop 1 | 5.0 | ...
Tea Shop 2 | 7.0 | ...
I want another output that looks like that:
Blend 1 | 6.0 | ...
Blend 2 | 3.0 | ...
btw blend is the wrong word, in this case it would be the origin tea
garden, but thats only a context detail ;)
The idea is that I give in data and a score for the tea, and I can look
than which tea blends I liked most and which shop gave me best quality.
hope its clear now ;)
Bastien <bzg@gnu.org> writes:
> Hi Stefan,
>
> (Hint: use `S W' from Gnus to reply to this email.)
>
> Stefan Huchler <stefan.huchler@mail.de> writes:
>
>> If Bastien could look over it, it would be nice.
>
> The thread is a bit difficult to read -- can you make a summary
> of what is the bug report or the feature request?
>
> Thanks!
next prev parent reply other threads:[~2014-02-03 15:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-30 15:45 how to group together fields Stefan Huchler
2014-01-31 11:44 ` Alexander Baier
[not found] ` <87r47nshuh.fsf@mars.lan>
2014-02-01 11:03 ` Alexander Baier
[not found] ` <87mwibrs5u.fsf@mars.lan>
2014-02-01 11:46 ` Alexander Baier
[not found] ` <87ioszrr6l.fsf@mars.lan>
2014-02-01 12:33 ` Alexander Baier
2014-02-01 13:02 ` Stefan Huchler
2014-02-03 8:51 ` Bastien
2014-02-03 15:25 ` Stefan Huchler [this message]
2014-02-22 20:20 ` Michael Brand
2014-02-23 1:12 ` Stefan Huchler
2014-02-23 7:32 ` Michael Brand
2014-02-22 15:19 ` Stefan Huchler
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=8738k09q13.fsf@mars.lan \
--to=stefan.huchler@mail.de \
--cc=bzg@gnu.org \
--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).