Forum Discussion
LASTDATE
- 7 years ago
Hello paris ,
The problem you are running into is filter context. On the total row for the matrix, because there is no city or region, so CALCULATE(Sales[7 days MA],LASTDATE(CALENDER[DATE])) is getting the last date from the calendar an only calcing for that date
You are going to end up with something like
MA = AVERAGEX ( VALUES ( Sales[City] ), [7 days MA] )
Are you able to share your .pbix file (uploade it to OneDrive or DropBox and share the link)?
Hello paris ,
The problem you are running into is filter context. On the total row for the matrix, because there is no city or region, so CALCULATE(Sales[7 days MA],LASTDATE(CALENDER[DATE])) is getting the last date from the calendar an only calcing for that date
You are going to end up with something like
MA = AVERAGEX ( VALUES ( Sales[City] ), [7 days MA] )
Are you able to share your .pbix file (uploade it to OneDrive or DropBox and share the link)?
Thank you for your help!
All the best,
LoveParis