Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
gancw1
Helper III
Helper III

Summarize average of highest attemps

I have a student score table

SessionStudentScore
MorningA6
MorningA10
MorningB6
AfternoonC8
AfternoonC4
AfternoonC9
AfternoonD4
AfternoonD6

 

and I can report the highest score for each student

 

SessionStudentHighest Score
MorningA10
MorningB6
AfternoonC9
AfternoonD6

 

How do I calculate the average of the highest score for each session ?

 

SessionAverage
Morning8
Afternoon7.5

 

 

1 ACCEPTED SOLUTION

I managed to get the measure to work.

 

Avg Score = AVERAGEX(SUMMARIZE(Table, [Session],[Name],"Score",MAX(Table[Score])),[Score])
 
The problem with the previous measure has to do with using SUMMARIZECOLUMN instead of SUMMARIZE.  

View solution in original post

4 REPLIES 4
gancw1
Helper III
Helper III

I tried this but it gives an error

Avg Score = AVERAGEX(SUMMARIZECOLUMNS(Table[Student],"Score",MAX(Table[Score])),[Score])
HoangHugo
Solution Specialist
Solution Specialist

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])
 
The problem with the previous measure has to do with using SUMMARIZECOLUMN instead of SUMMARIZE.  

I think there are a syntax errors

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.