Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Dynamic TODAY column based on TIME values

Hey folks - looking to make a 24 hour gantt chart. I have start and end times that do not include date. All they are, are "1:00:00" or "20:00:00" all based on UTC.

 

Is there a way to create a calculated column that would dynamically switch to today's date so it says for instance 9/2/2021 1:00:00 or however they format it in Power BI? Would appreciate any help.


Thank you

3 Replies

  • Anonymous you can add a column in the DAX using following expression:

     

    Today Date and Time = TODAY() + YourTable[YourTimeColumn] 

     

    Follow us on LinkedIn

     

    Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

     

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Parry you are the man - thank you sir.

  • Anonymous glad to hear. and also if you accept the correct reply as a solution it will help others. You have selected your own reply as a solution. FYI