Hi,

yes you can do that (at least the amounts, the percentage I don't think so),


  'COMMODITY_META(str)': Get the metadata dict of the commodity directive of the
    currency.

btw. bean-query has a help and help sub commands which are very handy.


Regards,

Patrick

On 03.01.2024 12:54, Matt McCormick wrote:
Hello, I'm a newbie to beancount having transferred over from ledger and trying it out.

Is it possible to use bean-query to filter accounts with commodities where those commodities match a commodity attribute?

For example, I've added attributes to commodities like so to distinguish asset classes:

1970-01-01 commodity FXNAX
name: "FID US BOND IDX"
asset: "bonds"
2011-05-04 commodity FXAIX
name: "FID 500 INDEX"
asset: "stock"
...
I would like to generate a report that provides a breakdown of the current balances in USD for the asset classes ie.

bonds: $250 25%
cash: $100 10%
stock: $650 65%

I have a feeling this may be too advanced for bean-query's syntax.  I'm able to write a Python script if necessary but wanted to see if this would be possible using bean-query first.

Thank you
--
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/51c0dce1-2d75-4892-abc4-6ebe9432353en%40googlegroups.com <https://groups.google.com/d/msgid/beancount/51c0dce1-2d75-4892-abc4-6ebe9432353en%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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/133e32a0-be47-4062-a165-468aafdeeb3b%40tario.org.

Reply via email to