Eman-RazUsers Over Time
    Updated 6 days ago
    with table1 as (with tab1 as (select signers[0] as user, min(block_timestamp::date) as first_tx_date
    from eclipse.core.fact_transactions
    where succeeded='TRUE'
    group by 1)

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

    table2 as (select date_trunc('{{Time_Frame}}',block_timestamp) as "Date", count(distinct signers[0]) as "Total Users"
    from eclipse.core.fact_transactions
    where succeeded='TRUE'
    group by 1)

    select table1."Date", "New Users", "Total Users", "Total Users"-"New Users" as "Active Users"
    from table1 left join table2 on table1."Date"=table2."Date"
    order by 1
    Last run: 6 days ago
    Date
    New Users
    Total Users
    Active Users
    1
    2024-08-25 00:00:00.00022220
    2
    2024-08-26 00:00:00.00028324
    3
    2024-08-27 00:00:00.00076837
    4
    2024-08-28 00:00:00.00053563
    5
    2024-08-29 00:00:00.00026337
    6
    2024-08-30 00:00:00.00027303
    7
    2024-08-31 00:00:00.00029356
    8
    2024-09-01 00:00:00.00022297
    9
    2024-09-02 00:00:00.000112211
    10
    2024-09-03 00:00:00.00012113211
    11
    2024-09-04 00:00:00.000594
    12
    2024-09-05 00:00:00.0006159
    13
    2024-09-06 00:00:00.00061711
    14
    2024-09-07 00:00:00.0008146
    15
    2024-09-08 00:00:00.00016204
    16
    2024-09-09 00:00:00.00019289
    17
    2024-09-10 00:00:00.000174124
    18
    2024-09-11 00:00:00.00021309
    19
    2024-09-12 00:00:00.000183214
    20
    2024-09-13 00:00:00.000223816
    ...
    219
    9KB
    716s