Forum Discussion
dofrancis3
2 years agoResolver 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.
NbrDistr = CALCULATE(COUNTROWS(IMrepository),IMrepository[Dist_targ_SIA]= "Pass"||IMrepository[Dist_targ_SIA]= "Fail")
4 Replies
- dofrancis3Resolver I
This is the colomn
I would like to have 8
i don't like Count fountion
- govindarajan_dSuper User
Please try this:
PassFailCount = CALCULATE ( COUNTROWS ( IMrepository ), KEEPFILTERS ( IMrepository[Dist_targ_SIA] IN { "Pass", "Fail" } ) )
- wdx223_DanielCommunity Champion
NbrDistr = CALCULATE(COUNTROWS(IMrepository),IMrepository[Dist_targ_SIA]= "Pass"||IMrepository[Dist_targ_SIA]= "Fail")
- dofrancis3Resolver I
Thank you so mutch Daniel it work