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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rgupta20
Regular Visitor

Power Query based on date parameter

 

Hi Folks,

 

I have file to import in the Power BI which gets updated everyday ,and file name changes with date string on it.I want to import the file of last date on it.

 

For example today (02/10/2018)I have a file to import is

report_20180209.csv

next date(02/11/2018) i want the imported file to be

report_20180210.csv

 

I am trying to find out the proper way create parameter based on date

 

Thanks for your help

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @rgupta20,

 

Could you please mark the proper answer as solution?

 

Best Regards!
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
RolandsP
Resolver IV
Resolver IV

One option might be to create a query based on data imported from folder: Get Data -> Folder. Then you make sure that you have in this folder the most recent file you need to import. Then it is not important what is the name of the file. Power Bi will import just the file you have in this folder.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.