The problem is the source data doesn't necessarily have an entry for each month.
But for example they may not be a "Forecast Claim Amount" for the "Enter Vendor Contract" for Jan, Feb, Mar. It may only be for Jan.
So what the report does is in Feb or Mar it doesn't remember that it had an entry for Jan.
Is there a way to ensure the Query Table has an entry for every month - including zero - for each "Enter Vendor Contract" interation???
SELECT
"Forecast Claim Date" 'DATE',
"Forecast Claim Amount" 'FORECAST AMOUNT',
0 AS 'CLAIM AMOUNT',
"Enter Vendor Contract"."EDV Reference" 'EDV'
FROM "Sub-Form Claim Forecast"
JOIN "Enter Vendor Contract" ON "Enter Vendor Contract"."ID" = "Sub-Form Claim Forecast"."Enter Vendor Contract"
WHERE ("Forecast Claim Date" BETWEEN DATE_SUB(STR_TO_DATE('2020-01-01', '%Y-%m-%d'), INTERVAL 1 MONTH) and '2025-12-31')
UNION ALL
SELECT
"Claim Date",
0,
"Payment Line Amount",
"Enter Vendor Contract"."EDV Reference"
FROM "Sub-Form - Claim"
JOIN "Enter Vendor Contract" ON "Enter Vendor Contract"."ID" = "Sub-Form - Claim"."Enter Vendor Contract"
WHERE ("Claim Date" BETWEEN DATE_SUB(STR_TO_DATE('2020-01-01', '%Y-%m-%d'), INTERVAL 1 MONTH) and '2025-12-31')