Forum Discussion
Previous Month to Date
- 5 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)
Hi Greg_Deckler
Please see the screesnhot below,
2020 year total is giving e the corrcet sum of 2020 months
But the measures I used to get the previous month value is correct. Every month is giving the previous month value but the Total of all the months values showing in sub total is incorrect.
WhatI can do for that.
thanks.
Hi,
I am confused but I'd also like to help you. Please show clearly in an MS Excel file, the result you are expecting.
- cham5 years ago
Post Patron
Please find the below details,
This is the Power BI table - which is not givingthe current SUB total of 2019 months
This is the excel data set, Power BI sub total needs to be as below highlited total.
Thanks,
- Greg_Deckler5 years ago
Community Champion
cham Try:
Measure Total = VAR __Total = SUMX(SUMMARIZE('Table',[End of Month],"__PrevMonth",[PreviousMonthMeasure]),[__PrevMonth]) RETURN IF(HASONEVALUE('Table'[End of Month]),[PreviousMonthMeasure],__Total)- cham5 years ago
Post Patron
hi Greg_Deckler ,
Its not giving the correct totals what I want. Thank measure change my month totals as well.
- Ashish_Mathur5 years ago
Super User
Hi,
Share the link from where i can download your PBI file.