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
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.

9 REPLIES 9
nikobland
Regular Visitor

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
Super User
Super User

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


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.