Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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!
User | Count |
---|---|
65 | |
60 | |
47 | |
33 | |
32 |
User | Count |
---|---|
85 | |
75 | |
56 | |
50 | |
45 |