Ah thank you I will try that out.  I was looking for something like "help 
functions`.  I see the functions are under `help from`

I also came across the Fava Classy Portfolio extension listed in the 
External Contributions doc which seems very close to what I'm after.  I 
will give that a try.

On Wednesday 3 January 2024 at 13:52:29 UTC Patrick Ruckstuhl wrote:

> 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 beancount+...@googlegroups.com.
> 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 beancount+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/2dd11948-b503-4856-a8c4-f7e35e88ef6an%40googlegroups.com.

Reply via email to