Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have two columns in my database for date and time. The issue is they are entered as text.
Examples would be
082520 1258
051620 0700
Is there a way in power query to have these convert to a date and time field automatically? I was trying a custom column but can't figure out the code to use.
Thanks in advance.
Solved! Go to Solution.
Hi @kattlees ,
This is troublesome, maybe you can do this.
Please refer to my .pbix file.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @kattlees ,
This is troublesome, maybe you can do this.
Please refer to my .pbix file.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
HI @kattlees
In power query you have a function if it helps.
DateTime.FromText()
https://docs.microsoft.com/en-us/powerquery-m/datetime-fromtext
Alternatively you can use the DAX functions DATE() and TIME()
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 81 | |
| 65 | |
| 50 | |
| 45 |