On Monday, May 27, 2019 at 1:45:18 PM UTC+7, [email protected] wrote: > > 1. Option --display in ledger-cli allows to select a period of time to > which the output should be limited. This only affects the printing of > results but does not apply a filter for selecting the data from the > ledger. > I use it like this: > > ledger --display "d>=[this month]" register Assets:Checking > This gives me all activities on my checking account for the current > month. The last column showing the total equals the balance of my actual > bank account. This makes the comparison between my ledger file and my bank > account quite easy. > > I've never used ledger but is this the same (or similar) output as you get from bean-query with something like:
bean-query my.bean "select date,flag,payee,narration,position,balance from OPEN ON 2019-05-01 WHERE account ~ 'Assets:Checking' " ? I don't think there's an easy way to get an average for your other question. You could do bean-query --numberify -f csv my.bean "select date,balance from OPEN ON 2019-05-01 WHERE account ~ 'Assets:Checking'" | script-that-does-math and calculate the time-weighted average. Though that's clearly not nearly as convenient as ledger having it built in. -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/bf5c457b-94ea-4b7b-899f-94ef8b7c833f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
