Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi,
I have a daily data source file that requires accessing, however each the name of the source file itself is different with a new datetime stamp appended at the end:
For example each the file has the following name followed by the YYYY-MM-DD-HH-MM-SS:
DELIVERY ADDRESS & TYPE PP32024-02-04-14-25-00
DELIVERY ADDRESS & TYPE PP32024-02-05-14-25-08
DELIVERY ADDRESS & TYPE PP32024-02-06-14-25-07
Is there a way of using a "contains" to reference the first part of the source file so that it is dynamic for all future files?
If so, how do I write this code?
Thanks!
Thanks Amit. However, this didn't seem to work for the text.contains function or I was doing it wrong.. As it is a cumulative file of records I found another solution which works and allows the new file to replace the previous day's one without explicit reference.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 29 | |
| 27 | |
| 26 | |
| 24 | |
| 16 |
| User | Count |
|---|---|
| 53 | |
| 47 | |
| 38 | |
| 29 | |
| 21 |