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
Learner_SG
Helper IV
Helper IV

Seperate out the date and time

Hi , my data field for date and time is in this manner : 

2022-01-04T02:26:38.2530000Z

.

How do I separte the time and date? 

 

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@Learner_SG,

 

Try these custom columns in Power Query:

 

DateTime.Date([DateTime])
DateTime.Time([DateTime])

 

DataInsights_1-1642877063389.png

 





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

Proud to be a Super User!




View solution in original post

5 REPLIES 5
DataInsights
Super User
Super User

@Learner_SG,

 

Try these custom columns in Power Query:

 

DateTime.Date([DateTime])
DateTime.Time([DateTime])

 

DataInsights_1-1642877063389.png

 





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

Proud to be a Super User!




Hello:

I'm looking to do the same but can't find the Datetime.date() function

Jprada_0-1704317761470.png

@Jprada,

 

These are Power Query functions, not DAX.





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

Proud to be a Super User!




@Syndicate_Admin

Could you tell me how I can do it in DAX code, I'm working with a table that doesn't allow me to do it in power Query.

Jprada_0-1704373499428.png

@Jprada,

 

Create these calculated columns:

 

Date = Table1[DateTime]
Time = Table1[DateTime]

 

Set the data type for each column using the Data type dropdown:

 

DataInsights_0-1704375253382.png

DataInsights_1-1704375317891.png

 

 





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

Proud to be a Super User!




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.