Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Date slicer value capturing and using in filtering data

Hi,   We have four date columns and we need to compare the date selected from the date slicer with these four columns and then create the visuals which will  filter accordingly.   E.g I have four...
  • v-yulgu-msft's avatar
    7 years ago

    Hi Anonymous ,

     

    Add below measure into "Visual level filter" and set its value to 1.

    check =
    IF (
        MAX ( [Date1] ) <= SELECTEDVALUE ( 'calendar'[Date] )
            && MAX ( [Date2] ) >= SELECTEDVALUE ( 'calendar'[Date] )
            && MAX ( [Date3] ) <= SELECTEDVALUE ( 'calendar'[Date] )
            && MAX ( [Date4] ) >= SELECTEDVALUE ( 'calendar'[Date] ),
        1,
        0
    )

     

    Best regards,

    Yuliana Gu