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
danafowler
Frequent Visitor

Need a formula for count not equal to a value

Hello,

I am trying to create a formula in dax where i am using the count function or variation of.

 

data table = current

Field name = area

 

I am looking for the total number of entries where the area field does not equal = "No Defect"

 

There are about 15 different values in Area I want those to be counted. 

 

Any help is greatly appreciated

 

Thanks

1 ACCEPTED SOLUTION
MauriceMecowe
Resolver II
Resolver II

Try the following formula, I think this should help you out.

 

 

Count Area= CALCULATE(COUNTROWS(current), FILTER(current,current[area] <> "No Defect"))

View solution in original post

4 REPLIES 4
jmoore78
Regular Visitor

What about if you wanted to count excluding mulitple "Values"? I have columns for A, B, and C. I need one for "Other" to count anything else in the column that's not A, B, or C.

Hi,

 

Share a dataset and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-jiascu-msft
Employee
Employee

Hi @danafowler,

 

Could you please mark the proper answer as a solution?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
MauriceMecowe
Resolver II
Resolver II

Try the following formula, I think this should help you out.

 

 

Count Area= CALCULATE(COUNTROWS(current), FILTER(current,current[area] <> "No Defect"))

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.