MikeCarlo / HotSwapConnections

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hot Swap Connections

Full guide: https://powerbi.tips/2020/08/hot-swap-report-connections-external-tools/

Download using the business ops installer: https://powerbi.tips/product/business-ops-beta/

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.

About

License:MIT License


Languages

Language:PowerShell 100.0%