Excel Power Query equivalent for an excel formula

asked 2023-01-19T20:08:17.0033333+00:00
Sylvester McLeod 81 Reputation points

Hi there,

I am super new to Power Query in Excel and hoping to get some help. I am not sure if what I am asking is possible or not but thought I'd reach out and ask.

I have a column in an excel power query with hours represented in a decimal format. In addition, these are negative hours.

For example.




Using an excel formula such as "=IF(F2<0, "-" & TEXT(ABS(F2),"hh:mm"), F2)" I am able to return a correct text format representation of what I need

For example,

-0.65 = -00:39

-7.5 = -07:30

-0.083333333 = -00:05

Is there an equivalent way of achieving this using Power Query in Excel?

If yes can someone assist me with steps and / or formula?

Thanks in advance.

A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
51 questions
No comments
{count} votes

Accepted answer
  1. answered 2023-01-20T05:28:13.8266667+00:00
    Emi Zhang-MSFT 10,516 Reputation points Microsoft Employee


    I suggest you post this issue to Power BI forum:


    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.

    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    No comments

0 additional answers

Sort by: Most helpful