From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: [SOLVED aggregate] (was: send the content of one column of a table to another table) Date: Tue, 10 Apr 2018 14:13:12 +0200 Message-ID: <871sfni7jb.fsf@mat.ucm.es> References: <87y3hvickd.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5s9P-0004v2-ET for emacs-orgmode@gnu.org; Tue, 10 Apr 2018 08:13:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5s9K-0006gG-I4 for emacs-orgmode@gnu.org; Tue, 10 Apr 2018 08:13:27 -0400 Received: from [195.159.176.226] (port=46801 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f5s9K-0006fo-B0 for emacs-orgmode@gnu.org; Tue, 10 Apr 2018 08:13:22 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1f5s7C-0004MJ-Lv for emacs-orgmode@gnu.org; Tue, 10 Apr 2018 14:11:10 +0200 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: emacs-orgmode@gnu.org >>> "Uwe" == Uwe Brauer writes: > Hi > I want to do something simple, just sending (pushing) a column of > one table to another column of another table. I know about > orgtbl-join but I can't get it to work, besides I don't need all > its sophistication. Hi It seems that the following does what I want. #+begin_example #+NAME: original | Day | Color | Level | Quantity | |-----------+-------+-------+----------| | Monday | Red | 30 | 11 | | Monday | Blue | 25 | 3 | | Tuesday | Red | 51 | 12 | | Tuesday | Red | 45 | 15 | | Tuesday | Blue | 33 | 18 | | Wednesday | Red | 27 | 23 | | Wednesday | Blue | 12 | 16 | | Wednesday | Blue | 15 | 15 | | Thursday | Red | 39 | 24 | | Thursday | Red | 41 | 29 | | Thursday | Red | 49 | 30 | | Friday | Blue | 7 | 5 | | Friday | Blue | 6 | 8 | | Friday | Blue | 11 | 9 | #+BEGIN: aggregate :table original :cols "Day Color" | Day | Color | |-----------+-------| | Monday | Red | | Monday | Blue | | Tuesday | Red | | Tuesday | Blue | | Wednesday | Red | | Wednesday | Blue | | Thursday | Red | | Friday | Blue | #+END #+end_example