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

Join 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.

Reply
K-LED
Helper I
Helper I

Get SUM of Maximum values by customer

Hi All,

 

I have an excel file with 3 columns: "Month", "Name" and "Quantity" as you can see below.

KLED_0-1637243470703.png

 

I've created a first measure to have the max value for each customer by month:

 

Max by customer = CALCULATE(MAX(Feuil1[Quantity]))

 

 

 Below is the result for the month "11":

KLED_1-1637243627636.png

 

That's great, but when I went a level up and displayed the values by month, I got the result below:

KLED_2-1637243720063.png

 

For the month 11 I got the maximun value 250.00 but what I need is to the the SUM of each max value for each customer, which will be : 250.00 + 172.40 + 120.80 + 110.20 + 78.10 + 25.60 = 757.10

 

How I can fix fix it ? and modify my measure to get the SUM of the maxinum values for each month ?

 

Below is how I diplay my data:

KLED_3-1637243954882.png

 

Thanks in advance 🙂

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@K-LED 

Give this a try.

Sum Max = SUMX ( VALUES ( YourTable[Name] ), [Max by customer] )

You will have to change the measure to match your table name.

 

View solution in original post

2 REPLIES 2
K-LED
Helper I
Helper I

@jdbuchanan71 many thanks 🙂

jdbuchanan71
Super User
Super User

@K-LED 

Give this a try.

Sum Max = SUMX ( VALUES ( YourTable[Name] ), [Max by customer] )

You will have to change the measure to match your table name.

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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