Eman-RazRonin Users Over Time
    Updated 2025-03-19
    with table1 as (select date_trunc('{{Time_Frame}}',block_timestamp) as "Date", count(distinct from_address) as "Total Users"
    from ronin.core.fact_transactions
    where tx_succeeded='TRUE'
    group by 1),

    table2 as (with tab1 as (select from_address as user, min(block_timestamp::date) as first_date
    from ronin.core.fact_transactions
    where tx_succeeded='TRUE'
    group by 1)

    select date_trunc('{{Time_Frame}}',first_date) as "Date", count(distinct user) as "New Users"
    from tab1
    group by 1)

    select table1."Date", "Total Users", "New Users", "Total Users"-"New Users" as "Active Users"
    from table1 left join table2 on table1."Date"=table2."Date"
    order by 1
    Last run: about 1 month ago
    Date
    Total Users
    New Users
    Active Users
    1
    2024-10-01 00:00:00.000384040938404090
    2
    2024-11-01 00:00:00.000377981821517631628055
    3
    2024-12-01 00:00:00.00027418718091591932712
    4
    2025-01-01 00:00:00.00017692424601291309113
    5
    2025-02-01 00:00:00.00016630083814411281567
    6
    2025-03-01 00:00:00.0001097577230860866717
    6
    302B
    8s