Level 3 - Question 48
Question
Build an actor property that counts the number of active days a user has had in the 1 month before the last 1 month.
Take Note:
In questions 47, 48, 49, and 50 we’re going to look at New, Churned, Returned, and Retained users. This can be done by setting different time frames (1 month, 1 week, 1 day, whatever you like) that counts the number of active days they have had in that time period, meaning they at least generated one event.
In this query, we’re doing the same thing we did in question 47 which is just counting the number of active days a user has had in a 1 month period, but with time options we’re using an offset that is looking at the previous month. When trying to understand time options offsets, the trailing window is the length of time in which the property will be calculated over, if there is no offset it will default to the most recent 1 month. When you apply an offset you can determine if it will look at that trailing 1 month against 1 month before the current month.