Is there any way to reference the time of an event in a derived property formula?
I am trying to create a derived property that calculates the difference in time between a date in a user property (the users account creation date) and the date of the event being measured. I have gotten it to work using the TODAY() function, but I can’t seem to find any way to reference the event time itself. TODAY() only works if looking at the last N days, but I can’t use it to create historical trends.
Thanks
DIVIDE(
MINUS(
TODAY()
,
DATE_TO_LONG(
REGEXEXTRACT(
PROPERTY(
'first_insert_date',
'user'
),
"^\d{4}-\d{2}-\d{2}"
)
)
),
86400000
)