Forum Discussion
cham
Post Patron
4 years agoPrevious Month to Date
Hi I have a issue with Matrix table sub total, I have craeted below measures Amount Sales = SUM(Sales[Amount]) Prev Month To Date = IF([MTH]=1, 0, CALCULATE ([Amount Sales], DATEADD(Calender...
- 4 years ago
cham Try:
Measure Total = VAR __Total = SUMX(SUMMARIZE('Table',[End of Month],"__PrevMonth",[PreviousMonthMeasure]),[__PrevMonth]) RETURN IF(HASONEVALUE('Table'[End of Month]),[PreviousMonthMeasure],__Total)
Greg_Deckler
Community Champion
4 years agocham Can you post sample data as text so that we can replicate the issue?
cham
Post Patron
4 years agoHi Grey Your measure worked on this. Thank you so much for your help.