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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Trebor84
Helper II
Helper II

Remove old unused data source

Hi,

 

I have a table in my report that pulled data from files from a folder on my PC. 

 

I have now changed the data source in the power query editor to refer to a SharePoint.Folder instead of my local folder.

 

The problem I have now is that in my data sources it shows up twice and I need to find a way of deleting the reference to the local data source as I can’t do a scheduled refresh while this is present.

 

In data sources it only gives me the option to reset credentials etc, nothing to actually delete the data source.

 

Any suggestions please?

5 REPLIES 5
Anonymous
Not applicable

Encountered the same problem, I changed data source from local machine folder to SharePoint, changed in Advanced query, and found old data source still shown in Data Source Setting. After changing in sample file query, the old source is disappered.

 

Hope it helps.

mkiewra
Frequent Visitor

Another reason for which you can see old data sources are unused power query transformations. It can happen if the pbix file is copied and some old Power Query transformations are left in the pbix file. 

 

In my case the following solution worked:

1. Open any existing power query transformation.

2. Find unused queries on the left side of Power Query editor

3. Remove unused queries

Once all unusued queries are deleted, unused data sources disappeared.  

Anonymous
Not applicable

HI @Trebor84,

I think you need to modify your report to redirect the data source mapping to the SharePoint folder, then you can publish the new version report to power bi to replace the old data source settings.

Use OneDrive for Business links in Power BI Desktop - Power BI | Microsoft Docs

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Hello,
If it can help I had the same problem. In the data sources windows you see the old unused data source and the one that you want to use. I only changed the unused data source path for the new data source path (used one) and the old one disappeared. Now the refresh works fine!

Good luck

amitchandak
Super User
Super User

@Trebor84 , One of the options is to delete all tables using those connection

 

also refer this

https://community.powerbi.com/t5/Desktop/Remove-the-data-source/m-p/108960/highlight/true

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors