Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I would like to get the MAX of a SUM grouped by some columns, something like:
MAX of (SUM of amount GROUP BY column a, column b)
so the MAX should be related not the single amounts but to the sum of the amounts grouped by column a, column b.
Thanks,
Andrea
Solved! Go to Solution.
Hi @arimoldi,
You could solve your problem with a measure below.
The 1st step is to create a summarized table, the 2nd one - apply MAXX to it.
In plain text:
Max of Sums =
VAR _tbl = SUMMARIZE ( Data, [Name], [Month], "Sum of Values", CALCULATE ( SUM (Data[Value] ) ) )
RETURN MAXX ( _tbl, [Sum of Values] )
Best Regards,
Alexander
Hi @arimoldi,
You could solve your problem with a measure below.
The 1st step is to create a summarized table, the 2nd one - apply MAXX to it.
In plain text:
Max of Sums =
VAR _tbl = SUMMARIZE ( Data, [Name], [Month], "Sum of Values", CALCULATE ( SUM (Data[Value] ) ) )
RETURN MAXX ( _tbl, [Sum of Values] )
Best Regards,
Alexander
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
78 | |
78 | |
59 | |
35 | |
33 |
User | Count |
---|---|
100 | |
62 | |
56 | |
47 | |
41 |