Forum Discussion
Wagwo0rd4powerb
2 years agoRegular Visitor
Calculating 3 Month rolling total not working when value is blank
Example of my code: Oct2023 is blank and therefore no value displays. Please advise.
Wagwo0rd4powerb
2 years agoRegular Visitor
This also does not work...
3 Months CaseCounQTY Rolling Total = CALCULATE(SUM(MDSProduction[Amount Case Count])+0,
DATESINPERIOD(MDSProduction[Month Year Date],LASTDATE(MDSProduction[Month Year Date]),-3,MONTH))
Anonymous
2 years agoNot applicable
Hi Wagwo0rd4powerb ,
Try using the following expression:
3MonthRollingTotal =
CALCULATE(
SUMX(
Table,
IF(ISBLANK(Table[Value]), 0, Table[Value])
),
DATESINPERIOD(
Table[Date],
LASTDATE(Table[Date]),
-3,
MONTH
)
)
Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.