Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi
Wonder if anyone can help.
I have a set of results. Basically column A has a list of people, Column B has a list of test names and Column C has a list of scores.
I am trying to write a measure that will allow an average score to be shown across all selected test names.
The issue I am having at the moment is that the average stays the same even after applying a filter.
Average of Score total for Score =
CALCULATE(AVERAGE('Results'[Score]), ALLSELECTED('Results'[Test Name]))
It is showing an average across all test names and if I filter to a specific test name the average score stays the same whereas I would like it to show the average score for that test name.
I have a tried so many different options and just can't get this one right.
| Full Name | Test Name | Score |
| Lisa Taylor | Test 1 | 67 |
| Mark Taylor | Test 2 | 87 |
| Sam Hughes | Test 1 | 76 |
| Sam Taylor | Test 2 | 81 |
Can anyone point me in the right direction?
Regards
Lisa
Solved! Go to Solution.
try
Average of Score total for Score =
CALCULATE(AVERAGE('Results'[Score]); ALLEXCEPT('Results';'Results'[Test Name]))ALLSELECTED removes filter from column
ALLEXCEPT removes filters from other column
do not hesitate to give a kudo to useful posts and mark solutions as solution
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 45 | |
| 43 | |
| 38 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 67 | |
| 66 | |
| 31 | |
| 28 | |
| 24 |