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

SUMX excluding duplicates and use it in tables and cards

Hello,

 

i found a bit strange that the total does not appear to be accurate especially when i use the measure as Cards.

 

The calculation of the 2nd column here is: Measure = SUMX(DISTINCT(vw_aps_mr2_returns_receipts_repair[Return Number]),MAX(vw_aps_mr2_returns_receipts_repair[Return Restocking Amount]))

 

When i use it as cards, it shows different value.

Laedays_1-1621264392684.png

 

Laedays_0-1621264221318.png

 

Can anyone help me why is this happening? and how should i fix it?

 

Thanks,

laedays

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try like

 

SUMX(values(vw_aps_mr2_returns_receipts_repair[Return Number]),calculate(MAX(vw_aps_mr2_returns_receipts_repair[Return Restocking Amount])))

View solution in original post

2 REPLIES 2
PaulDBrown
Community Champion
Community Champion

@Anonymous 

I'm not sure if I'm reading this right, but your card displays a value of 587.81K (which is formatted in Thousands, rounded to 2 decimals) which is the "same" value as 587,809.72 (wich is displayed as units) seen in the lower table. The difference is the formatting (which you can change in the formatting pane if you wish)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






amitchandak
Super User
Super User

@Anonymous , Try like

 

SUMX(values(vw_aps_mr2_returns_receipts_repair[Return Number]),calculate(MAX(vw_aps_mr2_returns_receipts_repair[Return Restocking Amount])))

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