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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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