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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
dofrancis3
Resolver I
Resolver I

Count with multiple criteria

Hi Guys!

Some one can help me please!

I would like to count the number of "Pass" and "Fail" how can i dot it please below is my Dax-mesure:

NbrDistr = CALCULATE(COUNTROWS(IMrepository),IMrepository[Dist_targ_SIA]= "Pass")

i would like to also count "Fail" in the criteria

how can i do it?

Thank for your assistance.

 

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

NbrDistr = CALCULATE(COUNTROWS(IMrepository),IMrepository[Dist_targ_SIA]= "Pass"||IMrepository[Dist_targ_SIA]= "Fail")

View solution in original post

4 REPLIES 4
wdx223_Daniel
Super User
Super User

NbrDistr = CALCULATE(COUNTROWS(IMrepository),IMrepository[Dist_targ_SIA]= "Pass"||IMrepository[Dist_targ_SIA]= "Fail")

Thank you so mutch Daniel it work

dofrancis3
Resolver I
Resolver I

This is the colomn

dofrancis3_0-1706760400156.png

I would like to have 8 

i don't like Count fountion

Please try this:

PassFailCount =
CALCULATE (
    COUNTROWS ( IMrepository ),
    KEEPFILTERS ( IMrepository[Dist_targ_SIA] IN { "Pass", "Fail" } )
)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.