Forum Discussion
ashaikh
8 years agoHelper III
Time calculation
Hello, I am looking to do some time calculation on a DateTime and would want to know if there is an easier way to do it. What I am trying to do is basically calculate SLA DueTime which is same bu...
- 8 years ago
Hi ashaikh,
Try this formula as a calculated column please.
Column = VAR currentDay = DATEVALUE ( [Date] ) VAR nextWorkDay = CALCULATE ( MIN ( 'Calendar'[Date] ), FILTER ( 'Calendar', 'Calendar'[Date] > currentDay && 'Calendar'[isWorkDay] = 1 ) ) RETURN IF ( TIMEVALUE ( [Date] ) + TIME ( 8, 0, 0 ) <= TIME ( 17, 0, 0 ), [Date] + TIME ( 8, 0, 0 ), nextWorkDay + TIMEVALUE ( [Date] ) )Best Regards,
Dale
v-jiascu-msft
8 years agoMicrosoft Employee
Hi Abdulquadir,
Could you please post the steps how we can get 1:20PM?
Best Regards,
Dale
- ashaikh8 years agoHelper III
v-jiascu-msft thats the calculation I am looking for. I have already mentioned how that number comes.
