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

Custom Native SQL using Databricks SQL Warehouse in Power BI: Key didn't match any rows in table

Hi! Having a hard time connecting my Databricks SQL Warehouse to my Power BI even though if I'm loading individual tables it can connect. However, if I'm using a custom sql query even if i'm only selecting one table, it shows that error with no other details.

 

What I did:

- Open Power BI

- Login to my microsoft account

- Clicked get data and selected "Databricks"

- Added the host name and https; Added category and database and the query

- Query written this way:

SELECT distinct doft.id
FROM hive_metastore.dw_cep.table_1 doft 
WHERE doft.received_ts::date >= '2023-06-01';

- After clicking connect, I immediately get this error. Please help.

karajvko_0-1703228584437.png

 

Thank you!

 

Regards,

Kara

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous

 

With reference to the information provided by you, the following is the case description: When you use a custom SQL query, you encounter an error.

 

You can refer to the following steps to troubleshoot the problem.

 

  • You can test if the query statement is correct in Databricks SQL Warehouse first.
  • Simplify the query to the minimum and then gradually increase the complexity to see which step is wrong.

Best Regards,
Community Support Team _Yuliax
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Already tried a simple select * from table and tried querying first in Databricks and it works so I'm not sure what's wrong in Power BI 😞

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.