Thanks. With the example above, though, it does not seem to suppress 0
groups (unless I just need to upgrade ledger or something?)

glasser@perseid 0 /tmp $ ledger -f fsa.ledger bal --group-by "tag('FSA')"  %FSA
R1234
               $-100  Assets:FSA
                $100  Expenses:Healthcare
--------------------
                   0

R2345
                 $50  Expenses:Healthcare

On Sat, Jan 10, 2015 at 12:48 AM, Stefano Zacchiroli <[email protected]> wrote:
> On Fri, Jan 09, 2015 at 10:18:57AM -0800, David Glasser wrote:
>> Maybe that's the question I'm asking :)  Neither -n or
>> --collapse-if-zero do the trick here; they both  just report "FSA $50"
>> which is missing the R2345 part I do care about.
>
> Try this:
>
>   ledger bal --group-by "tag('FSA')" %FSA
>
> I use a slightly different tagging scheme, but when grouping ledger does
> suppress "groups" that balance to 0 (unless you also pass --empty).
>
> Cheers.
> --
> Stefano Zacchiroli  . . . . . . .  [email protected] . . . . o . . . o . o
> Maître de conférences . . . . . http://upsilon.cc/zack . . . o . . . o o
> Former Debian Project Leader  . . @zack on identi.ca . . o o o . . . o .
> « the first rule of tautology club is the first rule of tautology club »
>
> --
>
> ---
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.



-- 
[email protected] | langtonlabs.org | flickr.com/photos/glasser/

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to