Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply

Convert a column of text to date\time\minute

Hi folks, might someone help me convert the below to a date\time\minute format?

MichaelHutchens_0-1631676192225.png

I've tried it in Power Query with the below, but I'm getting an error:

= Date.From(Text.From([Date Hour and Minute], "en-US"))

MichaelHutchens_1-1631676272157.png

 

 

 

1 ACCEPTED SOLUTION
Ajinkya369
Resolver III
Resolver III

Hey @MichaelHutchens ,

 

Here is the exact solution for your problem. Follow the article posted by me: Convert text type data/time column to date/time data type column (xplorebi.com)

 

Thanks,

Ajinkya K ( Analytics Specialist)

Xplore BI 

View solution in original post

6 REPLIES 6
Ajinkya369
Resolver III
Resolver III

Hey @MichaelHutchens ,

 

Here is the exact solution for your problem. Follow the article posted by me: Convert text type data/time column to date/time data type column (xplorebi.com)

 

Thanks,

Ajinkya K ( Analytics Specialist)

Xplore BI 

Oh lawd it worked. I was just entering data incorrectly. Thanks so much @Ajinkya369 🙂

amitchandak
Super User
Super User

@MichaelHutchens , Try DateTime.FromText([Date Hour and Minute])

Or for only Date

 

Date.FromText(Text.Start([Date Hour and Minute],8))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak , when I try that I get the following error:

MichaelHutchens_1-1631678579474.png

 



MichaelHutchens_0-1631678552885.png

 

@MichaelHutchens 

pls try this

= Table.AddColumn(Source, "Custom", each #datetime(
    Number.FromText(Text.Start([Date Hour an Minute],4)),
    Number.FromText(Text.Range([Date Hour an Minute],4,2)),
    Number.FromText(Text.Range([Date Hour an Minute],6,2)),
    Number.FromText(Text.Range([Date Hour an Minute],8,2)),
    Number.FromText(Text.Range([Date Hour an Minute],10,2)),
    00))

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi @ryan_mayu , I'm getting this error:

MichaelHutchens_0-1631727163175.png


I've verified that the field name is correct. Am I doing something wrong?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.