Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Need help in DAX

Hello All. Below I am attaching a screenshot of the slicer of my report:   In this Slicer, I have selected "closed", "resolved " and "cancelled". so, whenever i select these three options(clo...
  • v-jialluo-msft's avatar
    3 years ago

    Hi  Anonymous ,

     

    Please follow these steps:
    (1) Create a new column measure

    FLAG = 
    IF (
        ISFILTERED ( 'Status'[state] ),
        IF (
            "Closed"
                IN VALUES ( 'Status'[state] )
                    && "Cancelled"
                        IN VALUES ( 'Status'[state] )
                            && "Resolved" IN VALUES ( 'Status'[state] ),
            0,
            1
        ),
        1
    )
    


    (2)Add filtering

     

    (3)Final output

     

     

    Best Regards,
    Gallen Luo
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.