From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: columnview: add a formula?
Date: Sun, 24 Jul 2022 09:41:55 +0200 [thread overview]
Message-ID: <87wnc39cu4.fsf@mat.ucm.es> (raw)
Hi
I have the following setting
#+begin_src
* Everything
:PROPERTIES:
:COLUMNS: %TODO %ITEM %Cash %Card
:END:
** WAIT Hotel
:PROPERTIES:
:Cash: 100
:Card: 200
:Result:
:END:
** WAIT Flight
:PROPERTIES:
:Cash: 300
:Card: 200
:Result:
:END:
#+BEGIN: columnview :maxlevel 2 :skip-empty-rows t :hlines 1 :indent nil :format "%5TODO(Status) %5ITEM %4Cash(Cash) %5Card(Card) %5Result(Result)"
| Status | ITEM | Cash | Card | Result |
|--------+--------+------+------+--------|
| WAIT | Hotel | 100 | 200 | |
| WAIT | Flight | 300 | 200 | |
#+END:
#+end_src
However I would like to have result, the last column to be calculated by
summing so something like this
#+begin_src
#+BEGIN: columnview :maxlevel 2 :skip-empty-rows t :hlines 1 :indent nil :format "%5TODO(Status) %5ITEM %4Cash(Cash) %5Card(Card) %5Result(Result)"
| Status | ITEM | Cash | Card | Result |
|--------+--------+------+------+--------|
| WAIT | Hotel | 100 | 200 | 300 |
| WAIT | Flight | 300 | 200 | 500 |
#+TBLFM: $5=$3+$4;f2
#+END:
#+end_src
Any idea how to achieve this automatically?
regards
Uwe Brauer
--
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
reply other threads:[~2022-07-24 7:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87wnc39cu4.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--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).