Forum Discussion
ApurvaKhatri
8 years agoHelper III
To fetch previous week data
I have a table viewKPI with column [todate] and [lease seated] I want to calculate sum([lease seated]) for last week from the column [todate]. How can I acheive this
- 8 years ago
Hi ApurvaKhatri,
You can create a measure below:
LastWeekTotal = CALCULATE(SUM(Table1[lease seated]),FILTER(ALL(Table1),WEEKNUM('Table1'[todate],1)=WEEKNUM(TODAY(),1)-1))
Best Regards,
Qiuyun Yu
v-qiuyu-msft
8 years agoCommunity Support
Hi ApurvaKhatri,
You can create a measure below:
LastWeekTotal = CALCULATE(SUM(Table1[lease seated]),FILTER(ALL(Table1),WEEKNUM('Table1'[todate],1)=WEEKNUM(TODAY(),1)-1))
Best Regards,
Qiuyun Yu
Anonymous
4 years agoNot applicable
What if it is weeknum 1 and we need weeknum 52?