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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Stephie679
Regular Visitor

COUNTIFS in Power BI

Help! I'd like to convert a COUNTIFS statement from Excel to Power BI. In excel, I have a COUNTIFS statement as follows: =COUNTIFS(T:T,"F",AT:AT,"Management",BC:BC,"M10",BC:BC,"M11",BC:BC,"M12"). Essentially, what i want to do is count the number of "F" in a column if the F also has "Management" in another column and IF the F is also in Grade M10-M12.

Stephie679_0-1665752102611.png

 

Thank you

 

1 ACCEPTED SOLUTION
JorgePinho
Solution Sage
Solution Sage

= CALCULATE(COUNT([GENDER]), [Gender] = "F", [Empl Class] = "Management", [Grade] = "M10" || [Grade] = "M11" || [Grade] = "M12")

View solution in original post

1 REPLY 1
JorgePinho
Solution Sage
Solution Sage

= CALCULATE(COUNT([GENDER]), [Gender] = "F", [Empl Class] = "Management", [Grade] = "M10" || [Grade] = "M11" || [Grade] = "M12")

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors