March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi!
I am new with Dax and need help for this specific formula.
Original Table
ID.Student | ID.Class | Success? |
1 | 11 | Yes |
2 | 12 | Yes |
3 | 13 | No |
4 | 11 | No |
5 | 12 | Yes |
6 | 13 | Yes |
7 | 11 | No |
8 | 12 | Yes |
9 | 13 | No |
10 | 11 | No |
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 🙂
Solved! Go to Solution.
@Vero85 , Try a measure like
Divide( countrows(filter(Table, Table[Success?]= "Yes") , Table[ID.Student]) , countrows(Table[ID.Student]) )
@Vero85 , Try a measure like
Divide( countrows(filter(Table, Table[Success?]= "Yes") , Table[ID.Student]) , countrows(Table[ID.Student]) )
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
90 | |
89 | |
85 | |
73 | |
49 |
User | Count |
---|---|
167 | |
148 | |
92 | |
72 | |
58 |