Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have a student score table
| Session | Student | Score |
| Morning | A | 6 |
| Morning | A | 10 |
| Morning | B | 6 |
| Afternoon | C | 8 |
| Afternoon | C | 4 |
| Afternoon | C | 9 |
| Afternoon | D | 4 |
| Afternoon | D | 6 |
and I can report the highest score for each student
| Session | Student | Highest Score |
| Morning | A | 10 |
| Morning | B | 6 |
| Afternoon | C | 9 |
| Afternoon | D | 6 |
How do I calculate the average of the highest score for each session ?
| Session | Average |
| Morning | 8 |
| Afternoon | 7.5 |
Solved! Go to Solution.
I managed to get the measure to work.
Avg Score = AVERAGEX(SUMMARIZE(Table, [Session],[Name],"Score",MAX(Table[Score])),[Score])
I tried this but it gives an error
Avg Score = AVERAGEX(SUMMARIZECOLUMNS(Table[Student],"Score",MAX(Table[Score])),[Score])
Hi, try this one
Average = AVERAGEX(SUMMARIZE([Student], MAX([Score]))
I managed to get the measure to work.
Avg Score = AVERAGEX(SUMMARIZE(Table, [Session],[Name],"Score",MAX(Table[Score])),[Score])
I think there are a syntax errors
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 51 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 84 | |
| 70 | |
| 38 | |
| 29 | |
| 26 |