Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Add Integer (hours) to a Date Time with DAX

Hello all,

 

I need your help. In order to convert UTC time to Zone Time depende from the region, I creat a column "hours" with the number of hours to add or substract from the UTC Date Time. Whant I want now is to add this hours to my Date time column. 

For example :

My column date time= 07/12/2021 10:37:30

and hours column(type whole number)=5

So new column = 07/12/2021 15:37:30

I want to do that with DAX ? how I can do that ? Thank you for your help.

 

Best

  • Anonymous 

    This works

    Column = 'Table'[DateTime] + 'Table'[Hours]/24

    Regards

    Phil

1 Reply

  • Anonymous 

    This works

    Column = 'Table'[DateTime] + 'Table'[Hours]/24

    Regards

    Phil