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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors