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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to easily switch a power app that is embedded in a power bi report from power app environment DE

I have created a power bi report with an embedded power app. As I am developing the report, the power app resides on a development environment. When the report is finished I have to copy (export/import solution) the power app to a production environment. And this is where the problem starts as now the embedded power app needs to refer to the production environment instead of the development one.

 

The only solution I found is to delete the power app from the report, add a new power app, link it to the existing app in the production environment... and set all the visual properties (size, title, color...) of the power app visual again.

A painful process... 

 

How to easily switch an embedded power app in my power bi report from the development to the production environment?

Is there no way to just edit the URL of the embedded app somewhere (via a tool)?

 

Thanks

7 REPLIES 7
veikko
Frequent Visitor

If anyone is still wondering about this, there is now a solution.

You can use the "Reset to default" option in the visual's settings. This keeps the fields, but allows you to select a different Power App.

Lukazy
New Member

@Anonymous 

Ah, I recently came across the same problem. You can solve this by saving the power BI report not as pbix but as pbip, i.e., as project. This is quite new feature and allows you to have the Power BI report in more or less human readable shape. It will create a folder named <ReportName>.Report, where you will find a report.json file. It contains information about all the visuals of your report. It will also contain a line with your embedded power App. 

 

It looks something like: '/providers/Microsoft.PowerApps/apps/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'. The number will match the unique identifier of your power app. You can find it in the Power Apps environment if you navigate to some detail panel.

All you have to do is replace all occurrences of your Development Power App identifiert with the one of the production. Then reload the report and it should work.

Anonymous
Not applicable

Actually just renaming it to .zip, unzipping, rezipping and renaming to .pbix (without doing any changes) already gives an error when trying  to open it in PBI desktop 😞

RudiSterckx_1-1698131881927.png

 

Use 7zip

Anonymous
Not applicable

Thanks for you answer, I thought that would be an option.
I unzipped the PBIX and used visual studio to search on 'powerapp', see picture.

So I just need to replace the App ID and zip everything again or is there some extra catch I need to take care off?
Also, is there some tool that you could recommend to do this? I am a layman with Visual studio...
Thanks again for any furhter advise.

 

RudiSterckx_0-1698130987005.png

 

If the PBIP includes the visual definitions then you can try that one instead.

 

As you can likely appreciate patching the PBIX is wholly unsupported and done at your own risk. Always have a backup.

lbendlin
Super User
Super User

You can patch the URL inside the PBIX file (it's an archive with a bunch of JSON files etc, and one of them contains the definition of the visuals). However this would not fall under the "Easily"  category.

 

If this is important to you please consider voting for an existing idea or raising a new one at https://ideas.fabric.microsoft.com/?forum=2d80fd4a-16cb-4189-896b-e0dac5e08b41

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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