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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

How can I set Power BI to pick the latest created file from a directory?

Hello

 

I want to specify a source (e.g. sharepoint website or folder or anything else) and I want Power BI to pick the latest created file from that directory.

 

How can I do that?

 

Thanks!

1 ACCEPTED SOLUTION
edhans
Super User
Super User

When you are looking at the files befoe you select one, filter on the Date Created or Date Modified field, whichever is most relevent to you, and filter by Date, Is Latest. This is what I see when working through a SharePoint folder.

edhans_0-1601653052334.png

When you put a new file in there, that file will then become the latest and selected next time Power BI refreshes data.

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

6 REPLIES 6
edhans
Super User
Super User

When you are looking at the files befoe you select one, filter on the Date Created or Date Modified field, whichever is most relevent to you, and filter by Date, Is Latest. This is what I see when working through a SharePoint folder.

edhans_0-1601653052334.png

When you put a new file in there, that file will then become the latest and selected next time Power BI refreshes data.

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Anonymous
Not applicable

@edhans thanks, can you tell me please where do I see that info in your screenshot? 

It is after you connect to the files in SharePoint (my example) but before you press the combine button. Is that what you are referring to @Anonymous 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Anonymous
Not applicable

@edhans thanks but what is the 'combine' button? When I import a sharepoint url, it shows the files and let's me choose which one to load or transform. What should I do next?

The combine button will open and process multiple files at once. The files must have the same structure, so 12 CSV files that are monthly sales data, one month per file, or 3 Excel files that have one year of data each, for 3 years total. If the file formats/structures are different, you need to connect one file at a time and do transformations specific to each file. Is that the question you are asking @Anonymous ?

 

edhans_0-1603641712590.png

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Anonymous
Not applicable

@edhans Yes thanks! I didn't know that at all.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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