Forum Discussion

Vero85's avatar
Vero85
Regular Visitor
2 years ago
Solved

Need help with Dax

Hi!

I am new with Dax and need help for this specific formula.

 

Original Table

ID.Student

ID.ClassSuccess?

1

11Yes
212

Yes

313No
411No
512

Yes

613Yes
711No
812Yes
913No
1011No

 

I would like to measure the success rate (number of students who "success = yes divide by the number of students) per Class id ?

 

Can anyone help me with this please 🙂

  • Vero85 , Try a measure like

     

    Divide( countrows(filter(Table, Table[Success?]= "Yes") , Table[ID.Student]) , countrows(Table[ID.Student]) )

1 Reply

  • Vero85 , Try a measure like

     

    Divide( countrows(filter(Table, Table[Success?]= "Yes") , Table[ID.Student]) , countrows(Table[ID.Student]) )