cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Round up time to next hour

Hi,

 

I have a column with some date data, ex.:

21-05-2019 14:00:00

21-05-2019 14:03:43

21-05-2019 14:52:13

 

I want some clean timestamps like the one 14:00:00, so i want to round up the other ones, as soon as they have passed an hour, i want it to round up to the next hour, so my data will look like:

21-05-2019 14:00:00

21-05-2019 15:00:00

21-05-2019 15:00:00

 

Can anyone help?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Anonymous
Not applicable

Re: Round up time to next hour

Hi @MLGOON ,

 

add a column with

 

Column = IF(SECOND(Table1[Timestamp]) = 0, Table1[Timestamp] , TIME(HOUR(Table1[Timestamp])+1, 0,0))

 

Best regards Timo

View solution in original post

1 REPLY 1
Highlighted
Anonymous
Not applicable

Re: Round up time to next hour

Hi @MLGOON ,

 

add a column with

 

Column = IF(SECOND(Table1[Timestamp]) = 0, Table1[Timestamp] , TIME(HOUR(Table1[Timestamp])+1, 0,0))

 

Best regards Timo

View solution in original post

Helpful resources

Announcements
Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors