Here are some procedures you can use to collect budgetted and spent amounts in TinyDB, and a procedure to export them as a table, filtered by date range and category, if desired.
The procedures are draggable.
The table is suitable for use with any of the sorting techniques in





