Forum Discussion
Anonymous
4 years agoNot applicable
Help with shift mapping by date and time
Hello, Could somebody help me with measure which should produce "Entry_Date" as the earliest date between 2 dates with time between 15:00 PM to next day 03:00 AM from "Created". Thanks, ...
- 4 years ago
Hi Anonymous
Try this code to add a new column to your table:
Column = Var _Time = TIMEVALUE([Created]) Var _S = time(15,00,00) Var _E = time(3,0,0) return format(if(_Time<_E,DATEVALUE([Created])-1,DATEVALUE([Created])),"MMMM DD")Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
VahidDM
Super User
4 years agoHi Anonymous
Try this code to add a new column to your table:
Column =
Var _Time = TIMEVALUE([Created])
Var _S = time(15,00,00)
Var _E = time(3,0,0)
return
format(if(_Time<_E,DATEVALUE([Created])-1,DATEVALUE([Created])),"MMMM DD")
Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/