Forum Discussion
agd50
7 months agoHelper V
Change text date to a date type
How can I change this column to a date? DDMMYYYY (Australian date)
- 7 months ago
I used this YouTube video - which I found it to be a great informative resource.
https://www.youtube.com/watch?v=JJFiPtmqPAg
cengizhanarslan
7 months agoSuper User
Since your values are text in DDMMYYYY format, Power BI won’t auto-detect them as dates. You need to explicitly parse them.
Do this in Power Query, not DAX.
Select the column
Transform → Extract → Text Range
Day: start 0, length 2
Month: start 2, length 2
Year: start 4, length 4
Add a Custom Column:
= #date(
Number.FromText([Year]),
Number.FromText([Month]),
Number.FromText([Day])
)
Set the new column’s type to Date
Remove the original text column if needed