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

View all the Fabric Data Days sessions on demand. View schedule

Reply
BrunaSeixas
Frequent Visitor

Added column on query not right

hello, guys.

 

I have a very strange issue happening on my data on the PBI query. I am trying to construct a new database from a previous one. To do that I am using the query of PBI to calculate everything I need. Most of the calculations is to add 2 or 3 columns. But for some reason they are not right when I use the query, but they are right when I add a calculate column direct on the visualization.  Just to make sure it is clear the following image show two columns, both are the sum of two other columns, so the columns I am showing are A+B. The column "Added Table on Query" was created as an added column ON THE QUERY and the "Calculated column" was created as a new column direct on the tables on fields on the visualization of PBI. I really do not understand why the total are different. What is happening?

 

 Mos strange.PNG

1 ACCEPTED SOLUTION

Phil_Seamark. I don´t think this is the problem. Anyway I found out what was heppening. On the Query Editor there where cells with "null", even with the type being number, it was not making the additions. So, A(with nulls)+B = C(with nulls) and the nulls were not showing on the visualizations. After I replaced the nulls by 0, stared to work. Don´t know exactly why

View solution in original post

2 REPLIES 2
Phil_Seamark
Microsoft Employee
Microsoft Employee

HI @BrunaSeixas

 

Could it be a datatype/rounding problem?  Is one data source using Decimals, while the other is just using Whole Numbers?


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Phil_Seamark. I don´t think this is the problem. Anyway I found out what was heppening. On the Query Editor there where cells with "null", even with the type being number, it was not making the additions. So, A(with nulls)+B = C(with nulls) and the nulls were not showing on the visualizations. After I replaced the nulls by 0, stared to work. Don´t know exactly why

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors