Skip to main content
Community site session details

Community site session details

Session Id : oydQl4T7nPT4ErdY65HUHs
Power Apps - Power Query
Answered

Converting Decimal Hour to HH:MM Format

Like (0) ShareShare
ReportReport
Posted on 2 Dec 2021 16:16:57 by 4

Hi All,

 

I am trying to convert a column which has value stored as decimal hour to hh:mm format.

For eg:
2.78 - 02:46
25.56 - 25:33
Also attached a pbix file for reference. 
Quick help will be appreciated.

Thanks,

  • laurent_dec Profile Picture
    2 on 27 Feb 2023 at 16:54:29
    Re: Converting Decimal Hour to HH:MM Format

    Hi Guys, thanks for the suggested solutions, but I need a return in Time format instead of text.
    I have tried a whole bunch of possibilities online, but no solutions that works.

    Value in the column, for example: 0,1667 => that is 10 minutes

     

    I have added a new column with a formula:
    xx_starting_time_reformat = FORMAT(TIME(TRUNC(KPI_ODOO_account_analytic_line[xx_starting_time],0),(KPI_ODOO_account_analytic_line[xx_starting_time]-TRUNC(KPI_ODOO_account_analytic_line[xx_starting_time],0))*60,0),"long time")

    The formula works great to convert time from decimals to time format, but it won't work when I use it for duration, especially when it is less then 1 hour.

    Error: An argument of function 'TIME' has the wrong data type or the result is too large or too small.


  • vimina_vinod Profile Picture
    4 on 02 Dec 2021 at 22:02:54
    Re: Converting Decimal Hour to HH:MM Format

    @Syndicate_Admin I couldn't find any attachment. It would be great if there is a DAX formula to resolve this. Is there any possibility to get a calculated column which displays the decimal hours in hh:mm format.

    Thanks again

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Featured topics

Loading complete