Hi,
I would like to calculate the last X ( eg 7) number of units using
I have managed to get some way in this with Power query or DAX using the dates from sales table but I would like to reproduce the measure I have
but to work with the Calendar table ;
I want to Calculate a running total for the last 7 units ; in PQ I used SelectRows ;
![]()
Please Login or Register to view this content.
In DAX I started by summing the dates and then ranking them ;
Sumdate:=SUMX( Table3, Table3[Date])
Then using as them in running total measure ;
And then bewtweenn two rankings![]()
Please Login or Register to view this content.
So is there a way I can get this to work but for the 'calendar' table ? I have attached workbook with PQ, and DAX pivot.![]()
Please Login or Register to view this content.
Richard.
Bookmarks