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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
geertvanhove
New Member

How to replace a live connection with power bi dataset

We have created a number of complex reports using live connection to a tabular datamodel.

After publishing, each report turns out to have a dedicated power bi dataset.

This is very confusing for users who want to use a dataset for self-service BI afterwards.

We now want to generate one dataset containing all objects in the tabular model and have all other reports connect to this shared dataset. So only one dataset remains that can be used for all current and new reports.

Is it possible to modify an existing report (that currently uses a live connection to a tabular model) to use a predefined dataset instead?

 

Many thanks

2 ACCEPTED SOLUTIONS
jdbuchanan71
Super User
Super User

It is possible, yes.

  1. Create a new blank .pbix file that you link to your SSAS model.
  2. Save the file as something you will know is the main source, my test file was called 'Master_Data'
  3. Publish this to your workspace.

This is the source that all your reports will use as their source.

 

Next you will need the PowerShell script from this article.

https://powerbi.tips/2020/05/hot-swap-power-bi-report-connections/

It strips out all the connections from an existing .pbix file.

When you run the script you will be prompted to select a file, that will be one of your existing reports you want to swap over to the new dataset.  I suggest making a copy of the report to start with for testing.

It will then open the file and all your visuals will be broken:

jdbuchanan71_0-1613076779659.png

Now got to Get Data > Power BI datasets and choose the Master_Data you published in the first steps (or whatever you called it)

select_data.jpg

Power_BI_Dataset.jpg

Then click 'Create'. 

If it all works your visuals should populate and all be linked to the new PowerBI dataset.

Working_Report.jpg

Your reports all point to the single PowerBI Master_Data set and that points to your SSAS.

View solution in original post

This is exactly what I needed.

Many, many thanks

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

It is possible, yes.

  1. Create a new blank .pbix file that you link to your SSAS model.
  2. Save the file as something you will know is the main source, my test file was called 'Master_Data'
  3. Publish this to your workspace.

This is the source that all your reports will use as their source.

 

Next you will need the PowerShell script from this article.

https://powerbi.tips/2020/05/hot-swap-power-bi-report-connections/

It strips out all the connections from an existing .pbix file.

When you run the script you will be prompted to select a file, that will be one of your existing reports you want to swap over to the new dataset.  I suggest making a copy of the report to start with for testing.

It will then open the file and all your visuals will be broken:

jdbuchanan71_0-1613076779659.png

Now got to Get Data > Power BI datasets and choose the Master_Data you published in the first steps (or whatever you called it)

select_data.jpg

Power_BI_Dataset.jpg

Then click 'Create'. 

If it all works your visuals should populate and all be linked to the new PowerBI dataset.

Working_Report.jpg

Your reports all point to the single PowerBI Master_Data set and that points to your SSAS.

This is exactly what I needed.

Many, many thanks

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors