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 control output column names when using DAX GROUPBY and aggregated columns

When you use GROUPBY in isolation, the output column names are simply the same as the column names you specified.

eg Newtab = GROUPBY(table, table[colA], table[colB]) yields a table with columns call colA and col B

 

But when you add an aggregate column: Newtab = GROUPBY(table, table[colA], table[colB]),"agg_col", 

MAXX(CURRENTGROUP(), table[colC] )) the output column names become:  table_colA, table_colB, agg_col
This makes the output column names more unwieldy. Can I control the output column names?
 
NB First time using this functionality
1 ACCEPTED SOLUTION
Pragati11
Super User
Super User

Hi @Anonymous ,

 

Have you looked into SUMMARISE function in Power BI which allows you to give custom names to the resulting columns?

https://radacad.com/aggregated-table-in-power-bi-summarize-function-in-dax

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

2 REPLIES 2
Pragati11
Super User
Super User

Hi @Anonymous ,

 

Have you looked into SUMMARISE function in Power BI which allows you to give custom names to the resulting columns?

https://radacad.com/aggregated-table-in-power-bi-summarize-function-in-dax

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Yes SUMMARISE works well for me thank you. I don't anything else GROUPBY gives.

 

Just as a supplemental (and I am happy to create a new thread): I can't specify MODE as an aggregate function. It would help me a lot if I could. Or is there a way of building a user-defined MODE function that I can use in SUMMARIZE? 

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 Solution Authors
Top Kudoed Authors