From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Conditional summing in column-mode? Date: Fri, 25 Aug 2017 09:55:29 +0200 Message-ID: <87bmn4ytce.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41398) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dl9So-0002p3-CW for emacs-orgmode@gnu.org; Fri, 25 Aug 2017 03:55:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dl9Sn-0003wh-9x for emacs-orgmode@gnu.org; Fri, 25 Aug 2017 03:55:34 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:46881) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dl9Sn-0003vf-2B for emacs-orgmode@gnu.org; Fri, 25 Aug 2017 03:55:33 -0400 In-Reply-To: (Stig Brautaset's message of "Thu, 24 Aug 2017 16:49:50 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Stig Brautaset Cc: emacs-org list Hello, Stig Brautaset writes: > I have the following column-mode defined in =~/org/Holidays.org=: > > #+BEGIN_SRC org > ,#+COLUMNS: %TIMESTAMP(When) %ITEM(What) %CONFIRMED(Confirmed?){X/} %DAYS(Days){+} > ,#+Confirmed_ALL: "[ ]" "[X]" > ,#+TODO: TODO | DONE CANCELLED > #+END_SRC > > Is it possible to have the =%DAYS(Days){+}= part only sum up rows that > have an =[X]= in their =Confirmed?= property? Not out of the box. But you could write a function creating and updating another property, e.g., CHECKED_DAYS and have columns view display this instead. Regards, -- Nicolas Goaziou