Forum Discussion
ggzmorsh
6 years agoHelper II
IF statement for time
I need an IF statement where if a specific column has a Date and Hour it would get me the Final Date by checking a separate hour table or a condition that if the Hour is between 00:00:00 and 08:00:00...
ggzmorsh
6 years agoHelper II
I forgot to mention this:
Final Time = IF([Hour] < TIME(8,0,0),Date1 - 1,Date1)
When i used this formula earlier it would always return as true.
Anonymous
6 years agoNot applicable
I used this:
FinalTime = IF('Table'[HOUR] < TIME(8;0;0);'Table'[DATE1]-1;'Table'[DATE1])
It works:
Please note that Month and Day are switched in date fields, because i use a different Locale. Thus this is calculated 1 day back from the 1st of may.