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

DAX Measure to get multiple selected filters values

Hi All,

 

I have a table with a column 'Countries' with few values. This column is used in the filter pane selection as well. I need to create a measure so that whatever countries are selected in the filter pane, value of '1' should be shown beside the selected Country table as shown in the screenshot below. 

 

Krishnan_V47_0-1677657090874.png

 

1 ACCEPTED SOLUTION
Padycosmos
Solution Sage
Solution Sage

Hope this helps:

Padycosmos_0-1677661822834.png

 

View solution in original post

2 REPLIES 2
MAwwad
Solution Sage
Solution Sage

 

You can create a measure that uses the SELECTEDVALUE and CONTAINSROW functions to check whether the selected countries match with the countries in the table, and return a value of 1 if they match. Here's an example measure:

 

 
Selected Countries = IF( CONTAINSROW(Table1, Table1[Countries], SELECTEDVALUE(Table1[Countries])), 1, BLANK() )
 

This measure will return a value of 1 for the selected countries in the filter pane, and a blank value for the unselected countries. You can add this measure to a table visual along with the Countries column to see the results.

Padycosmos
Solution Sage
Solution Sage

Hope this helps:

Padycosmos_0-1677661822834.png

 

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