Forum Discussion

FelippeAzevedo7's avatar
2 years ago
Solved

Support using 2 different dates to create the life time.

I would like to ask for help because I have a report that I am migrating from excel to power bi. In it I have 2 different dates, one for main and one for activation. For main I use 2 columns with s...
  • xifeng_L's avatar
    2 years ago

    Hi FelippeAzevedo7 ,

     

    Just change the TEXT in your formula to FORMAT, such as:

     

    =IF(T5="Activation",INT(Q5-P5)&" days"&FORMAT(Q5-P5,"h"" hrs ""m"" mins """),INT(L5-K5)&" days"&FORMAT(L5-K5,"h"" hrs ""m"" mins """))

     

    Note: Cell references such as T5 and Q5 need to be changed to the corresponding columns.

     

     

     

    Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

     

    Thank you~