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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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])))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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])))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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