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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

calculate value and drop duplicates in groups

Here is the data and I want to drop duplicate in "name" level by get the max value,

null_0-1664351670562.png

 

for example, after drop duplicates in name level, the sum value of type "high" is 2+5 rather than 2+2+5+4

do you have any ideas? Thank you.

 

1 ACCEPTED SOLUTION

Hi,

thank you for your feedback, and please check the below picture and the attached pbix file whether it suits your requirement.

 

Jihwan_Kim_0-1664370338607.png

 

 

Expected outcome measure: =
SUMX (
    SUMMARIZE ( Data, Data[Type], Data[Category] ),
    CALCULATE ( MAX ( Data[Value] ) )
)


Microsoft MVP



If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

It is for creating a new table.

 

Jihwan_Kim_0-1664367798856.png

 

New table create =
GROUPBY (
    Data,
    Data[Type],
    Data[Category],
    "@MaxValue", MAXX ( CURRENTGROUP (), Data[Value] )
)

 



Microsoft MVP



If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



Anonymous
Not applicable

actually I am finding a way to create a measure that calculate the sum of the max value in category group,

the result is exactly like this,

null_0-1664368426091.png

is there a way to change the table into a measure? Thank you.

 

Hi,

thank you for your feedback, and please check the below picture and the attached pbix file whether it suits your requirement.

 

Jihwan_Kim_0-1664370338607.png

 

 

Expected outcome measure: =
SUMX (
    SUMMARIZE ( Data, Data[Type], Data[Category] ),
    CALCULATE ( MAX ( Data[Value] ) )
)


Microsoft MVP



If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



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.