My mistake. It still shows all three lines when I use your corrected 
command. The --collapse flag only collapses my income and tax sub accounts 
to their root accounts.

On Wednesday, May 2, 2018 at 2:33:40 PM UTC-7, Jostein Berntsen wrote:
>
> On 02.05.18,11:37, Shane wrote: 
> > I'm trying to plot my net income (income - taxes): 
> > 
> > led bal -e 2018-04-30 bal inc 2018 --collapse 
> > 
> > The output looks like: 
> > 
> >         1,000.00 USD  exp 
> >        -4,000.00 USD  inc 
> > -------------------- 
> >        -3,000.00 USD 
> > 
> > When I want to generate a format for gnuplot (by adding the -J 
> argument), 
> > the output still shows all three lines. 
> > 
> > led bal -e 2018-04-30 bal inc 2018 --collapse -J 
> > 
> > 2018-04-21 1,000.00 
> > 2018-04-21 -4,000.00 
> > 2018-04-21 -3,000.00 
> > 
> > How do I only display the *total*--the -3,000.00 USD? 
> > 
>
> The --collapse command should work here, but it seems like you have the 
> bal commend two times in your command above. Can you check if this works 
> for you instead? 
>
> ledger bal -e 2018-04-30 inc --collapse -J 
>
>
> Jostein 
>

-- 

--- 
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