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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
bgarland
Helper I
Helper I

decompose datetime

This should be easy but being new to PowerBI I haven't found out how to do it yet. I have a column in a SQL Server table that I'm importing that contains a DateTime. I need to decompose this into two seperate columns, one that holds the date and another that holds the time.

 

2017-08-31_135224.jpg

1 ACCEPTED SOLUTION
MarcelBeug
Community Champion
Community Champion

In the query editor, you find Date and Time options at the right hand side of both the "Add Column" tab and the "Transform" tab. These options include extracting date only and time only. They are available only if you first select your date/time column.

 

So you might add a column with time only and then transform the original column to date only.

 

Date only.png

Specializing in Power Query Formula Language (M)

View solution in original post

2 REPLIES 2
MarcelBeug
Community Champion
Community Champion

In the query editor, you find Date and Time options at the right hand side of both the "Add Column" tab and the "Transform" tab. These options include extracting date only and time only. They are available only if you first select your date/time column.

 

So you might add a column with time only and then transform the original column to date only.

 

Date only.png

Specializing in Power Query Formula Language (M)

Thanks!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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