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! Learn more

Reply
jamiers
Helper I
Helper I

Issue Pulling Current FIle Directory Contents in Visual

Hello All,

 

I'm using the following PowerQuery:

 

let
    Source = SharePoint.Files("https://americanredcross-my.sharepoint.com/personal/my_email_address", [ApiVersion = 15]),
    #"Filtered Rows" = Table.SelectRows(Source, each Text.StartsWith([Folder Path], "https://americanredcross-my.sharepoint.com/personal/my_email_address/Documents/Regional DWE Power BI Tools/Power BI Data Pulls/")),
    #"Reordered Columns" = Table.ReorderColumns(#"Filtered Rows",{"Name", "Date modified", "Content", "Extension", "Date accessed", "Date created", "Attributes", "Folder Path"}),
    #"Removed Other Columns" = Table.SelectColumns(#"Reordered Columns",{"Name", "Date modified"}),
    #"Sorted Rows" = Table.Sort(#"Removed Other Columns",{{"Name", Order.Ascending}})
in
    #"Sorted Rows"

 

 

This is what comes out as results:

 

 

You can see that the Last Modified Dates are updating, but I have moved several files out of this directory and they are still showing on update.  Here is a list of what is actually in that directory.  Things noted in BLUE do not show below in the actual directory/folder in OneDrive.

 

Any ideas on how to fix this so it properly reflects what is in the directory/folder in OneDrive?

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Text.StartsWith([Folder Path], "https://americanredcross-my.sharepoint.com/personal/my_email_address/Documents/Regional DWE Power BI Tools/Power BI Data Pulls/")

That filter includes all subfolders.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Text.StartsWith([Folder Path], "https://americanredcross-my.sharepoint.com/personal/my_email_address/Documents/Regional DWE Power BI Tools/Power BI Data Pulls/")

That filter includes all subfolders.

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 Kudoed Authors