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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
jaryszek
Post Prodigy
Post Prodigy

Different sum calculated by dax and power query - why?

Hello, 

this is a result (true one!!) which power query calculated:

jaryszek_0-1750226953451.png
Now i created dax :

Total Amortized Cost = SUM('Fct_EA_AmortizedCosts'[CostInBillingCurrency])
and got:
jaryszek_1-1750227013218.png


Why? This is very important to have the results the same.

How to valid this sum?
Best,
Jacek

 

1 REPLY 1
v-tejrama
Community Support
Community Support

Hi @jaryszek ,

Thanks for reaching out to the Microsoft fabric community forum.

 

I have reproduced this scenario in Power BI (Fabric) to investigate why Power Query and DAX were showing different totals initially. I loaded the dataset containing the CostInBillingCurrency column into Power BI. In Power Query, I created a Blank Query, opened Advanced Editor, and used the formula:


= List.Sum(Costs[CostInBillingCurrency])

 

After applying the changes, I brought that result into the data model.

 

I also created a DAX measure using:

Total Amortized Cost = SUM(Costs[CostInBillingCurrency])

 

Then, I added both values to a visual to compare them. The totals now match. This shows that when both queries and models reference the same clean data, Power Query’s List.Sum and DAX’s SUM() produce the same results.

It’s likely that any earlier mismatch was caused by intermediate steps, filters, or transformations applied before running the List.Sum. After running this setup clearly, the results are consistent between Power Query and DAX.

Posting this here to help anyone facing the same kind of confusion between Power Query and DAX totals in Power BI (Fabric).

 

Please find the attached pbix file for your reference.

 

If the response has addressed your query, please Accept it as a solution and give a 'Kudos' so other members can easily find it.


Best Regards,
Tejaswi.
Community Support

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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