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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
JordanImran
Frequent Visitor

Changing the Environment of a Power Apps visual using Parameters

Hi,

 

I'm using the Power Apps visual for Power BI. I have Dev, Test, UAT/Staging and Production Environments setup for both apps and BI.

 

Can anyone shed light on how to create a parameterised PBIT file that can change the Power Apps environment in step with the Report itself?

 

Ideally I'd like:

 

Filemydash.pbit   
Env (PBI)DevTest

Staging

Prod
Env (PowerApps)DevTestStagingProd

 

Where mydash.pbit is the single file.

10 REPLIES 10
Devale1
Regular Visitor

You can remove the fields from the powerapp, go to general pane, and click reset.  Then,  re-add the fields and you can select the powerapp.

 

Another option:

Use the pbir format and change the appid in the visual.json to the app of the other powerapp

This does require pbir which is in preview and currently has some limitations. 

To find the appid, play the app in the browser and look in the url after /a/

Anonymous
Not applicable

Hi,

Did you get anywhere with this in the last few years, @JordanImran? I have just come across the same challenge and have posted in the Power Apps community here.

Thanks.

Eland209
New Member

Hi,

 

I encountered the same issue and found a work around. 

 

In power bi desktop: Change the Power Bi visual to a table, leaving all datafields. Save and close the report. 

Reopen the report and change the table visual back to power apps. The visual will now ask to select an environment and then an app. In these steps you can select your new environment and app. 

HI Eland209,

do u have find another solutions to Changing the Environment of a Power Apps?

@luca_di_odoardo , Unfortunately not.

v-zhenbw-msft
Community Support
Community Support

Hi @JordanImran ,

 

Do you want to create a table visual and put a file in it?

If yes, sorry for that power BI cannot achieve this.

Maybe you can upload your files to OneDrive For Business and copy the link based on Enter Data function, or create a Text box and insert the link.

 

change1.jpg

 

If it doesn’t meet your requirement, perhaps you can submit the requirement to ideas and add your comments there to make this feature coming sooner : https://ideas.powerbi.com/forums/265200-power-bi-ideas

 

Or you can try to find a solution in the power Apps forum.

 

Best regards,

 

Community Support Team _ zhenbw

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

Not exactly - I'm looking to build a single Power BI Template File, and move it between Development and Test Environments.

 

When I move the dashboard using DevOps, I can adjust SQL connection strings without modifying the dashboard. For example:

 

  1. Create .pbit file with parameter "Connection String" in the Power query data source settings
  2. Upon loading the Dashboard in a new environment, use PowerShell to set the parameters of the connection string like below:

Dev Connection String: user=mynamedev;pwd=mypassdev;db=mydbdev

Test Connection String: user=mynametest;pwd=mypasstest;db=mydbtest

 

Advantage is I have ONE .pbit file to manage.

 

I have a Power Apps for Power BI visual in my dashboard. However I can only change the environment to which it is connected by :

 

  1. deleting the visual
  2. re-adding the visual
  3. connecting to my test environment and selecting the test version of the app

My question is: Is there a way to change the PowerApps connections (for Power BI) using parameters, as we would for SQL connection strings?

 

Thanks

Hi @JordanImran ,

 

Maybe you can refer this article. Hope it helps.

 

https://www.howtoexcel.org/power-bi/integrating-power-bi-and-powerapps/

 

Best regards,

 

Community Support Team _ zhenbw

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

Doesn't help I'm afraid - more of an entry level guide.

 

I'll mark 'not possible' as the solution and get an idea patched to MSFT

 

Cheers all

Greg_Deckler
Community Champion
Community Champion

@JordanImran - I'm not aware of any way to do that.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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.