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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.