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
Gekko1
Helper I
Helper I

Auto fill a query URL with some kind of selection

So, I have several BI reports that access different databases from API's through URL's in Power Query. In these URL's, the only section that changes from report to report is a key which I have to manually change in all table queries, is there a way to automatize this process? Something like a textbox where I insert this key and the system automatically replace the key section with the key I've just inserted.

1 ACCEPTED SOLUTION
Vijay_A_Verma
Super User
Super User

Parameter is for this purpose. You will need to change parameter only and query change will not be required. Your queries need to refer to the parameter. This acts as centralized variable where your queries pick up the value from that variable.

To know how to use parameter - https://docs.microsoft.com/en-us/power-query/power-query-query-parameters 

View solution in original post

2 REPLIES 2
Vijay_A_Verma
Super User
Super User

Parameter is for this purpose. You will need to change parameter only and query change will not be required. Your queries need to refer to the parameter. This acts as centralized variable where your queries pick up the value from that variable.

To know how to use parameter - https://docs.microsoft.com/en-us/power-query/power-query-query-parameters 

Thank you very much, I did some research with the link you provided and parameters were exactly what I was searching for.

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.

Top Solution Authors
Top Kudoed Authors