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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply

Moved Excel-files (SharePoint) keeps showing up in Power BI report

My Power BI report has a folder (A) in a library in SharePoint as a source.
In that folder (A) we keep Excel files created in the last 180 days.
A Power Automate flow moves files from that folder (A) to another folder (B) to keep them older files in an archive.
No files are deleted. Just moved from (A) to (B).
The folders are in the same library.

My Power BI report is connected via API and import mode and it keeps on showing those moved files allthough we update and refresh that report.
Seems like it is retrieving Metadata even though I try to exclude hidden files.

MathildaBackman_0-1727156902923.png

What is the problem and how do I solve it?
The solution has to have SharePoint as source.

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @MathildaBackman 

 

I would inspect each applied step in the query editor to check what files are visible. Also, you are using Text.Contains so check whether the folder path of  old files does not contain the LibraryPath variable. Make sure that LibraryPath points to the new files folder and not to the same parent folder the old and new files folders are in.










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


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

2 REPLIES 2
danextian
Super User
Super User

Hi @MathildaBackman 

 

I would inspect each applied step in the query editor to check what files are visible. Also, you are using Text.Contains so check whether the folder path of  old files does not contain the LibraryPath variable. Make sure that LibraryPath points to the new files folder and not to the same parent folder the old and new files folders are in.










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


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Thanks, @danextian 

This was the problem:
"Also, you are using Text.Contains so check whether the folder path of  old files does not contain the LibraryPath variable. "

We have changed the name for (B) so now only files in (A) is loaded. 


Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.