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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Faber13
Helper II
Helper II

HOURS, MINUTES AND SECONDS

Hi everyone,

 

i need support with the case below.

 

was to add a minute when it was 60 seconds and leave the seconds at 0 

 

"Tempo Chegada DMC" is a decimal column and "total horas chegada decimal" it's a sum of it.

 

The correct Would Be 12:17:00 and 10:54:00

 

Faber13_0-1639133155953.png

 

 

Faber13_1-1639133172843.png

 

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @Faber13 ,

 

If [Horas Chegada HH:MM:SS] is a calculated column, you can try to create a new calculated column.

Column 2 = IF(VALUE(RIGHT([Column],2))=60,[Column]+40)

vstephenmsft_0-1639645808274.png

 

If [Horas Chegada HH:MM:SS] is a measure, try to create a new measure.

Measure = IF(VALUE(RIGHT([Horas Chegada HH:MM:SS],2))=60,[Horas Chegada HH:MM:SS]+40)

vstephenmsft_1-1639645943084.png

 

The solution is that their essence is still a decimal number, judging the two digits at the end, and adding and subtracting them.

 

You can download the pbix file for more details.

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-stephen-msft
Community Support
Community Support

Hi @Faber13 ,

 

If [Horas Chegada HH:MM:SS] is a calculated column, you can try to create a new calculated column.

Column 2 = IF(VALUE(RIGHT([Column],2))=60,[Column]+40)

vstephenmsft_0-1639645808274.png

 

If [Horas Chegada HH:MM:SS] is a measure, try to create a new measure.

Measure = IF(VALUE(RIGHT([Horas Chegada HH:MM:SS],2))=60,[Horas Chegada HH:MM:SS]+40)

vstephenmsft_1-1639645943084.png

 

The solution is that their essence is still a decimal number, judging the two digits at the end, and adding and subtracting them.

 

You can download the pbix file for more details.

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Faber13 , You should put your HH , MM and SS to time function it should correct

 

Time([HH], [MM],[SS])

 

If needed as string format

 

format(,Time([HH], [MM],[SS]) , "HH:MM:SS" )

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi  Amitchandak Thanks for the answer,

 

it didn't work, it still has the same problem and I need it in number format to use in graphics

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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