This is a brain storming I want to share with you 😆 .

I feel that PTA is very good to track every transaction but sometimes it is difficult to “understand” the evolution or if I am in the right path of my finances. It easy to know your expenses one month, year… (hledger bal expenses -p 2023 or hledger bal expenses: -M -p 2023). But it does not provide a good and quick picture if I am expending more or not.

I think that many use graphics to try to understand the trend of our personal finances. But I think it could be also achieved with text reports. I am thinking in two kind of reports:

  • Balance Report to compare the same period of time in the last years. For example, compare the Q1 (or months, or weeks…) of the last 3-4 years
hledger report-type-1 --period-report q1 --period 2020..2023 "expenses:"

                ||   Q1-2020   Q1-2021   Q3-2022
================++==============================
 expenses:...   ||  
  • Moving Average Report. For example, I can obtain the average expenses in the last 12 months with hledger bal expenses: -MA -p 2022.01..2023.01 and I could obtain the average 12 month expenses of the previous month with hledger bal expenses: -MA -p 2021.12..2022.12. The idea would be to have a report to know if I am spending less in average in the last X months and, not exactly month to month or quarter to quarter.
                ||   2022.11-Average-12m   2022.12-Average-12m   2023.01-Average-12m
================++==================================================================
 expenses:...   ||  

These are a bunch of ideas. Perhaps it should not be directly linked with the reporting capabilities of PTA. Perhaps it should be scripted with bash, with org-mode…

What do you think? How do you analyze your PTA data?

  • Simon Michael@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    11 months ago

    PS one big win for me has been switching to just for managing my hledger-related scripts efficiently. Now it’s cheaper for me to create new custom reports and to remember and reuse them.

    • zako@lemmy.worldOPM
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      11 months ago

      I totally agree with you that PTA is a-must to control finances but it not easy to analyze or understand in depth the financial situation (something that goes beyond the monthly or anual expenses, revenues, p/l… ). But information is there in the journals.

      I also migrated to just and it was a big change. I can think about the most useful-complex reports and make them available with a simple command to never forget them. And even when the report is displayed, the hledger command is displayed so I can remember/verify the meaning of the report. I have a bunch of reports I use often:

      • just common-expenses: all the discretional expenses (excluding taxes…) with my partner
      • just my-expenses: my personal discretional expenses (excluding taxes…)
      • just is: my overall inconmestatement
      • just is-job: my incomestatement of all the expenses (including taxes) against the revenues of my job. This report gives me my savings and I like this report because I prefer to assign the revenues of my investments to the ROI of my investments.
      • just roi: hledger roi ROI report of my investments

      I tried hledger-vega but it was a bit complex to maintain and to modify, but savings graph was really clarifying. It help me to understand what was really a saving in my journal.

      I will check https://hledger.org/scripts.html#hledger-combine-balances and https://hledger.org/scripts.html#hledger-bar. hledger-combine-balances is the first report I was interested in :).