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
Pulyk
Frequent Visitor

How To Get Unique Value or do SUM of MAX

Hello everyone. If someone could help me with the solution, I would be very appreciate. 

Every Store ID supposed to get 1 POD from only 1 Warehouse ID, but in this case you can see 1 of Store ID's has dupliacted value, because it's getting a POD from 2 Warehouse ID and in the end get sum of Final POD which is supposed to be 4, not 5.
I assume MAX function may help here.
Please help, thank you.

Screen Shot 2022-08-23 at 9.22.48 AM.png

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Pulyk , Try a measure like

 

SumX(summarize(Table, Table[Store], "_1", Max(Table[Final POD])), [_1])

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Pulyk , Try a measure like

 

SumX(summarize(Table, Table[Store], "_1", Max(Table[Final POD])), [_1])

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.