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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Kudoed Authors