Forum Discussion
Mewan117
3 years agoFrequent Visitor
Rolling Total Month on Month
Hello All, I currently have the following data in table form. I need to have the monthly totals as a rolling total and visualize it. Eg: August would show 23+3569 and September will show 23+3569...
- Anonymous3 years ago
Hi Mewan117 ,
Please try:
Cumulative = CALCULATE ( DISTINCTCOUNT(Total[orderId]), FILTER (ALLSELECTED(Total),[Date]<=MAX('Total'[Date])))Corrcet Total of Cumulative = var _t= SUMMARIZE('Total',[Date],"Cum",[Cumulative]) return IF(HASONEVALUE(Total[Date]),[Cumulative], SUMX(_t,[Cum]))Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
3 years agoNot applicable
Hi Mewan117 ,
Please try:
Cumulative = CALCULATE (
DISTINCTCOUNT(Total[orderId]), FILTER (ALLSELECTED(Total),[Date]<=MAX('Total'[Date])))Corrcet Total of Cumulative =
var _t= SUMMARIZE('Total',[Date],"Cum",[Cumulative])
return IF(HASONEVALUE(Total[Date]),[Cumulative], SUMX(_t,[Cum]))
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.