From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gLMGG2f43GIZSgEAbAwnHQ (envelope-from ) for ; Sun, 24 Jul 2022 09:44:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GBArG2f43GJlmQAA9RJhRA (envelope-from ) for ; Sun, 24 Jul 2022 09:44:39 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 522801B7CB for ; Sun, 24 Jul 2022 09:44:38 +0200 (CEST) Received: from localhost ([::1]:38940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFWI1-0008VE-2z for larch@yhetil.org; Sun, 24 Jul 2022 03:44:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFWFe-0008Tv-KT for emacs-orgmode@gnu.org; Sun, 24 Jul 2022 03:42:11 -0400 Received: from ciao.gmane.io ([116.202.254.214]:38444) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFWFW-0002PE-PO for emacs-orgmode@gnu.org; Sun, 24 Jul 2022 03:42:04 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1oFWFV-000AYW-1g for emacs-orgmode@gnu.org; Sun, 24 Jul 2022 09:42:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-orgmode@gnu.org To: emacs-orgmode@gnu.org From: Uwe Brauer Subject: columnview: add a formula? Date: Sun, 24 Jul 2022 09:41:55 +0200 Message-ID: <87wnc39cu4.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:87KQqVUs4ygGdKDBXKUBG5bZ2K0= Mail-Copies-To: never Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658648679; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=lcy2IkvbmyRw+9RqO2vEsEjPWqXq4gOtnVNBjj+VRTY=; b=UlvANQHkwEm2Q/694L4S3mtR4WwuMO9xOi4DnUFeefrJ66V1CaL9c/O/QL1yVj6jpx6eIB dmzKY/TcCR+vDeNHMz2OUiY9Ji/8NcI1fP5VMBc3YofSAgjso/cfznY39OQytA32bK2nZ/ 9kGyIxeIBO6H3edjI5WL5ZXq6rFHjMDBId45BICHfj+Jf2cczZJmwqRBjBuAiEZpAqj7I4 NwIrco3z6KyuL3uY3Ev7lT2Sh8dSigQf7Xgz/xgry3Fnd+mF86KOv7dZSgyt1VgdLSOPRm NST2XlOsEGLRlAz5lC9sYBljLOf6nqpNcXGy6U+nkVH2Dm5s/ZemYP1HzpddBg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658648679; a=rsa-sha256; cv=none; b=Zkd6gxUpd/D8K9voJXR8HQJ6PlXOw/qWg6TBr0+5kcAY4Cj25sjMOXg/pkF7NFbsQs/qKj eAA++IijTN1+iMGRoBvegl1B96Jia3tdMtkfiERQbB9Tg6fJG7InIHVm5nbZtLfL0/MqQK dmUpgTpOGGCWnQnkJA7it85sOgOMSLet3m2yF+eJkaSdkmUinwH5ewqzozZDpoyzyCliw9 HlXMU9+IBM75cSExi8OvYqa+wP+u0/4y01dkpZl+SwLxS+512GQSwy27+QfEBGMqaTa0p3 Fah2cvY+pTZ81nz4+zju2vShPDlVkMGWF4Wnqh0nQayelRYpNDDJXm0lO0wncw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=mat.ucm.es (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.47 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=mat.ucm.es (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 522801B7CB X-Spam-Score: 3.47 X-Migadu-Scanner: scn0.migadu.com X-TUID: cP4tToHWebMi 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.