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
DieLem
Helper II
Helper II

Count Excluding Text

Good Day,

 

I would like to count the total number of values in a column, EXCLUDING certain criteria. I want to exclude "This Value" and "This Value Two"  (Where "This Value" and "This Value Two" are text fields) and only count the remainder. How do I do it?

 

Thanks!

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

Hi @DieLem

 

Try this MEASURE

 

Measure =
CALCULATE (
    COUNT ( Table1[Column] ),
    NOT Table1[Column] IN { "This Value", "This Value 2" }
)

Regards
Zubair

Please try my custom visuals

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

Hi @DieLem

 

Try this MEASURE

 

Measure =
CALCULATE (
    COUNT ( Table1[Column] ),
    NOT Table1[Column] IN { "This Value", "This Value 2" }
)

Regards
Zubair

Please try my custom visuals

@Zubair_Muhammad This is sweet.

 

Thanks so much!

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.