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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
David111
New Member

Error processing data in dataset - The key didn't match any rows in the table

Hi 

I have created a report that joins two sql server views in a 1:Many relationship with one view containing the supervisors and the the other their trainees. Ths is the relationship:

David111_0-1737333535392.png

It all works fine in the desktop app and I can refresh the datasets there no problem, however when I try to refresh the semantic model in the web version I get the error message below:

David111_1-1737333770043.png

I have searched the "The key didn't match any rows in the table" part of the message extensively and it usually applies to excel sourced datasets where one of the column names has changed. This is not the case here. I have also confirmed that there are no IDs in the child view (vwPowerBi_SupervisorTrainees) that do not exist in the parent view.

Any help\ideas would be much appreciated.

Regards

David

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @David111 

I found some links and hope it helps:

Solved: Expression Error.: The key didn't match any rows i... - Microsoft Fabric Community

 

Solved: Expression.Error: The key didn't match any rows in... - Microsoft Fabric Community

 

This could also be an issue with the new version. It can have a problem with text format conversion, the previous CSV file extracted to PBI line breaks will be converted to spaces, and now the line breaks will become line breaks. You need to check if there is any problem with the steps of your PowerQuery format conversion. It's also possible that there is an internal service issue, which the team is currently following up.

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
David111
New Member

Hi @Anonymous 

Thanks heaps for the response. I checked the datatypes and one was varchar(10) and the other nvarchar(20), so I tried casting them both as varchar(10), but it made no difference. I even tried casting them both as ints. I also confirmed there are no null values returned for these fields in either view.

It is definitely this join causing the issue. When I remove the vwPowerBI_SupervisorTrainees view from the report, I am able to refresh the dataset (but don't have the information I need).

Regards

David

Anonymous
Not applicable

Hi, @David111 

I found some links and hope it helps:

Solved: Expression Error.: The key didn't match any rows i... - Microsoft Fabric Community

 

Solved: Expression.Error: The key didn't match any rows in... - Microsoft Fabric Community

 

This could also be an issue with the new version. It can have a problem with text format conversion, the previous CSV file extracted to PBI line breaks will be converted to spaces, and now the line breaks will become line breaks. You need to check if there is any problem with the steps of your PowerQuery format conversion. It's also possible that there is an internal service issue, which the team is currently following up.

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yohua-msft 

 

It was a permissions issue to the view vwPowerBI_SupervisorTrainees.

Thanks, that second link tipped me off. 

 

Regards

David

Anonymous
Not applicable

Hi, @David111 

You need to check that the data types of the join columns are consistent. If the data types are different, it may cause the match to fail. If there is a null value (NULL) in the join column, it can cause the match to fail. Consider handling null values in join conditions.

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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