Expand my Community achievements bar.

SOLVED

Calculated metric to work out number of days between events happening

Avatar

Level 1

Is there a way of creating a calculated metric to give me the number of days between to events/evars.

For example i want to be able to see the number of days between when the customer gets a quote and their trip departure date.

So if they get a quote on 15/12/17 and their departure date is 20/12/17 the metric would populate with 5 days.

a) is this possible?

b) does it requite 'quote date' being in the datalayer?

1 Accepted Solution

Avatar

Correct answer by
Level 5

One way to do this would be to put the two dates (quote date and departure date) in the data layer. Then in DTM you could have a page load rule that fires on your quote confirmation page that calculates the days between those two dates and puts it into an evar.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 5

One way to do this would be to put the two dates (quote date and departure date) in the data layer. Then in DTM you could have a page load rule that fires on your quote confirmation page that calculates the days between those two dates and puts it into an evar.

Avatar

Employee Advisor

This is exactly what we're doing for this very forum's implementation, actually. We're taking the timestamp of every question, then the timestamp of replies, and bucketing them by day. This allows us to see the amount of time between when a question was asked and when it receives a reply. We then check out the report in Workspace to see each bucket, by day, as dimensions.