Hi,
Cross posted Excel Forum ;
Can someone help with this I have a Keepfilter measure;
but I would like to take the dates from another table, not use DATE( ) ,
and while this give the correct overall total, when dropped into a table or matrix it does not 'see' the dates there, it's as if I'd just used filter.
I have got aroung this by using the following;
This works but I don't know why the other doesn't can anyone help?
Richard.
Cross posted Excel Forum ;
Excel Formula:
https://www.excelforum.com/office-365/1399068-dax-filtering-between-dates-with-keepfilter.html#post5787380https://www.excelforum.com/office-365/1399068-dax-filtering-between-dates-with-keepfilter.html#post5787380
Can someone help with this I have a Keepfilter measure;
Excel Formula:
CALCULATE([TotalUnits],KEEPFILTERS( dDateT[Date] >= DATE( 2020,3,1) && dDateT[Date] <= DATE(2020,7,31) ))
but I would like to take the dates from another table, not use DATE( ) ,
Excel Formula:
CALCULATE([TotalUnits],KEEPFILTERS( dDateT[Date] >= MAX(pdate[StardD]) && dDateT[Date] <= MAX(pdate[EndD] ) ))
and while this give the correct overall total, when dropped into a table or matrix it does not 'see' the dates there, it's as if I'd just used filter.
I have got aroung this by using the following;
Excel Formula:
Bwrwn Pdates =
CALCULATE (
[TotalUnits],
KEEPFILTERS (
FILTER (
ALL ( dDateT[Date] ),
dDateT[Date] <= MAX ( Pdate[EndDate] )
&& dDateT[Date] >= MAX ( Pdate[Sdate] )
)
)
)
This works but I don't know why the other doesn't can anyone help?
Richard.