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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply

Multiple Selections in a Slicer using a measure

I have created a slicer from a measure using this formula:

dapperscavenger_0-1700496617647.png

 

This is the dimChange table it refers to:

dapperscavenger_1-1700496644158.png

 

And the Change Measure it refers to.  The output of this measure is dynamic based on a parameter that the user inputs:

dapperscavenger_2-1700496677741.png



The slicers works well for single select:

dapperscavenger_3-1700496720902.png

dapperscavenger_4-1700496745275.png

 

but if a user would want to select multiple values, or select everything except one, it does not filter the table:

dapperscavenger_5-1700496795558.png


Is there a way to make that work?



 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @dapperscavenger ,

Please try use ALLSELECTED() and IN:

change_filter = 
VAR _cf = ALLSELECTED('dimChange'[Change Field])
VAR _filter = IF([Change] IN _cf,1)
RETURN
_filter

vcgaomsft_0-1700637043599.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @dapperscavenger ,

Please try use ALLSELECTED() and IN:

change_filter = 
VAR _cf = ALLSELECTED('dimChange'[Change Field])
VAR _filter = IF([Change] IN _cf,1)
RETURN
_filter

vcgaomsft_0-1700637043599.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

Oh my gosh thank you! This worked!

 

I was so close to getting it myself because I had been playing about with ALLSELECTED but just couldn't seem to get the formula right 

amitchandak
Super User
Super User

@dapperscavenger , You change measure should join with change field and column from that should be in context 

 

refer example 

Customer Retention with Dynamic Segmentation, New/Lost/Retain Customer Count: https://youtu.be/EyL7KMw877Q

 

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors