Forum Discussion
suryakamesh
8 years agoRegular Visitor
DAX Function for COUNTIF and/or CALCULATE
Hi need help on DAX,
I have a data of columns names as ,student name and status(pass/fail).so need to calculate the pass% and fail% for total ppulation of students with the use of dax funftion....
- 8 years ago
Hi,
Try this measures
Pass % =CALCULATE(COUNTROWS(Data),Data[Status]="Pass")/COUNTROWS(Data)
Fail % =CALCULATE(COUNTROWS(Data),Data[Status]="Fail")/COUNTROWS(Data)
Hope this helps.
Anonymous
8 years agoNot applicable
This worked great! Thank you.
Ashish_Mathur
Super User
8 years agoYou are welcome.