$ hledger bal -f tmp.journal --yearly Income:Gains
Balance changes in 2018-01-01..2021-12-31:
|| 2018 2019 2020 2021
==============++========================
Income:Gains || 0 0
--------------++------------------------
|| 0 0
$ hledger bal -f tmp.journal -p 2019 Income:Gains
-93.56707511000000000000000000 EUR Income:Gains
--------------------
-93.56707511000000000000000000 EUR
$ hledger bal -f tmp.journal -p 2020 Income:Gains
-1094.29560548000000000000000000 EUR Income:Gains
--------------------
-1094.29560548000000000000000000 EUR
I don't understand what is going on here. The --yearly report has always worked for me, and that stopped recently.
Now I cannot decide whether my understanding is wrong, or hledger has regressed. In any case, it is surprising.