SELECT JJ.Account, JJ.DrCr, SUM( JJ.Amount ) FROM JJ, Account WHERE JJ.Account = Account.Account AND JJ.Date >= {d ‘2022-01-01’ } AND ( Account.Type = ‘expense’ OR Account.Type = ‘revenue’ ) GROUP BY JJ.Account, JJ.DrCr ORDER BY JJ.Account ASC, JJ.DrCr DESC
The date is being used as a filter. I only want the stuff in the current year. I would like to replace the “2022-1-1” with the solution. I am in the process of switching from access to libre.
. I’m still very new to libreoffice.