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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Syndicate_Admin
Administrator
Administrator

SUM MAXIMUM VALUES

Hello community, I need help with a report.

I have a table where I want to add maximum values from a table, but instead of adding the values it results in the maximum value of what I'm filtering. For example: I need to get 390 in planned and not 378 as it currently appears. I need to add up the maximum values for each area by filtering the zone and date.

NATU_1-1740141127862.png

.pbix download link:

https://drive.google.com/file/d/1hJ3tDbJm2Yr0anitt86J75qk-wToIZ9d/view

1 ACCEPTED SOLUTION
freginier
Solution Sage
Solution Sage

Hi there!

 

If I understand correctly, you want to sum the maximum values for each area, considering the zone and date filters instead of just adding all the values.

 

Here's what you can try: Sum_Max_Planned =
SUMX(
SUMMARIZE(
'YourTable',
'YourTable'[Date],
'YourTable'[Zone],
"MaxValue", MAX('YourTable'[Planned])
),
[MaxValue]
)

This formula will group your data by Date and Zone, and calculate the maximum "Planned" value for each Zone per Date.

Don't forget to replace 'YourTable' with your actual table name. Also ensure your table contains 'Date' and 'Zone' columns to apply the filter correctly. With this formula, instead of summing all values, Power BI will only sum the maximum values per Zone per Date.

 

Hope this helps!

😁😁

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Thank you, it helped me !!

freginier
Solution Sage
Solution Sage

Hi there!

 

If I understand correctly, you want to sum the maximum values for each area, considering the zone and date filters instead of just adding all the values.

 

Here's what you can try: Sum_Max_Planned =
SUMX(
SUMMARIZE(
'YourTable',
'YourTable'[Date],
'YourTable'[Zone],
"MaxValue", MAX('YourTable'[Planned])
),
[MaxValue]
)

This formula will group your data by Date and Zone, and calculate the maximum "Planned" value for each Zone per Date.

Don't forget to replace 'YourTable' with your actual table name. Also ensure your table contains 'Date' and 'Zone' columns to apply the filter correctly. With this formula, instead of summing all values, Power BI will only sum the maximum values per Zone per Date.

 

Hope this helps!

😁😁

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.