Hi,
Can someone help or point me in the direction of information re time intelligence, and how they work in relation to the 'calendar date' table and the date table coming from a fact or dim table.
I have two very similar measures ;
3 day back dateadd:=CALCULATE([sSales], DATEADD(fSales[Order Date],-3,DAY))
this is using the dats from the sales order date column and seems to work fine with a pivot created using that date table.
this
fSales Dates one month back:=CALCULATE([sSales], DATEADD(fSales[Order Date],-1,MONTH))
this does not work even though the only thing changed is the number and type of period?
if i re write using calendar dates and create pivot uinng those dates it woks fine, but then I can't use a measure such as ;
Rolling 3 day total:=VAR mdate = MAX(fSales[Order Date])
RETURN
SUMX(FILTER(ALL(fSales[Order Date]),fSales[Order Date]<= mdate &&
fSales[Order Date] > mdate - 3 ),[sSales] ),
In fact I 'd be interested to know if there's a way of writing this using the 'Calendar Date' table. I've attached a very simple workbook, showing the two pivots and the above measures.
Richard.
Bookmarks