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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to group the table to get the desired result?

Hey! 

Suppose in the Power Query Editor, I have the following table named Table:

 

Table.png

And now from the given table, I want to construct the following table:

 

Tabelle2.png

How can I reach this?

The solutions says:

"Group by [Department] and [School] and create a new column named [Avg Score] that uses the AVERAGE function on the [Score] column."

 

 

I tried

TableNew = CALCULATETABLE(SUMMARIZE(Table,Table[Department],Table[School],"Avg Score", AVERAGE(Table[Score])),Table[School]="School1")

and it works. 

 

Maybe this is meant, maybe this is not meant, I do not know.

1 REPLY 1
lbendlin
Super User
Super User

yes, looks ok. Could have used AVERAGEX too.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors