I'd like to calculate a "stickiness" metric for each day as DAU/MAU where DAU is the "daily active user" (i.e. uniques visitors) of a specific day and MAU is the "monthly active user" (i.e. unique visitors for the 30 last days) for the same day (so period including this day and 29 days before).
It's easy to get the DAU per day thanks to a simple table with "day" dimension as rows and "unique visitors" metric as column.
But I don't know how to get the number of unique visitors on the last 30 days for each day of a period.
I mean, it's possible one shot for a specific day, using a date range dimension, but it's not possible for each day of a period.
I can't figure out how to create a calculated metric that will give for each day of a period (day as dimension in rows) the number of unique visitors during last 30 days...
Does anyone already succeed to calculate such metric on a rolling date period?
what I would like is a table with date (days) as rows, and metrics in column « DAU », « MAU » and « DAU/MAU ratio ».
For example, for 2019-09-26, DAU would be the number of unique visitors during the day of 2019-09-26, and MAU would be the number of unique visitors during the time period of 30 days from 28/08/2019 to 26/09/2019 (included).
And for 019-09-27, DAU would be the number of unique visitors during the day of 2019-09-27, and MAU would be the number of unique visitors during the time period of 30 days from 29/08/2019 to 27/09/2019 (included).
Build a table with two Unique Visitors metrics. Add "yesterday" time period under the first IV metric, add "last 30 days" time period under the second UV metric. This will work as "filters". The first column will return DAU, the second — MAU.
You may want to create custom time periods as per your needs and use such a technic for any type of AU.
Advanced calculated metrics will help you add the Ratio metrics. The time periods can be used as filters in the metric builder, just add them on top of the metric.