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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
patilpoonam21
Helper I
Helper I

Dynamically change the URL link for different Environment in Power BI

Hi,

 

Currently in my 'Global' PBI file, I have a table and when I click on the column in the table 'PBICustLink' , it redirects me to the another PBI 'Customer' which has customer level information.

I am providing the Web url of the 'customer' pbi and filtering it to the customer level to get the record of each customer.

CustomerPBICuslink0-31 Past Due
ACustomer - Power BI&filter=OpenInv%2FA eq %2710
BCustomer - Power BI&filter=OpenInv%2FB eq %2712
CCustomer - Power BI&filter=OpenInv%2FC eq %2713
DCustomer - Power BI&filter=OpenInv%2FD eq %2714
ECustomer - Power BI&filter=OpenInv%2FE eq %2716

 

I want to dynamically change the PBICustLink based on the enironment Dev, Test and Prod. Can anyone please help?

 

Thanks,

Rinku

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @patilpoonam21 ,
Based on your description and the example data provided, I think you can dynamically change the URL links for different environments (development, test, and production) in Power BI by setting parameters.
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:

vheqmsft_0-1709187463299.png

1.Open power query and create a parameter and enter the values you want for your test environment or other dynamically changing values

vheqmsft_1-1709187514615.png

vheqmsft_2-1709187536515.png

2.Right click the parameter and choose enable load to apply parameter

vheqmsft_4-1709187667734.png

 

3.Create a measure

 

PBICustLink = 
    CONCATENATE(
        SELECTEDVALUE('Environment URL'[Environment URL]), 
        "/reports/&filter=OpenInv%2F" & SELECTEDVALUE('Table'[Customer]) & " eq " & "%" & 27 
    )

 

4.Final output

vheqmsft_5-1709187735335.png

Replace any value in the measure as you see fit.

You can refer to these documents to learn more about parameter settings:
Deep Dive into Query Parameters and Power BI Templates | Microsoft Power BI Blog | Microsoft Power B...
Use parameters to visualize variables - Power BI | Microsoft Learn

 

Best regards,

Albert He

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly





View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @patilpoonam21 ,
Based on your description and the example data provided, I think you can dynamically change the URL links for different environments (development, test, and production) in Power BI by setting parameters.
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:

vheqmsft_0-1709187463299.png

1.Open power query and create a parameter and enter the values you want for your test environment or other dynamically changing values

vheqmsft_1-1709187514615.png

vheqmsft_2-1709187536515.png

2.Right click the parameter and choose enable load to apply parameter

vheqmsft_4-1709187667734.png

 

3.Create a measure

 

PBICustLink = 
    CONCATENATE(
        SELECTEDVALUE('Environment URL'[Environment URL]), 
        "/reports/&filter=OpenInv%2F" & SELECTEDVALUE('Table'[Customer]) & " eq " & "%" & 27 
    )

 

4.Final output

vheqmsft_5-1709187735335.png

Replace any value in the measure as you see fit.

You can refer to these documents to learn more about parameter settings:
Deep Dive into Query Parameters and Power BI Templates | Microsoft Power BI Blog | Microsoft Power B...
Use parameters to visualize variables - Power BI | Microsoft Learn

 

Best regards,

Albert He

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly





Thank you @Anonymous for the reply. 

I tried the the solution suggested by you and changing the parameter value on cloud under parameter setting. However, for UAT environment it is still redirecing to the Dev url. Am I missing something?

 

Thanks,

Rinku

Anonymous
Not applicable

Hi @patilpoonam21 ,
According to your description, you can follow the above steps to set the parameters to a more refined level, for example not only on your environment variables, but also your back redirection parameters, or you can check the following whether the redirected url address is restricted to external links that can only be clicked on to go to the developer's page or that the administrator is prohibiting jumping from external links.

Best regards,

Albert He

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Hi @Anonymous ,

 

As you specified, to change the parameter dynamically I need to change the URL in Cloud server under parameter setting so I changed it customer report UAT environment URL.

Also, in Power BI desktop, I changed the measure as below:

patilpoonam21_1-1709684466872.png

patilpoonam21_2-1709684610527.png

 

 

Still it is redirecting to the Dev URL. Is there anything else I need to change? 

 

 

Thanks,

Rinku

 

Sorry for the confusion. I got an error while refreshing the dashboard so the changes couldn't reflect.

Thank you again for the detailed instructions. 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Solution Authors