Quantcast
Viewing all articles
Browse latest Browse all 217263

SUM issue

Hi,

 

That's might sound lame but I have a problem doing a simple sum on some of my datas !


At first I added a new column on my table with the following DAX formula :

= CALCULATE (SUM([price])+SUM([tax]))

 

So if I focus on year 2015, I have 51.2M :

Image may be NSFW.
Clik here to view.

 

  Image may be NSFW.
Clik here to view.

 

 

My datas are from a SQL Serv DB, so I checked it on SSMS with the same query used in Power BI just by adding the SUM, removing all others columns and by adding a filter on the year :

 

SELECT SUM([price])+SUM([tax])
FROM XXXXX
WHERE YEAR(dateCreation) = 2015

 

But the sum does not match the sum in power BI : 50427520.722284

Image may be NSFW.
Clik here to view.

 

I tried the same query directly on a new Power BI source, and it's the right value : 50427520,72

Image may be NSFW.
Clik here to view.

 

 

I did another test : I took my first query, and made some modification directly on the query editor, yet it's not the correct value : 51203113,61

Image may be NSFW.
Clik here to view.

 

Do you know what am I missing here ?

 

 

Loïs

 


Viewing all articles
Browse latest Browse all 217263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>