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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
tctrout
Responsive Resident
Responsive Resident

Value.NativeQuery() with Azure Databricks

Looking for guidance on Power Query connecting to Azure Databricks using Value.NativeQuery()

I have read in other posts that Value.NativeQuery() will not work becuase Azure Databricks does not support native queries.  However, I know Databricks supports native queries as I was able to implement this: https://learn.microsoft.com/en-us/azure/databricks/integrations/bi/power-bi#using-a-custom-sql-query...

The above creates a function that allows you to paste in the desired sql statement. However, it does not allow subsequent applied Power Query steps to be folded.

I want to use Value.NativeQuery() so that the subsequent applied Power Query steps can fold back to Databricks.

I have tried multiple approaches and always receive the below error.
Below are the approaches I have tried, with variations of each. I used ||Pipe|| to mask names. Hoping someone can spot an error in my syntax?  Or insights why 1 method of Native Queries works but not the Value.NativeQuery()?

Error with Options.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @tctrout ,

 

It seems that Azure Databricks does not support query folding currently.

Please check if you have transformations that prevent folding. If you don't have those transformations in Query folding - Power Query | Microsoft Learn and you can't see view native query in applied steps, it states the source don't support query folding for power bi. As for how to support, I suggest you create an idea for it in  Ideas  to improve the power bi.

Query folding on native queries - Power Query | Microsoft Learn

Similar post: Solved: Query folding - Databricks - Microsoft Power BI Community

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @tctrout ,

 

It seems that Azure Databricks does not support query folding currently.

Please check if you have transformations that prevent folding. If you don't have those transformations in Query folding - Power Query | Microsoft Learn and you can't see view native query in applied steps, it states the source don't support query folding for power bi. As for how to support, I suggest you create an idea for it in  Ideas  to improve the power bi.

Query folding on native queries - Power Query | Microsoft Learn

Similar post: Solved: Query folding - Databricks - Microsoft Power BI Community

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.