Forum Discussion
Anonymous
5 years agoNot applicable
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]/24Regards
Phil
1 Reply
- PhilipTreacy
Super User
Anonymous
This works
Column = 'Table'[DateTime] + 'Table'[Hours]/24Regards
Phil