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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
ksan
New Member

Data in PowerQuery does not Match SQL Database

Good Morning.

 

Let me start by saying a newbie, so I may not be using the tool as intended.

 

I'm trying to match data from a list I imported to PowerQuery (call it Table 1) and ensure that those records do not already exist in a table in our database.  I've connected to our SQL server via PowerQuery by specifying the table and the columns of interest in a query under the advanced options (table 2).

 

Next, I went to merge queries and joined table 1 with table 2 (left join as I wanted to know which matched and which didn't) as I've done before without issues.  This time, my counts seemed a bit odd, so I validated by running the same query within SQL server.  The count of records for Table 2 in SQL server match the count of records I have in PowerQuery... but when I match table 1 to table 2 in SQL server, I match on 20 additional records.  

 

So... I went back to table 2 in PowerQuery and filtered on text contains and plugged in a random email address from the 20 missing and, sure enough, it's does not exisit in the table.

 

My question is, why doesn't the data in table 2 mirror what I have in SQL server if it's drawing from the same source and using the same query? 20 records isn't a huge deal, but it just makes me question if this has happened, at a larger scale, on any similar projects.

 

Any thoughts?

 

Thanks in advance, 

 

Kari

 

 

2 REPLIES 2
Eric_Zhang
Microsoft Employee
Microsoft Employee


@ksan wrote:

Good Morning.

 

Let me start by saying a newbie, so I may not be using the tool as intended.

 

I'm trying to match data from a list I imported to PowerQuery (call it Table 1) and ensure that those records do not already exist in a table in our database.  I've connected to our SQL server via PowerQuery by specifying the table and the columns of interest in a query under the advanced options (table 2).

 

Next, I went to merge queries and joined table 1 with table 2 (left join as I wanted to know which matched and which didn't) as I've done before without issues.  This time, my counts seemed a bit odd, so I validated by running the same query within SQL server.  The count of records for Table 2 in SQL server match the count of records I have in PowerQuery... but when I match table 1 to table 2 in SQL server, I match on 20 additional records.  

 

So... I went back to table 2 in PowerQuery and filtered on text contains and plugged in a random email address from the 20 missing and, sure enough, it's does not exisit in the table.

 

My question is, why doesn't the data in table 2 mirror what I have in SQL server if it's drawing from the same source and using the same query? 20 records isn't a huge deal, but it just makes me question if this has happened, at a larger scale, on any similar projects.

 

Any thoughts?

 

Thanks in advance, 

 

Kari

 

 


@ksan

This sounds really odd, as I'm not able to reproduce this behavior, could you share me any problematic data that could help to  reproduce this issue? Since you're using SQL Server, so maybe you can export those two tables schema and data?

Anonymous
Not applicable

I am having the same issue!

 

My Query works in excel PowerQuery, but running the same thing in BI has at least one record that is off. 

 

No matter what I try, power BI is displaying the "call date" for a particular record as 7/26/2019. Everywhere else the date is displaying as it appears in the database I am referencing: 7/29/2019.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.