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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors