elsina2024-10-05: Daily new users vs old users
    Updated 2025-04-06
    WITH users AS (
    SELECT
    from_address,
    MIN(block_timestamp) AS min_date
    FROM
    ink.core.fact_transactions
    GROUP BY
    from_address
    ),

    new_users AS (
    SELECT
    date_trunc('day', min_date) AS date,
    COUNT(DISTINCT from_address) AS new_user_count
    FROM
    users
    GROUP BY
    date
    ),

    old_users AS (
    SELECT
    date_trunc('day', block_timestamp) AS date,
    COUNT(DISTINCT from_address) AS old_user_count
    FROM
    ink.core.fact_transactions
    WHERE
    from_address IN (
    SELECT from_address
    FROM users
    WHERE min_date < date_trunc('day', block_timestamp)
    )
    GROUP BY
    date
    )

    Last run: 2 months ago
    DAILY
    OLD_USERS
    NEW_USERS
    PERCENT_NEW_USERS
    PERCENT_OLD_USERS
    1
    2024-12-17 00:00:00.00021142798.5497237571.450276243
    2
    2024-12-18 00:00:00.000838337480.10446343819.895536562
    3
    2024-12-19 00:00:00.0001222529981.26054286218.739457138
    4
    2024-12-20 00:00:00.0001324143852.06372194147.936278059
    5
    2024-12-21 00:00:00.000957116754.94350282545.056497175
    6
    2024-12-22 00:00:00.000839130560.86753731339.132462687
    7
    2024-12-23 00:00:00.0001071198664.96565260135.034347399
    8
    2024-12-24 00:00:00.0001436346470.69387755129.306122449
    9
    2024-12-25 00:00:00.0001505308067.17557251932.824427481
    10
    2024-12-26 00:00:00.0002084376264.35169346635.648306534
    11
    2024-12-27 00:00:00.0001892225354.3546441545.64535585
    12
    2024-12-28 00:00:00.0002124276256.52885796243.471142038
    13
    2024-12-29 00:00:00.0002321352260.27725483539.722745165
    14
    2024-12-30 00:00:00.0002861281349.57701797750.422982023
    15
    2024-12-31 00:00:00.0003439385652.85812200147.141877999
    16
    2025-01-01 00:00:00.0002858209742.32088799257.679112008
    17
    2025-01-02 00:00:00.0002602187841.91964285758.080357143
    18
    2025-01-03 00:00:00.0002986204640.65977742459.340222576
    19
    2025-01-04 00:00:00.0003337244942.32630487457.673695126
    20
    2025-01-05 00:00:00.0003285230841.26586804958.734131951
    ...
    110
    7KB
    3s