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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
smatesic
Helper I
Helper I

Total/sum working incorrectly

Does anyone knows what's going on here and how to deal with it? 

 

Untitled picture.png

 

Table on the right has data from only one table and everything looks good. Table on the left side has data from two tables and total valus don't add up correctly. PowerBI is summing only by value of Tarifa, and the fact there are, for example, two Interent packages is not taken into the equation. 

 

Here is my model

 

Untitled picture.pnggdf.png

 

Two tables that I'm taking data from - Packages(Paketi) and Clients(Klijenti) - are directly connected with 2way relationship direction. Column Price is original column - no Dax or any other function applying there, and Price per month is calculated column: 

PricePerMonth = Paketi[Price] / Paketi[DurationMonths]

 

I tried with various calculated columns and measures. I searched PBI forum, there were lot's of simmilar issues but not quite like this one

 

1 ACCEPTED SOLUTION
v-haibl-msft
Microsoft Employee
Microsoft Employee

@smatesic

 

I’ve tried it again and it worked in my side. I’ve uploaded my .pibix file here. Could you please take a look at it to see if there is any difference?

Total sum working incorrectly_1.jpg

 

Best Regards,

Herbert

View solution in original post

6 REPLIES 6
v-haibl-msft
Microsoft Employee
Microsoft Employee

@smatesic

 

I’ve tried it again and it worked in my side. I’ve uploaded my .pibix file here. Could you please take a look at it to see if there is any difference?

Total sum working incorrectly_1.jpg

 

Best Regards,

Herbert

hi i have somehow same problems to get currtect column summurization or rowwise sumurization,

please could u quide me how can i get sum in visual level number from each months.

please check the picture attachedInkedseriousQues_LI.jpg

@Thiyagu PLs look on this

This works now. I used columns from Client and Packages tables, from forcast table which is Crossjoined table I only used date column and I got correct totals. I tried using values from forcast, and totals were wrong again... Nevermind, it works and this issue is solved. Thank you for your help

v-haibl-msft
Microsoft Employee
Microsoft Employee

@smatesic

 

Please try with following measure formula.

Measure = 
SUMX ( Forcasting, CALCULATE ( SUM ( Paketi[Price] ) ) )

Totalsum working incorrectly_1.jpg

 

Best Regards,

Herbert

 

 

It doesn't work. Total Price should be $2000 and with this measure I got millions

Untitled picture.png

 

Also, Anita has 3 Internet packages and in PBI only one is shown. 

 

 

These are my source tables, everything is visible there:

Clients table (Client/Tarifa/DueDate):

 

Mike

Internet1.10.2016
JoseStorage1.9.2016
AnitaIT solutions1.11.2016
DavidCloud services1.2.2017
MikeInternet1.12.2016
MikeInternet1.2.2017
PaulinaBI analytics1.11.2016
AnitaInternet1.1.2017
AnitaInternet2.2.2017
AnitaInternet2.4.2018
AnitaBI analytics1.6.2017

 

Packages table (Tarifa/Price/DurationMonths):

Storage $              50,006
Internet $            100,002
IT solutions $            150,001
Cloud services $            200,003
BI analytics $            500,003

 

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.