Forum Discussion
Anonymous
6 years agoNot applicable
Use count that apply on a filter
I have this measure: #avg grade to pass = DIVIDE(CALCULATE(SUM(StudentResults[result]); StudentResults[result] >= 5,5); DISTINCTCOUNT(StudentResults[studnr])) It needs to calculate the avera...
- 6 years ago
Try this.
#avg grade to pass = CALCULATE(DIVIDE(SUM(StudentResults[result]);DISTINCTCOUNT(StudentResults[studnr]));StudentResults[result] >= 5,5)If I answered your question, please mark my post as solution, this will also help others.Please give Kudos for support.Looking for German Power BI content? Visit my blog.
http://www.thinkbi.de/
mwegener
Most Valuable Professional
6 years agoTry this.
#avg grade to pass = CALCULATE(DIVIDE(SUM(StudentResults[result]);DISTINCTCOUNT(StudentResults[studnr]));StudentResults[result] >= 5,5)
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
Looking for German Power BI content? Visit my blog.
http://www.thinkbi.de/
http://www.thinkbi.de/
- Anonymous6 years agoNot applicable
Nice! It works, did not know that you can use the calculate like that.
- mwegener6 years ago
Most Valuable Professional
I recommend this free "Introducing DAX Video Course"
https://www.sqlbi.com/p/introducing-dax-video-course/
Please give Kudos for support.