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

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.

Reply
Anonymous
Not applicable

seperate date and hour

I have a dte like the format in the picture below

jaweher89_0-1649417619061.png

 

How can I create two separates columns within date and hour please?

 

1 ACCEPTED SOLUTION
Arul
Super User
Super User

Hi @Anonymous ,

 

Try to use delimitter option in power query editor and split the column into two.

 

Thanks,

Arul





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

Proud to be a Super User!


LinkedIn


View solution in original post

3 REPLIES 3
Tahreem24
Super User
Super User

@Anonymous You can split it by "T" in Power Query OR create 2 different columns like this using DAX:

DATE Column = LEFT(Task Created at,10)

and mark this column as Date.

 

Duration Column = RIGHT(Task created at,9)
and mark this column as Time.

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
amitchandak
Super User
Super User

@Anonymous ,

new column DAX, if that is text column

 

Date = left([Task Created at],10)

Hour = Mid([Task Created at],12,2)

 

if that is datetime column 

 

Date = datevalue([Task Created at])

Hour = hour([Task Created at])

Arul
Super User
Super User

Hi @Anonymous ,

 

Try to use delimitter option in power query editor and split the column into two.

 

Thanks,

Arul





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

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.