Forum Discussion

love's avatar
love
Icon for Helper I rankHelper I
8 years ago
Solved

How 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...
  • Zubair_Muhammad's avatar
    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
    )