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
loujiang
Frequent Visitor

PBIDS File connect to Databrick cannot use query property

Hello, Dear Power BI community, 

I am using the PBIDS File to make the connection to Databricks easier. I would also use some native query to make the connection more accurate and fit the need. 

loujiang_0-1739967557690.png

 

But when I using the query to input my designed qurey, there is one error comming, as property query not supported. 

Is there some posibility to input the native query there?

best wishes

loujiang

 

1 ACCEPTED SOLUTION
BhavinVyas3003
Super User
Super User

If you need to apply a native SQL query, you can use Power BI Desktop by connecting via PBIDS and then entering your SQL query manually in Power Query’s Advanced Editor.

For automation, you can generate .PBIX files dynamically using PowerShell, Python (pbi-tools), or the Power BI REST API by extracting a PBIX template, modifying the M script to inject your SQL query, and repackaging the file before deploying it to the Power BI Service.

If you are using Power BI Premium, you can modify datasets programmatically using the XMLA Endpoint through SSMS or Tabular Editor, and automate query updates and dataset refreshes using Power Automate or REST API.  


Thanks,
Bhavin
Problem solved? Hit “Accept as Solution” and high-five me with a Kudos! Others will thank you later!

View solution in original post

3 REPLIES 3
BhavinVyas3003
Super User
Super User

If you need to apply a native SQL query, you can use Power BI Desktop by connecting via PBIDS and then entering your SQL query manually in Power Query’s Advanced Editor.

For automation, you can generate .PBIX files dynamically using PowerShell, Python (pbi-tools), or the Power BI REST API by extracting a PBIX template, modifying the M script to inject your SQL query, and repackaging the file before deploying it to the Power BI Service.

If you are using Power BI Premium, you can modify datasets programmatically using the XMLA Endpoint through SSMS or Tabular Editor, and automate query updates and dataset refreshes using Power Automate or REST API.  


Thanks,
Bhavin
Problem solved? Hit “Accept as Solution” and high-five me with a Kudos! Others will thank you later!
BhavinVyas3003
Super User
Super User

Hi,

 

PBIDS files are designed only to store connection information, such as: Data source type (Databricks, SQL Server, etc.), Server and database details, Authentication method

They do not support embedding queries because PBIDS files are meant to guide users to the right connection settings, not predefine dataset transformations or filters.

 

Check if following approach works for you,

Use PBIDS for the connection, then apply the query in Power BI

  1. Open Power BI after using PBIDS.
  2. Navigate to Transform Data (Power Query Editor).
  3. Apply your native SQL query there.

 

Thanks,

Bhavin


Thanks,
Bhavin
Problem solved? Hit “Accept as Solution” and high-five me with a Kudos! Others will thank you later!

Hello, Bhavin, 

Thanks for the confirm. Is there some other automated method available to enable the native query? We would generate the sql query automatically and would like to generate Power BI Files with the connection and SQL applied to . 

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.