number(only("CHF", convert(sum(value(position, #"2020-12-31")), "CHF", #"2020-12-31")))
If you don't have different currencies or prices involved it
becomes a lot simpler and you can drop those parts.
Regards,
Patrick
--
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/31497363-986a-4745-a202-526236c532d8n%40googlegroups.com.
Hi,
this is bean-query, I just limited it to the select part, for
your case it would be something like
number(only("CHF", convert(sum(value(position, #"2020-12-31")), "CHF", #"2020-12-31"))) WHERE account ~'Expenses'
Regards,
Patrick
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/3ca0d4b1-d0ad-4d8c-be56-01a449ec4c90n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/5545ee62-b2fd-4f06-be60-2cd4317fc808n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/69a20d6d-e762-45e3-95db-94c46c155895n%40googlegroups.com.