Report not found

There was a problem finding this report.
Scenarios - Overall retention rate
March 16, 2016 · Refreshed over 1 year ago
Description
Overall retention rate for both scenarios.

Collaborators

Run History
WITH events AS ( SELECT user_id, occurred_at, MIN(occurred_at) OVER (PARTITION BY user_id) AS first_event FROM modeanalytics.retention_scenarios WHERE event_type = 'engagement' AND scenario = 1 ), event_age AS ( SELECT DISTINCT user_id, FLOOR((EXTRACT('EPOCH' FROM occurred_at) - EXTRACT('EPOCH' FROM first_event))/(60*60*24)) AS periods_out, FLOOR((EXTRACT('EPOCH' FROM NOW()) - EXTRACT('EPOCH' FROM first_event))/(60*60*24)) AS user_age FROM events ) SELECT * FROM ( SELECT periods_out, users, users/MAX(users) OVER ()::FLOAT AS rate FROM ( SELECT periods_out, COUNT(user_id) AS users FROM event_age GROUP BY 1 ) a ) b WHERE periods_out != 0 AND periods_out <= 100 ORDER BY 1
WITH events AS ( SELECT user_id, occurred_at, MIN(occurred_at) OVER (PARTITION BY user_id) AS first_event FROM modeanalytics.retention_scenarios WHERE event_type = 'engagement' AND scenario = 1 ), event_age AS ( SELECT DISTINCT user_id, FLOOR((EXTRACT('EPOCH' FROM occurred_at) - EXTRACT('EPOCH' FROM first_event))/(60*60*24)) AS periods_out, FLOOR((EXTRACT('EPOCH' FROM NOW()) - EXTRACT('EPOCH' FROM first_event))/(60*60*24)) AS user_age FROM events ) SELECT * FROM ( SELECT periods_out, users, users/MAX(users) OVER ()::FLOAT AS rate FROM ( SELECT periods_out, COUNT(user_id) AS users FROM event_age GROUP BY 1 ) a ) b WHERE periods_out != 0 AND periods_out <= 100 ORDER BY 1
<div class="mode-header embed-hidden"> <h1>{{ title }}</h1> <p>{{ description }}</p> </div> <div class="mode-grid container"> <div class="row"> <div class="col-md-12"> <mode-chart id="chart_e63e42c075d0" dataset="dataset" options="chart_options"></mode-chart> </div> </div> </div>
{{ dataSourceName(params.queryId) }}

The dataset is too large to view in browser

Export

Looks like something went wrong with your query.

{{ DS.queryRuns[params.queryId].errorMessage }}
This query was cancelled