fava icon indicating copy to clipboard operation
fava copied to clipboard

Income Statement - Allow Filtering at Posting Level

Open jtpereyda opened this issue 3 years ago • 0 comments

I'd like to get an income report filtered by postings metadata, at the postings level. For example, given a transaction like this:

2022-09-02 * "" "Replacement outlets half main floor half upstairs"
  Expenses:Repairs 100 USD
    unit: "A"
  Expenses:Repairs 100 USD
    unit: "B"
  Assets:Checking -200

I'd like to get income statements that show totals for each "unit".

Is this possible with fava right now?

Edit: Getting similar data with bean-query could look like:

> bean-query issue-1479.beancount 'select date, account, position where account ~ "Expenses" and META("unit") ~ "A"'
   date        account      positio
---------- ---------------- -------
2022-09-02 Expenses:Repairs 100 USD

jtpereyda avatar Sep 12 '22 20:09 jtpereyda