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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
gancw1
Resolver I
Resolver I

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
Resolver I
Resolver I

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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