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
harirao
Post Prodigy
Post Prodigy

Total not Matching as per the dax created

Hi All,

 

I am trying to create a Table & Chart, Sum of the $ value is not matching, DISTINCT of Opportunity Identifier should match with $ value.
DAX

TestValueUSD =
AVERAGEX(SUMMARIZE('Summary_SFDC','Summary_SFDC'[Opportunity Identifier]), SUMX(DISTINCT('Summary_SFDC'[Opportunity Identifier]),FIRSTNONBLANK('Summary_SFDC'[Total Opportunity Value USD Amount],0)))

in PBI getting Sum of all the $ value is $54M, when i export same data to excel it is $33M
DAX1.PNG
DAX2.PNG

Can you please help me fix the above dax which i have created to get correct value.
 
Thank you
 
Regards,
1 REPLY 1
Rygaard
Resolver I
Resolver I

in Excel you get Sums in totals

in Powerbi you get the same calculation for the sum line,  so its not a Sum, its the same calculation for the last line.

 

Normaly you can fix this by fixing the Model, and the Hiracy on your table.

 

if not do an IF statement where yo check if your line is filtered like this

 

Before false sums.pngFixed sums for power bi.png

 

 

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.