Monthly expenses report

Similar to “Expenses, Income and Loans/Mortgage monthly totals”, but now showing all expense subaccounts.

SELECT
    year, month, account, sum(position)
FROM
    date > 2015-01-01 AND date < 2016-02-29
WHERE
    account ~ "Expenses"
    GROUP BY year, month, account
    ORDER by year, month, account
    FLATTEN