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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
ChristofferL
Frequent Visitor

Rows missing in imported data from SQL-Connection (Power BI desktop)

Hi,

 

When I import data from an SQL connection to the Data-model in Power BI Desktop the Data actually loaded to Power BI does not match data in my Query Editor Preview. It seems like some rows are lost during the import. 

 

I have attached an example below: 

 

1) Below is the data representation that is missing data in Power BI Desktop. The criteria for the data row are:

 

Document No. = 10119264 and

Master No. 8S16P402 and

Posting Date = 2016-01-02 and

Amount = 239,96

 

 

 Data Power BI Desktop (visualized).png

 

2) However, if I look in the Data Query Preview for the SQL-connection feeting the Data model the above mentioned row of data is included in the data for import (marked with gray). 

 

Data Query Editor.png

 

I tried only to import the missing row seperatly filtering on the Document No. and Master No. in the Query editor and this part works. However if I load the full data set this row is missing. 

 

Do you have any possible explaination to this issue? 

 

Best regards 


Christoffer

1 ACCEPTED SOLUTION

Hi thank you for the tip.

 

I managed to solve the issue and it indeed had to do with the column formating. The data format for the matching columns in the query merge were data type 'Any' for both columns.

 

For some reason most rows matched except a few rows apparently having a different format. I changed the format of the matching ID columns to 'Text' which solved the issue.

 

Thanks for your help.

 

Regards

Christoffer

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @ChristofferL,

 

In my opinion, I'd like to suggest you to deal with this column to remove any whitespace or other special characters.

In addition, you can also try to modify the filter mode to 'contain' or 'starts with'.

10.PNG

 

Regards,

Xiaoxin Sheng

Hi thank you for the tip.

 

I managed to solve the issue and it indeed had to do with the column formating. The data format for the matching columns in the query merge were data type 'Any' for both columns.

 

For some reason most rows matched except a few rows apparently having a different format. I changed the format of the matching ID columns to 'Text' which solved the issue.

 

Thanks for your help.

 

Regards

Christoffer

 

Greg_Deckler
Community Champion
Community Champion

Perhaps I am missing something but your first image seems to show that row in the dataset. ?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

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