Forum Discussion
DataVitalizer
Super User
7 years agoPreviousMonth returns blank values [DAX]
Hi Community, I have two tables T1 contains values for each store by city and date, and T2 is a date table The problem shows up when trying to return the previous value of the store all returned va...
- 7 years ago
Hi DataVitalizer,
You can create a measure below:
PreviousMonth = CALCULATE(SUM(Table1[MonthlyValue]),PREVIOUSMONTH('Datetable'[Date]),ALLEXCEPT(Table1,'Table1'[City],'Table1'[Store]))Best Regards,
Qiuyun Yu
v-qiuyu-msft
Community Support
7 years agoHi DataVitalizer,
You can create a measure below:
PreviousMonth = CALCULATE(SUM(Table1[MonthlyValue]),PREVIOUSMONTH('Datetable'[Date]),ALLEXCEPT(Table1,'Table1'[City],'Table1'[Store]))
Best Regards,
Qiuyun Yu
Qiuyun Yu
DataVitalizer
Super User
7 years agoThank you v-qiuyu-msft. I do appreciate your help