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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
UsePowerBI
Post Prodigy
Post Prodigy

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

@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 @UsePowerBI 



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

@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 @UsePowerBI ?

 

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

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors