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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

sum of max values when selcting multiple slicer values

Hi,

Below is the data, i have category and value fields. and Month as slicer.

each month has different values and i needd to take only max value of each month.

 

and here i am taking max value easily.

 

 

here the problem is.. when i select multiple months from slicer.

i need sum value of the max.

fo example. Month1 Appls has 15 as max value and in month 2 max value is 35.

when i select both months. i need to show 50 for Apple.

but here it is taking max value of the both months.

 

need help how to acheive this.

 

@Pragati11 @amitchandak @Greg_Deckler @mwegener @lbendlin @Fowmy

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

There are already existing threads for this issue:

https://community.powerbi.com/t5/Desktop/sum-of-max-values-by-date-client/td-p/247337

https://community.powerbi.com/t5/Desktop/sum-of-max-values/td-p/46715

 

I tried the first link's solution and it works:

Pragati11_0-1601460059303.png

 

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

@Pragati11 

this is the sampe data

johnbasha33_0-1601456837633.png

 

Anonymous
Not applicable

@Pragati11 

if i select mutiple months from slicer,

i need to see for Apple 50 

not like the below. which is just taking max of the month.

johnbasha33_0-1601457107530.png

 

Hi @Anonymous ,

 

There are already existing threads for this issue:

https://community.powerbi.com/t5/Desktop/sum-of-max-values-by-date-client/td-p/247337

https://community.powerbi.com/t5/Desktop/sum-of-max-values/td-p/46715

 

I tried the first link's solution and it works:

Pragati11_0-1601460059303.png

 

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

@Pragati11 

thanks for your prompt response. this works for me.

 

Yes, i have gone through the links you gave below earlier.

But in their case they just want to show max values.

 

However in my case i need to show max values with cummulative sum based on slicer seelction.

 

All trick and magic lied in Summarize function.

 

So, i tweaked my DAX now it is working fine. 🙂

Anonymous
Not applicable

@Pragati11 

ValueMonthCategory

151Apple
101Apple
91Apple
302Apple
352Apple
403Orange
503Orange
603Orange

Hi @Anonymous ,

 

Can you paste this as a table please rather than a screenshot so that I can copy paste at my end?

 

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.