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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
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.