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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Update Data source server for all direct queries

Hi All,

I am using Power Bi connected to Data Explorer on direct query mode.

I need to distribute the Power Bi "template" to our customers and they will need to change the Data Explorer address in base of their server/credentials.

It look like that there is not an easy way to do it, which is a pain in the ass.

 Up to now, I can do it doing: 

- Edit query

- Change manually Source server address:  AzureDataExplorer.Contents("https://xxxxxxxxuksouth.kusto.windows.net", null, null, [MaxRows=null, MaxSize=null, NoTruncate=null, AdditionalSetStatements=null]).

- Click Apply

marco78_1-1658764659172.png

 

 

 I really do not like this mechanism since it deos not look scalable: this procedure has to be replicated for each query!!

Please let me know if there are better way to do it or workarounds on how to handle multiple queries scenarios.

Thanks in advance
Marco

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I got the resolution for the powerbi support team:

    • Using parameters for the data source. → Parameters - Power Query | Microsoft Docs
      • Create a new parameter with the data you want to change, in this case, the ServerName
      • marco78_0-1660902608947.png

         

    • Then in data query "Source" add the parameter replacing the generated string name as in below example
      • marco78_1-1660902608949.png

         

    • Also remember you can create a parameter list for ease of use of the template

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I got the resolution for the powerbi support team:

    • Using parameters for the data source. → Parameters - Power Query | Microsoft Docs
      • Create a new parameter with the data you want to change, in this case, the ServerName
      • marco78_0-1660902608947.png

         

    • Then in data query "Source" add the parameter replacing the generated string name as in below example
      • marco78_1-1660902608949.png

         

    • Also remember you can create a parameter list for ease of use of the template
amitchandak
Super User
Super User

@Anonymous , Using the datsource setting option, try to change the connection details itself

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak , thank for the advice but it is gray out ....

marco78_0-1658820714809.png

 

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Kudoed Authors