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
Titatovenaar2
Helper III
Helper III

Aggregation in SUMMARIZE ADDCOLUMNS Table doesnt aggregate per Record

Hi guys, 

 

I have a table called [Verkooporder] ("Sales order"), of which I want per the field called [Klantnummer] ("Customer Number") the MAX value of a certain other field in that same table.

Somehow both aggregations in the query below give me the MAX of the entire table. I want it to aggregate per record of the SUMMARIZE table.

 

Titatovenaar2_0-1658406906197.png

 

Both the MAX and MAXX yield the same results

Any suggestions what is wrong in my code above?

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You need to add CALCULATE so that it will pick up the row context from the SUMMARIZE, so CALCULATE(MAX('Table'[Column]))

View solution in original post

1 REPLY 1
johnt75
Super User
Super User

You need to add CALCULATE so that it will pick up the row context from the SUMMARIZE, so CALCULATE(MAX('Table'[Column]))

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

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.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.