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
jaryszek
Impactful Individual
Impactful Individual

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 ACCEPTED SOLUTION

Hi @jaryszek,

 

I hope the information provided has been useful. Please let me know if you need further clarification or would like to continue the discussion.

 

If your question has been answered, please “Accept as Solution” and Give “Kudos” so others with similar issues can easily find the resolution.

 

Thank you.

View solution in original post

3 REPLIES 3
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

 

 

Hi @jaryszek,

 

I wanted to follow up and see if you had a chance to review the information shared. If you have any further questions or need additional assistance, feel free to reach out.

 

If the response answered your query, kindly “Accept as Solution” and Give “Kudos” to help others in the community benefit from it as well.

 

Thank you.

Tejaswi.

Hi @jaryszek,

 

I hope the information provided has been useful. Please let me know if you need further clarification or would like to continue the discussion.

 

If your question has been answered, please “Accept as Solution” and Give “Kudos” so others with similar issues can easily find the resolution.

 

Thank you.

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.