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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
msuser48
Helper I
Helper I

How to make one filter change when another filter changes

I have two filters:

 

msuser48_0-1669637921733.png

 

I want to create a measure such that when I click "Yes" in Y/N, I automatically also tick "Active" and "Cancelled" in the State slicer.

 

When I untick "yes", it should also untick "active" and "cancelled" once again from the State slicer.

 

How can this be done?

 

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @msuser48 ,

 

 

The filtering results of one slicer can affect the results of another slicer, but not just change its "state".
However, try turning on the "show all" function of the slicer and create the following formula, which will hopefully meet your needs.

M_ =
VAR sel =
    SELECTEDVALUE ( slicer_[Y/N] )
VAR val =
    IF ( MAX ( result[State] ) IN { "Active", "Cancelled" }, 1, 0 )
RETURN
    IF ( sel = "Yes", val, 1 )

 

vhenrykmstf_0-1669970724424.png

vhenrykmstf_1-1669970735544.png

 

If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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-henryk-mstf
Community Support
Community Support

Hi @msuser48 ,

 

 

The filtering results of one slicer can affect the results of another slicer, but not just change its "state".
However, try turning on the "show all" function of the slicer and create the following formula, which will hopefully meet your needs.

M_ =
VAR sel =
    SELECTEDVALUE ( slicer_[Y/N] )
VAR val =
    IF ( MAX ( result[State] ) IN { "Active", "Cancelled" }, 1, 0 )
RETURN
    IF ( sel = "Yes", val, 1 )

 

vhenrykmstf_0-1669970724424.png

vhenrykmstf_1-1669970735544.png

 

If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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

amitchandak
Super User
Super User

@msuser48 , it can control the values but can not tick, as far as I know

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.