Forum Discussion
Anonymous
6 years agoNot applicable
Get Data from Folder with Today's Date
Hi all, I need PowerQuery to go every time and search for a file that is stored in a folder with today's date. Explanation: Our raw data (the one we feed to PowerQuery) are stored to our...
- 6 years ago
Hi luke_avalle,
You could try below M code to see whether it work or not
let Source = Folder.Files("C:\Users\(username)\Documents\New folder"), #"Filtered Rows" = Table.SelectRows(Source, each ([Folder Path] = "C:\Users\zoezhi\Documents\New folder\"&Date.ToText(DateTime.Date(DateTime.LocalNow()),"yyyyMMdd")&"\")) in #"Filtered Rows"Best Regards,
Zoe ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
cizzxr
2 years agoNew Member
Hi all,
Just to add an extra bit of complexity onto this - how would I allow other users to refresh this power query?.
Let's say I have a sharepoint with the excel file in. Is it possible for others who have access to this sharepoint to go in and refresh this query so it pulls the most recent data, without them having to setup a new data source connection each time?