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

Change data source from SQL Server Analysis Services Database to Power BI Datasets

Hi, I have reports that have a live connection to a tabular model on SQL Server Analysis Services Database, and now I want to change the data source to use Power BI datasets. These reports have a lot of tabs, bookmarks, and visuals, so I'm trying to avoid to have to create an empty report and copy and paste all visuals. Is there a way to do this in Desktop?

 

Thank you!

1 ACCEPTED SOLUTION

HI @Anonymous ,

 

No, connecting to the dataset and then copy/paste is going to be your best bet.

I would appreciate Kudos if my response was helpful. I would also appreciate it if you would Mark this As a Solution if it solved the problem. Thanks!




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




View solution in original post

13 REPLIES 13
Nik_report_dev
New Member

1.deploy blank power bi connected to semantic model to your workspace
2.change blank power bi file extension from ".pbix" to ".zip"
3.unzip the ".zip" file during this process (in the zip file > Extract All)
4.go back to your SSAS connected power bi report, Change the extension from ".pbix" to ".zip"
5.unzip the ".zip" file during this process (in the zip file > Extract All)
6.copy and paste 'Connection' file conents from blank to your power bi report connection file
7.Delete "SecurityBindings" file in the ".zip" file from your power bi zip where you have all your visuals
8.open [Contents_type].xml with notepad and delete: "<Override PartName="/SecurityBindings" ContentType="" />" in power bi report with visuals
9.save and close
10.zip all items in the modified folder with new name
11.Change the extension from ".zip" to ".pbix"
The file will open without breaks

MG86
Advocate II
Advocate II

For those coming here in 2024 or later, I figured out an easy solution to remove the current connection to AAS/SSAS:

1. At the bottom of PBI Desktop it states: Live Connection: Connected Make changes to this model

2. Click 'Make changes to this model'
3. Click 'Add a local model'

4. Click 'Submit'. A Direct Query connection will now be made.
5. Go to Transform Data > Data source settings

6. Select the DirectQuery to AS source and either hit the trashcan on the right or rightclick > delete. Confirm Delete.

7. Hit 'Apply Changes' in the bar that pops up above. There is now no data source whatsoever

8. Go to Get Data > Power BI semantic models

9. Choose a semantic model and connect

 

 

fgoussou
Frequent Visitor

This works for Semantic Models in March 2024:

 

  • Create a new empty report to serve as the connection source:
  1. Home -> New -> Report
  2. Connect to the desired semantic model
  3. Save the report as source.pbix

 

  • Create a copy of the SSAS .pbix file. Let’s call this Destination.pbix
  • Make sure Destination.pbix is not ready only (in widnows, right click -> Properties ->Attributes).
  • Rename Destination.pbix by changing the extension from .pbix to .zip.

Note: If you are on Windows, you will need to have the “File name extensions” checkbox checked in Windows Explorer as shown below:

fgoussou_0-1709549992960.png

 

  • Rename the source.pbix by changing the extension from .pbix to .zip.
  • Use Beyond Compare to compare the two .zip files and copy over the contents of the “Connections” file from source.pbix to the other file.
  • Rename the resulting file from step 6 by changing the extension from .zip to .pbix.
  • When you open the converted file, you might notice that the hidden tables and hidden measures are being shown. Right click on one of these tables and uncheck the “View Hidden” option. The visibility settings for all tables and measures will now work as expected.

Superb. Thanks for sharing 👏

Anonymous
Not applicable

This is pretty ridiculous. SO you can repoint nearly every other data source to a different data source by going into power query or get data but you can't repoint an on premise Analysis Services cube to an identical Power BI dataset without "Copying and pasting"...just poor.

Anonymous
Not applicable

I agree.. 😅

collinq
Super User
Super User

Hi @Anonymous ,

 

Unless the Power BI dataset is identical to the SQL Server Analysis Services Database, you will have to get new connections.  BUT, you stated that you are using a dataset and not a "different SQL Server" so that sounds to me like you have a totally different connection and datasource and so you will have to rebuild everything.  In that case, copy and paste visuals won't work either if your data sources in the dataset are different.

I would appreciate Kudos if my response was helpful. I would also appreciate it if you would Mark this As a Solution if it solved the problem. Thanks!




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Anonymous
Not applicable

Thank you for the quick response. The content in the Power BI dataset is identical to the content in the tabular model in the SSAS database. We're doing this test because we're planning to move our data model from SSAS to Power BI. I've confirmed that copy and paste works since everything is the same, but I do wonder if there is an easier way. Thank you again!

HI @Anonymous ,

 

If it is truly identical, you can open the report you have with SQL, then do a save as so you have a copy.  Then, go to files- options and settings - data settings.  Then, select the datasource that you have now and replace it with the new one.  That is how we do it when we convert from a DEV to PROD system so we don't have to copy/paste!

I would appreciate Kudos if my response was helpful. I would also appreciate it if you would Mark this As a Solution if it solved the problem. Thanks!




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Anonymous
Not applicable

Thank you again!

Right, that is also what we do to convert from dev to prod. However, since the report is connected to a 'SQL Server Analysis Services Database', when I go to Files>Options and settings>data source settings, it gives me this window to change to a different ssas database:

pbi.PNG

I can only change it to a different SSAS database. It doesn't allow me to connect using the Power BI dataset option. Can I change what I see here?

Thanks!

What did you end up doing in this case? 

HI @Anonymous ,

 

No, connecting to the dataset and then copy/paste is going to be your best bet.

I would appreciate Kudos if my response was helpful. I would also appreciate it if you would Mark this As a Solution if it solved the problem. Thanks!




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Anonymous
Not applicable

Thank you again!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

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.