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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Sujit_Thakur
Solution Sage
Solution Sage

Data source change

Dear All , 

I have made some  reports , which were made from Excel files imported from SharePoint .

But now challenge is that data is  being shifted to data base and now to be querried using SQL server  

 

So now how should I change the source from SharePoint to SQL server  ? Or should I again make these reports  by doing get data from SQL

 

Need help

 

 

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Sujit_Thakur , Create a new connection using SQL server. Open Edit query and right on table and open advance editor and get the script and use this script in place source in old pbix. 

Keep backup of file

refer: https://community.powerbi.com/t5/Desktop/Change-Sql-Connection/td-p/11502

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
Sujit_Thakur
Solution Sage
Solution Sage

Dear all ,
Thanks for answering so promptly .
I will surely try what @amitchandak  sir have advised from a shared post.

it could take a week to mark answer to this question , please bare with me !
thank you friends .
Others can also suggest and share if they have some idea

amitchandak
Super User
Super User

@Sujit_Thakur , Create a new connection using SQL server. Open Edit query and right on table and open advance editor and get the script and use this script in place source in old pbix. 

Keep backup of file

refer: https://community.powerbi.com/t5/Desktop/Change-Sql-Connection/td-p/11502

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
PhilipTreacy
Super User
Super User

Hi @Sujit_Thakur 

If it's the same data then create a new query and import the data from SQL Server.  Create steps to get the data into the same structure/format as it was when you were using it as a source from Excel/Sharepoint.

Then copy/paste the steps from the old query into your new query from the point at which the data is the same in both queries.

You may need to manually change a step name from your old query to match the last step in the new query.

This is easeir to explain with actual code!

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.