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
lesliezhang
Regular Visitor

How to get the max value of a column from the table returned by GROUPBY

Hi,

 

I have a table as below, and I want to create a measure for the max value after groupby [Category] and SUM([Value])

Screen Shot 2019-03-15 at 8.01.53 PM.png

 

after GROUPBY, I can get below table. However, I don't know how to write the dax to get "9"

Screen Shot 2019-03-15 at 8.02.00 PM.png

 

Please help

 

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Try this 

Measure = maxx(all('Table1');calculate(sum(Table1[Value]);Table1[Value]))

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
az38
Community Champion
Community Champion

Try this 

Measure = maxx(all('Table1');calculate(sum(Table1[Value]);Table1[Value]))

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Thank you very much. It works!

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