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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Matthias93
Helper III
Helper III

Changing datasource from SharePoint list to SQL

Hi,

 

I currently have a dashboard that is getting data from a dozen SharePoint lists. There's a possibility our solution is being migrated to SQL. I was wondering if there's a way of changing the data source of my queries from SharePoint to SQL without losing the query steps and realtionships. I'm connecting through the standard SharePoint list connector of PowerBI.

 

Kind regards,

Matt

 

 

1 REPLY 1
Anonymous
Not applicable

Hi @Matthias93,

If you refer to the APPLIED STPS in Query Editor as shown in the first screenshot, open Advanced Editor of your SharePoint list query in Power BI Desktop, copy the codes and paste codes in Notepad.
2.PNG
1.PNG

Then change the source in the codes to SQL Server database, you may also need to change column names or other objects in the query steps. After you change the codes based on SQL Server database, add a new blank query in Query Editor and paste the codes in the Advanced Editor of the new query.
3.PNG

In addition, when you load data of different tables to Power BI Desktop, Power BI Desktop will attempt to find and create relationships for you. If Power BI Desktop cannot determine with a high-level of confidence there is a match between tables, it will not automatically create the relationship. You can still use the Manage Relationships dialog to create or edit relationships.


 
Thanks,
Lydia Zhang

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.