So I am trying to output/mimic a Business Objects report and the user is able to query a specific reporting month which will pull a life to date balance along with the amounts that compose the current years transactions. I've cross tabbed the "Monetary Amount" based on the column header "Accounting Period" and added subtotals and grand totals and it looks good except now if I query to dataset that doesn't have 12 accounting periods the grand total column bombs out in the database.
