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
Anonymous
Not applicable

Result of multiple select in slicer should match all selected values

Hi all, 

 

I would like to add a slicer with the possibility to select multiple values... the result should match all selected values (see examples below).

 

I have been looking for a solution for this problem for a while, can someone help me?

powerbi_slicer.png

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You can create measures using DAX below, and then put measure 2 in Visual level filter of table visual displaying the [Custom number],setting value of measure 2 is 1.

 

Measure 1 = CALCULATE(CONCATENATEX(VALUES(Table1[Custom number]),[Custom number],,MAX([Custom number]),ASC),FILTER(ALLSELECTED(Table1),Table1[Profile]=SELECTEDVALUE(Table1[Profile])&&Table1[Custom number]<=MAX(Table1[Custom number])))

 

Measure 2 = IF(CALCULATE(COUNTAX(Table1,[Measure 1]),ALLSELECTED(Table1[Profile]))=CALCULATE(DISTINCTCOUNT(Table1[Profile]),ALLSELECTED(Table1)),1,2)

 

2.png

 

3.png4.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Here is my test pbix: https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/EWvKiHnafBBJrnWK8jh1bmoB_77rR_LQNusktqKx7RCYQA?e=xzaa2d

 

Best Regards,

Amy

 

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-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You can create measures using DAX below, and then put measure 2 in Visual level filter of table visual displaying the [Custom number],setting value of measure 2 is 1.

 

Measure 1 = CALCULATE(CONCATENATEX(VALUES(Table1[Custom number]),[Custom number],,MAX([Custom number]),ASC),FILTER(ALLSELECTED(Table1),Table1[Profile]=SELECTEDVALUE(Table1[Profile])&&Table1[Custom number]<=MAX(Table1[Custom number])))

 

Measure 2 = IF(CALCULATE(COUNTAX(Table1,[Measure 1]),ALLSELECTED(Table1[Profile]))=CALCULATE(DISTINCTCOUNT(Table1[Profile]),ALLSELECTED(Table1)),1,2)

 

2.png

 

3.png4.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Here is my test pbix: https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/EWvKiHnafBBJrnWK8jh1bmoB_77rR_LQNusktqKx7RCYQA?e=xzaa2d

 

Best Regards,

Amy

 

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

 

Anonymous
Not applicable

Perfect solution.... Thanks!!!! 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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