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
GlynMThomas
Resolver I
Resolver I

Restricting Data Load Error

Hi,

 

I'm trying to restrict the data coming into a dashboard by editing the SQL in the native query and adding a filter. This is reading from a view. When I run the SQL query in SSMS it runs fine, however when I add it to power bi it keeps coming back with "The key didn't match any rows in the table". This is on a completely blank power bi file.

 

GlynMThomas_0-1594727054841.png

 

GlynMThomas_1-1594727190504.png

The query isn't the one I'm using but an example of what it looks like (for security reasons)

1 ACCEPTED SOLUTION

It's ok I've fixed it. The query editor was malforming the code so I had to use the advanced editor to correct it.

 

Works now.

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@GlynMThomas , is this date add syntax correct ?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

It's ok I've fixed it. The query editor was malforming the code so I had to use the advanced editor to correct it.

 

Works now.

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.