From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: sum up variables from different org-mode tables Date: Mon, 19 Nov 2012 14:50:15 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaRju-0001pp-Uo for emacs-orgmode@gnu.org; Mon, 19 Nov 2012 08:50:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaRjr-0004xH-SC for emacs-orgmode@gnu.org; Mon, 19 Nov 2012 08:50:18 -0500 Received: from mail-vc0-f169.google.com ([209.85.220.169]:49591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaRjr-0004xB-Ni for emacs-orgmode@gnu.org; Mon, 19 Nov 2012 08:50:15 -0500 Received: by mail-vc0-f169.google.com with SMTP id fl17so5950501vcb.0 for ; Mon, 19 Nov 2012 05:50:15 -0800 (PST) In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Martin Gross Cc: Org Mode Hi Martin On Mon, Nov 19, 2012 at 12:54 PM, Martin Gross wrote: > Just one point is not yet optimum to me: I do not have just 2 tables, > but hundreds. It would be hard and not very clean to add them all one > by one. Do you know if it there is a better way to reference remote > tables? For example telling org-mode to search data from all tables > but "this" one? I don=92t know a way to tell Org =93all other tables in this file=94. And this: On Fri, Nov 16, 2012 at 4:16 PM, Michael Brand wrote: > A nice solution for variant 2 would be if > @2$3..@2$7 =3D remote(A, @>>$$#) :: @3$3..@3$7 =3D remote(B, @>>$$#) > could be simplified to > @I$3..@II$7 =3D remote($8, @>>$$#) is only a partial solution for you because - although moved from the formula to the result table - the table enumeration is still necessary. But if it=92s just summing up disjoint sets hierarchically you might consider column view with =937.5.1.2 Column attributes=94 from the manual to show the sums for each heading, like: #+COLUMNS: %20ITEM %6In_num{+;%6d} %6In_EUR{+;%6.2f} %6Out_num{+;%6d} %6Out_EUR{+;%6.2f} * total ** Institution A *** In **** Title P :PROPERTIES: :In_num: 1 :In_EUR: 45 :END: *** Out **** Title A :PROPERTIES: :Out_num: 1 :Out_EUR: 15 :END: **** Title B :PROPERTIES: :Out_num: 2 :Out_EUR: 28 :END: ** Institution B *** In **** Title Q :PROPERTIES: :In_num: 1 :In_EUR: 24 :END: *** Out **** Title C :PROPERTIES: :Out_num: 2 :Out_EUR: 31 :END: Unfortunately formatting takes place only for calculations and not for the raw source values which for me is at least a missing feature. Michael