May help if you can share an example. The "*" shouldn't matter, all that 
will do is show sub-accounts in the treeview of accounts (helpful if you 
have say "Income:Business:Company1:ProductA", ProductB, etc.). 


I was a bit hasty in my first reply, I copied it from a usecase I track for 
work-related expenses and reimbursements - where my filter is 
"any(account:"Expenses:WorkExpensables:*"), 
any(account:"Income:WorkExpensables:*")"


[image: Screen_Shot_2019-09-24_at_11_14_35_AM.png]


It can have issues, though, in showing things outside of Company1 if you 
have transactions that have multiple postings dealing with the root 
'Company1' and outside of 'Company1'. 
In my above image, I actually have this showing up in one 'Food-Dining' 
Transaction where it looked like

2018-01-01 * "RESTAURANT" "dinner"
  Liabilities:CreditCard   -20 USD
  Expenses:CompanyA:Food             10 USD 
  Expenses:Personal:Food          10 USD

I haven't figured out how to handle this scenario elegantly yet, some just 
split these types of transactions out.

The any expression is particular to fava and documented in it's own help 
menu (e.g. see: 
https://fava.pythonanywhere.com/huge-example-file/help/filters/ ) . some 
more discussion in https://github.com/beancount/fava/issues/768 
 
-Vivek


On Tuesday, September 24, 2019 at 8:59:13 AM UTC-7, [email protected] wrote:
>
> And where can i read more on this "any(account:"X"), any(account:"X*")" 
> expression ?
> Can't find it in neither in fava nor in beancount docs.
>
> On Tuesday, August 27, 2019 at 3:35:47 PM UTC-4, [email protected] wrote:
>>
>> Guys hi,
>>
>> Is it possible to chart difference between 2 accounts ?
>>
>> Let say i have 2 accounts
>> Income:Business:Company1
>> Expenses:Business:Company1
>>
>> Right now i see charts for them individually at
>> localhost:5000/myledger/account/Income:Business:Company1 and
>> localhost:5000/myledger/account/Expenses:Business:Company1
>>
>> Can i see chart for "Income:Business:Company1" + 
>> "Expenses:Business:Company1" ?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/27d388f9-7230-4a78-aed9-4323dbe20028%40googlegroups.com.

Reply via email to