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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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