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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
lrsiqueira
Frequent Visitor

Dax function to filter/count the value within a multi-select field

Hello folks,

 

I am trying to create a measure and counts the number of instances a value shows up in a multi-select field. More specifically, i have a table with company names and one of the columns shows if they are present on amazon and other sites. Like in the screenshot below:

 

lrsiqueira_0-1677359270285.png

 

What would be the most efficient way to have a metric that counts the number of companies that have 100000000 in that column?

 

Thanks in advance!

 

2 REPLIES 2
Anonymous
Not applicable

Hi  @lrsiqueira ,

I created some data:

vyangliumsft_0-1677547960005.png

Here are the steps you can follow:

1. Create measure.

Flag =
IF(
    CONTAINSSTRING(
    MAX('Table'[new_selectedchannels]),"100000000")=TRUE(),1,0)
Measure =
COUNTX(
    ALLSELECTED('Table'),[name])

2. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1677547960007.png

3. Result:

vyangliumsft_0-1677548036075.png

 

Best Regards,

Liu Yang

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

Hi Liu Yang,

 

Thanks for the suggestion! I am trying to keep the whole process within one measure and avoid using external filters. I'll try to combine both steps into a single calculation.

 

Thanks again,

 

Luis

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors