Hi,
I'm trying to do a 7 day rolling total in DAX, I've followed a similar structure to what I'd do in excel, in excel I wouldn't have the first condition, just greater than;
< moving := VAR abc = MAX(Table1[Date]),
RETURN
CALCULATE([sumofunitsl],
FILTER(ALL(Table1[Date]),Table1[Date]<=abc && Table1[Date] > DATEADD(Table1[Date],-7,DAY)) >
I know there is 'dates in period' but i don't have a calendar table in this instance. I'm sure i've managed this in the past but don't seem to have saved a
copy.
Help,
Richard.
I'm trying to do a 7 day rolling total in DAX, I've followed a similar structure to what I'd do in excel, in excel I wouldn't have the first condition, just greater than;
< moving := VAR abc = MAX(Table1[Date]),
RETURN
CALCULATE([sumofunitsl],
FILTER(ALL(Table1[Date]),Table1[Date]<=abc && Table1[Date] > DATEADD(Table1[Date],-7,DAY)) >
I know there is 'dates in period' but i don't have a calendar table in this instance. I'm sure i've managed this in the past but don't seem to have saved a
copy.
Help,
Richard.