Forum Discussion

ToddMate's avatar
ToddMate
Helper II
7 years ago
Solved

Measure: Dates in Filters.

Hi,

 

I need help with creating a measure that filters on dates. What i need is:

 

Where Product IN {"Product 1","Product 2"} and Connected is not NULL and Disconnected < 01/01/9999.

 

Table name is SIO.

 

Much Appreciated, Todd

  • Hi ToddMate 

    Create a measure

    Measure = 
    IF(MAX(Sheet6[product]) in {"Product1","Product2"} &&MAX(Sheet6[connected])<>BLANK()&&MAX(Sheet6[disconnected])<DATE(9999,1,1),1,0)

    To filter the table, add measure in the visual level filter as below

     

    Best Regards

    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

1 Reply

  • v-juanli-msft's avatar
    v-juanli-msft
    Community Support

    Hi ToddMate 

    Create a measure

    Measure = 
    IF(MAX(Sheet6[product]) in {"Product1","Product2"} &&MAX(Sheet6[connected])<>BLANK()&&MAX(Sheet6[disconnected])<DATE(9999,1,1),1,0)

    To filter the table, add measure in the visual level filter as below

     

    Best Regards

    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.