Forum Discussion

amirabedhiafi's avatar
amirabedhiafi
Icon for Impactful Individual rankImpactful Individual
5 years ago
Solved

get the last N weeks data

I have the following model : 

 

 

I want to calculate using DAX the Last N Weeks Covid cases excluding the current week. The numbers should change dynamically with the What-if-Parameters selection. The parameter starting from 2 and increasing incrementally by 1 till 28 weeks.

This is my expected output :

5 Replies