cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Sum of Max Values by Customer

Hi all, I want to create a measure that sums the highest value, by customer. For example, the highest Count for Customer A is 30, and the highest for customer B is 100. I want to do 30+100 and have it as a measure. Any ideas?

 

CustomerCount
A20
A30
B50
B100
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User IV
Super User IV

Re: Sum of Max Values by Customer

@jack421 try this measure, you answer suppose to be 130 = (A=30 and B= 100), you mentioned expected result to be 150

 

Max Sum = 
SUMX ( 
VALUES ( Table[Customer] ), 
CALCULATE( MAX ( Tabale[Count] ), 
ALLEXCEPT ( Table, Table[Customer] ) 
) 
)

 Would appreciate Kudos 🙂 if my solution helped.  Ask anything Power BI. Book appointment for a free consultancy at https://www.perytus.com






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

2 REPLIES 2
Highlighted
Super User IV
Super User IV

Re: Sum of Max Values by Customer

@jack421 try this measure, you answer suppose to be 130 = (A=30 and B= 100), you mentioned expected result to be 150

 

Max Sum = 
SUMX ( 
VALUES ( Table[Customer] ), 
CALCULATE( MAX ( Tabale[Count] ), 
ALLEXCEPT ( Table, Table[Customer] ) 
) 
)

 Would appreciate Kudos 🙂 if my solution helped.  Ask anything Power BI. Book appointment for a free consultancy at https://www.perytus.com






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

Highlighted
Super User IV
Super User IV

Re: Sum of Max Values by Customer

Hi,

Try these measures

Max value = MAX(Data[Count])

Total of max = SUMX(VALUES(Data[Customer]),[Max value])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
May 2020 Community Highlights

May 2020 Community Highlights

It’s time for another PBI Community recap!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Top Solution Authors