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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
RMDNA
Solution Sage
Solution Sage

Pulling a source's file name into table as a field

Hi all,

 

I have a report built from .csv files in Blob storage. All the .csv files are titled "model_output_[timestamp]).

 

What I'd like to do is pull that timestamp into the table as a field so I can concat it into a column of "Model_[timestamp]" and join it to an ever-growing master list of model results.

 

Another thing I've tried is referencing the table at the "import CSV" step to get a list of the files, then pulling the timestamp out of the tilename. At that point, though, there's nothing to tie it back to the correct table (example below).

 

a.PNG

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@RMDNA,

 

You may use Text.BetweenDelimiters to add a custom column.

Text.BetweenDelimiters([Filename], "[", "]")
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-chuncz-msft,

 

I already have the timestamp column, but would need it to carry over to the table once it's expanded, however. That's what I'm looking for - a column in a table referencing its source file's name.

 

Maybe this will help. The "model iteration" column is what I'm trying to create. At the moment, I'm copy-pasting the correct timestamp. What I'd like to do is pull the timestamp from my previous picture into this table so I can create that column.

 

a.PNG

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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