fantasyAptos Monthly Retention Rate
    Updated 2025-03-26
    WITH first_month AS (
    SELECT
    sender,
    MIN(DATE_TRUNC('month', block_timestamp)) AS first_active_month
    FROM
    aptos.core.fact_transactions
    GROUP BY
    sender
    ),
    user_activity AS (
    SELECT
    sender,
    DATE_TRUNC('month', block_timestamp) AS activity_month
    FROM
    aptos.core.fact_transactions
    )
    SELECT
    a.activity_month,
    COUNT(DISTINCT a.sender) AS active_users,
    COUNT(
    DISTINCT CASE
    WHEN f.first_active_month < a.activity_month THEN a.sender
    END
    ) AS returning_users,
    (
    COUNT(
    DISTINCT CASE
    WHEN f.first_active_month < a.activity_month THEN a.sender
    END
    ) * 100.0 / COUNT(DISTINCT a.sender)
    ) AS retention_rate
    FROM
    user_activity a
    JOIN first_month f ON a.sender = f.sender
    GROUP BY
    a.activity_month
    Last run: 2 months ago
    ACTIVITY_MONTH
    ACTIVE_USERS
    RETURNING_USERS
    RETENTION_RATE
    1
    2022-10-01 00:00:00.000140863200
    2
    2022-11-01 00:00:00.00054651315774628.864089
    3
    2022-12-01 00:00:00.0004282748120618.961226
    4
    2023-01-01 00:00:00.00035809311854233.103691
    5
    2023-02-01 00:00:00.0002066599982548.304211
    6
    2023-03-01 00:00:00.00021594210111646.825536
    7
    2023-04-01 00:00:00.00032890210715032.578093
    8
    2023-05-01 00:00:00.00030064510061533.466381
    9
    2023-06-01 00:00:00.00030959211225836.259981
    10
    2023-07-01 00:00:00.000116535714267012.2426
    11
    2023-08-01 00:00:00.000173999224374414.00834
    12
    2023-09-01 00:00:00.00091501124377826.642084
    13
    2023-10-01 00:00:00.000152719352245834.210345
    14
    2023-11-01 00:00:00.00074759126757935.792164
    15
    2023-12-01 00:00:00.00099161534090634.378867
    16
    2024-01-01 00:00:00.000162379337295722.96826
    17
    2024-02-01 00:00:00.000156595244577728.466837
    18
    2024-03-01 00:00:00.000250734784822733.829661
    19
    2024-04-01 00:00:00.000188277463874233.92558
    20
    2024-05-01 00:00:00.000160732241943926.095518
    30
    2KB
    409s