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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Select individual CSV data source files based on the date

Let me give you a bit of background, as it is now driving me around the bend.

I am trying to report on Paper Cut printer logs, and it outputs three logs. A daily log, a monthly log and a from the begining of time super log.  I have tried using the super log, but it is simply too big and errors. There are millions of lines of data for each log and we have two servers. So it just got very silly very quickly. The thing is, I cannot fathom how I can automate the required data from several monthly logs.  The solution does not have to be Power Query, and if I have to create a SQL table, then so be it, but it would be nice to keep it as simple as possible.


Does anyone have any ideas?

Thanks

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi @Anonymous , 

I don't know how you store the data, each day per csv file or all data in a csv file? If it is previous one and you want to see current day of log, you could try to use date as csv file name , and use parameter in M code to change file name dynamically. If it is later one and csv file have date column, you could use date parameter to filter date range and load data in model. You could refer to power-bi-introduction-working-with-parameters-in-power-bi-desktop-part-4  for details.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
dax
Community Support
Community Support

Hi @Anonymous , 

I don't know how you store the data, each day per csv file or all data in a csv file? If it is previous one and you want to see current day of log, you could try to use date as csv file name , and use parameter in M code to change file name dynamically. If it is later one and csv file have date column, you could use date parameter to filter date range and load data in model. You could refer to power-bi-introduction-working-with-parameters-in-power-bi-desktop-part-4  for details.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.