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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

Anonymous
Not applicable

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

marco78_0-1658820714809.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.