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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors