Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I use data that come from SQL tables where date is recorded as a 16 character date/time text string.
This is an example of one - 20210630192455
I want a simpler way of converting this to date time than I am currently doing. It initially appears in my table as Text. If I just change the data type to Date/Time it errors with the error being it cant parse the date/time. Right now I do the following;
I then have to rename all my columns.
Solved! Go to Solution.
Hi,
This calculated column formula in DAX should work
Date = date(left(Data[String],4),mid(Data[String],5,2),mid(Data[String],7,2))
Hope this helps.
Hi,
This calculated column formula in DAX should work
Date = date(left(Data[String],4),mid(Data[String],5,2),mid(Data[String],7,2))
Hope this helps.
Thank you, I will give it a try. I was hoping to have something in Power Query but this is a start.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
78 | |
65 | |
53 |
User | Count |
---|---|
144 | |
103 | |
98 | |
85 | |
64 |