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 Try:
Measure Total =
VAR __Total = SUMX(SUMMARIZE('Table',[End of Month],"__PrevMonth",[PreviousMonthMeasure]),[__PrevMonth])
RETURN
IF(HASONEVALUE('Table'[End of Month]),[PreviousMonthMeasure],__Total)cham
Post Patron
4 years agohi Greg_Deckler ,
Its not giving the correct totals what I want. Thank measure change my month totals as well.
- Greg_Deckler4 years ago
Community Champion
cham Can you post sample data as text so that we can replicate the issue?
- cham4 years ago
Post Patron
Hi Grey Your measure worked on this. Thank you so much for your help.