Hot Swap Report Connections – External Tools

Latest Version Download:

Download the latest version of Hot Swap Connections using Business Ops 

Hot Swap Connections

Splitting models from reports has great advantages, but can make it harder to edit. When editing a model it is useful to see how you it will effect the reports. Using live connections would mean republishing the model back to the cloud and then refreshing the connection for every change you wish to test. In addition, you would probably want to make test workspaces to not overwrite a live production model while developing.

Now there is an external tool that can help solve these issues. The tool has two functions. The first will allow you to switch from a live connection to directly connecting to an open Power BI report. This will allow “Local Development” so that it can be done on your machine without needing to republish. Changes can be seen instantly and time spent on testing can be dramatically decreased.
The second will removed any connections to allow to reconnect to a shared dataset or AAS model.

Instructions to Install

Please install using the official installer here:
https://powerbi.tips/2020/08/one-tool-to-install-them-all/

Using the Hot Swap Connections Tool

After installing the tool, click external tools the Hot Swap Connections to launch.

Connect Tab

This tool will remove any live connections from the selected report and connect it directly to the Power BI report it was launched from. This will only remove live connections so you cannot accidentally delete entire models.

You can choose between Overwrite and connect or Copy and connect. Selecting Overwrite will directly edit that file by removing the connections and replacing with a live connection to the current file. Selecting copy will leave your file intact and create a copy in the same directory with the suffix defined in the settings tab.
It will then open the report that is connected to the model file.

Steps:

  • Open your Model file
  • Select the Connect tab
  • Run Hot Swap Connections
  • Choose to Overwrite or Copy
  • Select Report file to connect

Remove Tab

This tool will remove any live connections from the selected report and open the file. This is useful when you have made local edits and want to connect it back to a dataset or analysis services model. This will only remove live connections so you cannot accidentally delete entire models.

You can choose between Overwrite and remove live connections or Copy and remove live connections. Selecting Overwrite will directly edit that file by removing the connections. Selecting copy will leave your file intact and create a copy in the same directory with the suffix defined in the settings tab.
It will then open the report that has no connections.

Steps:

  • Open any Power BI report
  • Select the Remove tab
  • Run Remove Connections
  • Choose to Overwrite or Copy
  • Select Report file to remove connections

The script will leave all visualizations and report features intact. But, all connections will be removed. When you open the report again in power bi desktop, all visuals will appear broken:

This is because you have removed all data from the report. Select a new data source to connect the report to. If the new source matches the names of the columns and measures used in the visuals, they will all repopulate.

Settings Tab

When selecting Copy and connect or Copy and remove live connections, the tool will create a copy of your report first so you do not directly edit you report file. It will place the copy in the same directory as the original and add a suffix as defined in the settings tab.

Watch the webinar below

Steve and Mike talk through the external tool and see it in action!

16 Comments

  1. Is there anyway to remove the connections from a report that will not open? We have some reports that connect to old Live Power BI Datasets and reports will not open at all. Was going to try this hot swap tool but looks like the report has to open first. Would love a way to change them for these reports that can’t even open though.

  2. Thank you Steve!
    Followed the video from around @23min, and this worked so well, saved me alot of hours remaking tons of bookmarks.

  3. When I click the button in the external tools I see a PowerShell window pop up, then immediately disappear without the tool opening.

  4. I am using a report in a Deployment Pipeline. Is there any way to swap the live connection to the correct dataset workspace via a parameter so that I can promote the report through the pipeline and it will automatically connect to the correct dataset for each DTAP stage?

  5. After opening any report with the tool, i got a message, that the Verion of PowerBI-Desktop is not compatible with the Report. The version of Desktop is 2.84.981.0 (August 2020).
    I am using the “german” Version of the Desktop. Any suggestions?

    • This sounds like the report you are opening was made with a newer version of Power BI than you have on your machine.
      You should try updating to the new version from the power bi website – or better if you have windows 10 you can install from the app store to auto update

  6. I only see the Business Ops Beta v0.0.10 download. Is V1.1.0 available somewhere?

    • V1.1.0 is the Hot Swap version – This is included in the Business Ops download available on the website 🙂

  7. If I select one of the functions, like Overwrite and Connect, it launches a file open dialog. If I cancel that dialog, the tools hangs. Can this please be fixed 🙂

    • Thank you for your comment – You’ll be please to know this has been updated and will be in the next release (very shortly). You will get a prompt to update when released. Thank you!

      • Steve, another request would be to have suffix settings for both connect and remove and for them to persist once you change them, this way they are used consistently.
        Thanks, hopefully you would view this as helpful. Love the tool, extremely valuable.

3 Trackbacks / Pingbacks

  1. Third-Party Tools to Ease Power BI Development and Increase Analyst Productivity – Olivier Travers
  2. Herramientas externas en Power BI Desktop - dataXbi
  3. Doing Power BI the Right Way: 8. Planning for separation – data models & reports | Paul Turley's SQL Server BI Blog

Comments are closed.