illusionek
Board Regular
- Joined
- Jun 21, 2014
- Messages
- 104
Hello
I import & consolidate multiple files from the same folder using Power Query. The file name is "XXX 210618.xlsx" and I use below code to extract date from the name of the file when importing data.
My issue is that once imported 210618 is seen as text value if I change the data type to Date, I get below error. I have also tried various functions like Date.FromText but still come across the same error message.
Any suggestions?
Many thanks.
I import & consolidate multiple files from the same folder using Power Query. The file name is "XXX 210618.xlsx" and I use below code to extract date from the name of the file when importing data.
Code:
Text.Replace(Text.End([Source.Name],11),".xlsx","")
My issue is that once imported 210618 is seen as text value if I change the data type to Date, I get below error. I have also tried various functions like Date.FromText but still come across the same error message.
Any suggestions?
Many thanks.
Code:
DataFormat.Error: We couldn't parse the input provided as a Date value.
Details:
210618