Afonso_DiazOvertime (users and txns)
    Updated 2025-05-02
    with

    main as (
    select
    tx_id,
    block_timestamp,
    f.value['value'] as user
    from
    aleo.core.fact_transitions
    join
    lateral flatten(input => inputs) f
    where
    f.value['value'] ilike 'aleo%'
    ),

    overtime as (
    select
    date_trunc('{{ period }}', block_timestamp) as date,
    count(distinct tx_id) as transactions,
    count(distinct user) as users
    from main
    group by 1
    ),

    min_users as (
    select
    date_trunc('{{ period }}', min_date) as date,
    count(distinct user) as new_user
    from (
    select
    user,
    min(block_timestamp) as min_date
    from main
    group by 1
    )
    group by 1
    Last run: 21 days ago
    DATE
    TRANSACTIONS
    USERS
    NEW_USERS
    OLD_USERS
    1
    2024-09-01 00:00:00.00014118511533991533990
    2
    2024-10-01 00:00:00.000217905435456433344821116
    3
    2024-11-01 00:00:00.000277387154249048145761033
    4
    2024-12-01 00:00:00.000361521293528186747367808
    5
    2025-01-01 00:00:00.000214999346767441411553559
    6
    2025-02-01 00:00:00.000635092661673529530872
    7
    2025-03-01 00:00:00.000288172123574817606759681
    8
    2025-04-01 00:00:00.000326936126231519207570240
    9
    2025-05-01 00:00:00.0008091235003321531788
    9
    493B
    13s