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

What is the difference between Value.NativeQuery and DataBricks.Query

Hi ,

 

I m new to using DataBricks with PBI. 

Is there any difference wrapping Value.NativeQuery over Databricks.Catalog as in Value.NativeQuery(Databricks.Catalog( .... ))

vs calling Databricks.Query?

 

  • Does DataBricks.Query offer any advantage as in support for QueryFolding/ Support for Direct Query?
  • For me... Direct  Query is failing from Power BI Desktop with both approaches. With Databricks.Query I m able to see data in Power Query Editor.. but fails when I drag a few fields to the table visual. With Value.NativeQuery  I m unable to use Direct Query
  • Does any of the two approaches support Query Folding (for import mode queries)? I couldn't find the native query in the advanced editor(even after including Enable Query Folding option as parameter) so was wondering if I was doing it right.

 

Thanks & regards,

Mannu

1 REPLY 1
rajendraongole1
Super User
Super User

Hi @Anonymous -Value.NativeQuery over Databricks.Catalog and Databricks.Query depends on your specific requirements and preferences for query complexity, control, and simplicity.Both approaches allow you to run SQL queries against Databricks, but they have different implications and use cases.

Table reference first and then running a native SQL query on top of it using Value.NativeQuery

Databricks.Query this method directly runs a SQL query against Databricks without needing to first create a catalog

 

Reference:

Value.NativeQuery - PowerQuery M | Microsoft Learn

Connect Power BI to Azure Databricks - Azure Databricks | Microsoft Learn

 

Hope it helps

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





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

Proud to be a Super User!





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.