Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi.
I have a column that lists file names (as an example '32.1Checkfile_20240302-Exceptions.xlsx').
I am trying but keep failing to extract the date from the file name (20240302) and put this into a new column in PBI and format this as a date.
Is anyone able to help with a solution?
Solved! Go to Solution.
Perfect. Thank you so much for your help. 😀
Create a custom column in Power Query with this expression, where Filename is the column name. The argument ChangeType is the previous step name.
AddDate = Table.AddColumn(
ChangeType,
"Date",
each Date.FromText(Text.Middle([Filename], Text.PositionOf([Filename], "_") + 1, 8))
)
Proud to be a Super User!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.