Forum Discussion
love
Helper I
8 years agoHow to return values based on if dates are within Slicer date range
Hello all :) My user story: I would like to return values based on the following (in DAX)--> If the "dates.start" (a date I get from a query called "Tasks") is earlier than the right date on m...
- 8 years ago
Hi love
Calculated ccolumns do not react to slicer selections
May be you could try a MEASURE instead
MEASURE = IF ( AND ( SELECTEDVALUE ( Tasks[dates.due] ) > MIN ( CalendarTable[Date] ), SELECTEDVALUE ( Tasks[dates.start] ) < MAX ( CalendarTable[Date] ) ), 0, 1 )
Zubair_Muhammad
Community Champion
8 years agoHi love
Calculated ccolumns do not react to slicer selections
May be you could try a MEASURE instead
MEASURE =
IF (
AND (
SELECTEDVALUE ( Tasks[dates.due] ) > MIN ( CalendarTable[Date] ),
SELECTEDVALUE ( Tasks[dates.start] ) < MAX ( CalendarTable[Date] )
),
0,
1
)love
Helper I
8 years agoThank you very much Zubair_Muhammad, your solution worked perfectly. Also great info about the columns, thanks again!