Ooooh that could even be implemented directly in BQL if bean-query supported JOINs and sub-selects, something like this:
SELECT account, bal1, bal2 FROM (SELECT account, sum(cost(position)) as bal1 FROM CLOSE ON 2014-01-01 CLEAR) JOIN (SELECT account, sum(cost(position)) as bal2 FROM CLOSE ON 2015-01-01 CLEAR) ON account; On Tue, Jan 13, 2015 at 12:06 AM, Martin Blais <bl...@furius.ca> wrote: > Actually, more generally, it might be useful to write a utility script > that merges together multiple text reports that have a leftmost column of > account names, and anything on the right (balances or otherwise). This > would be a text-only operation and would work with the entire Ledgerverse. > > On Tue, Jan 13, 2015 at 12:04 AM, Martin Blais <bl...@furius.ca> wrote: > >> I've been meaning to make a multi-year version of this for a while, I >> think it's a useful report. In Beancount you'd write a Python script, load >> the contents of the file, create two or more "realization" objects (like a >> mapping) and merge them into a single table therein; pretty straightforward. >> >> >> >> >> >> On Mon, Jan 12, 2015 at 5:29 PM, Alexis H <surryh...@gmail.com> wrote: >> >>> Craig, >>> would mind to share your script or even add it to contrib/? >>> >>> Cheers, >>> Alexis >>> >>> -- >>> Sent from mobile >>> >>> -- >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Ledger" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to ledger-cli+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> > -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.