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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Harineeeeeeee
Helper I
Helper I

How to dynamically read file from sharepoint

Hi All,


I have a usecase which should take files from sharepoiny files which had daily files like the name of the file for 12th june will be 'cyz_jun12' and for 13th june will be 'cyz_jun13'

in the power query editor first step will be source and next step will be taking the max files from folder which will take lets say12 th june upon navigation but tom it will fail saying keys rows didnt match I want to dynamically read the file which has *cyz* in the name and navigate 

how to do this in powerquery editor?

can someone please suggest on this!

 

Thanks!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Harineeeeeeee , Use the SharePoint folder option and get the latest file

https://medium.com/@wkrzywiec/getting-data-from-the-latest-file-in-a-folder-using-power-query-51dfa4...

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

1 REPLY 1
amitchandak
Super User
Super User

@Harineeeeeeee , Use the SharePoint folder option and get the latest file

https://medium.com/@wkrzywiec/getting-data-from-the-latest-file-in-a-folder-using-power-query-51dfa4...

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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