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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Snowflake Connection with SQL query

I'm trying to work around and find the solution how to bring relevant data to pbi from Snowflake DB.

 

I have a connection to Snowflake DB, but it is huge and I can't load it all, to reduce size I need to use SQL query to inner join two tables and filter it.

When I connect to Snowflake I add SQL in this box:

Snowflake.PNG

However it gives me this error:

Snowflake_error.PNG

 

Is there a way I can have dynamic connection to Snowflake Database with SQL query? 

 

TIA

1 ACCEPTED SOLUTION

Try removing the semicolon at the end of the SQL. Also, try removing the quotes from the database, schema, and table names.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

7 REPLIES 7
DataInsights
Super User
Super User

@Anonymous,

 

Custom SQL requires that you populate the Database field:

 

DataInsights_0-1661173791063.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

When I typed in this box "LIGHCAST"."UK""POSTING_SKILLS" it gives me the same error.

 

Enter only the database name LIGHTCAST.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Thank you fro your answer, now it gives this errorSNowflake_error_2.PNG

Try removing the semicolon at the end of the SQL. Also, try removing the quotes from the database, schema, and table names.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




I'm having this same issue, but I didn't have the table names in "" and no semicolon in my sql. I've noticed that if a hard code the connection into the query editor I have no issue pulling in my data - but this is a bit of a faff. I've tested with a very simple sql expression:

select count(*) from [warehouse].[schema].[table] but literally any sql in the UI will cause this error for me. 

Like I say, I have a viable workaround but would like to know what's causing this issue in case I need to trouble shoot again in the future.

Anonymous
Not applicable

Thank you so much, it works!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.