Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
vashu-123
Frequent Visitor

Need help in DAX

Hello All. Below I am attaching a screenshot of the slicer of my report:

vashu123_2-1671094216981.png

 

In this Slicer, I have selected "closed", "resolved " and "cancelled". so, whenever i select these three options(closed,resolved and cancelled) my below table which contains a column called "Due_Date" must be blank entirely. 

vashu123_1-1671094088733.png

"Due_Date" column is coming from one table "RL" and the above slicer data is coming from another table called as "Status" and the column name is "state". How can i write dax on this such scenario, when I select "closed',"resolved" and "cancelled" the "due_Date" column must be blank entirely? Please help me on this. Any help would be much appreciated. Thanks in Advance!

1 ACCEPTED SOLUTION
v-jialluo-msft
Community Support
Community Support

Hi  @vashu-123 ,

 

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

vjialluomsft_0-1671156865462.png

 

(3)Final output

vjialluomsft_1-1671156884963.pngvjialluomsft_2-1671156894009.png

 

 

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.

View solution in original post

2 REPLIES 2
v-jialluo-msft
Community Support
Community Support

Hi  @vashu-123 ,

 

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

vjialluomsft_0-1671156865462.png

 

(3)Final output

vjialluomsft_1-1671156884963.pngvjialluomsft_2-1671156894009.png

 

 

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.

@v-jialluo-msft Thank you so much. It worked in my report.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.