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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Getting a date part and adding a time

I have a column that have a Datetime (12/12/2020 16:40:10), what i what is, get the date of this column (12/12/2020) and add another time, (12/12/2020 06:00:00)...
15/12/2020 19:43:00 will become 15/12/2020 06:00:00. 

 

And so on and so forth

 

Is there anyway to do it without using power query? 
Or power query will be the best option?

1 ACCEPTED SOLUTION
negi007
Community Champion
Community Champion

@Anonymous You can create a new column like below in your table. This will extract the date from the date column and add the time you wish to concatenate

 

NewDate = DATE(YEAR(date_123[Date]),MONTH(date_123[Date]),DAY(date_123[Date])) & " " & TIME(06,00,00)
 
After the creating the above column, please change the data type to Date/Time. It will do the job for you.



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



Proud to be a Super User!


Follow me on linkedin

View solution in original post

1 REPLY 1
negi007
Community Champion
Community Champion

@Anonymous You can create a new column like below in your table. This will extract the date from the date column and add the time you wish to concatenate

 

NewDate = DATE(YEAR(date_123[Date]),MONTH(date_123[Date]),DAY(date_123[Date])) & " " & TIME(06,00,00)
 
After the creating the above column, please change the data type to Date/Time. It will do the job for you.



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



Proud to be a Super User!


Follow me on linkedin

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.