adriaparcerisasdogeswap 1.2
    Updated 2025-04-22
    with daily_users as (
    select
    trunc(block_timestamp, 'day') as date,
    signer_id
    from near.core.fact_actions_events_function_call
    where block_timestamp > '2024-12-01'
    and receiver_id = 'intents.near'
    and action_name = 'FunctionCall'
    and method_name = 'ft_on_transfer'
    and receipt_succeeded = 'TRUE'
    and block_timestamp < current_date
    ),
    first_seen as (
    select
    signer_id,
    min(date) as first_interaction_date
    from daily_users
    group by signer_id
    )
    select
    d.date,
    count(distinct case when f.first_interaction_date = d.date then f.signer_id end) as new_users,
    sum(count(distinct case when f.first_interaction_date = d.date then f.signer_id end))
    over (order by d.date) as cumulative_new_users,
    count(distinct d.signer_id) as daily_active_users
    from daily_users d
    left join first_seen f
    on d.signer_id = f.signer_id
    group by d.date
    order by d.date desc
    Last run: 15 days ago
    DATE
    NEW_USERS
    CUMULATIVE_NEW_USERS
    DAILY_ACTIVE_USERS
    1
    2025-04-21 00:00:00.0001982084291
    2
    2025-04-20 00:00:00.0003611886446
    3
    2025-04-19 00:00:00.0003401525420
    4
    2025-04-18 00:00:00.00014118587
    5
    2025-04-17 00:00:00.00021117199
    6
    2025-04-16 00:00:00.00010115084
    7
    2025-04-15 00:00:00.00010114084
    8
    2025-04-14 00:00:00.00014113079
    9
    2025-04-13 00:00:00.00014111677
    10
    2025-04-12 00:00:00.00011110268
    11
    2025-04-11 00:00:00.00019109186
    12
    2025-04-10 00:00:00.00020107279
    13
    2025-04-09 00:00:00.00013105275
    14
    2025-04-08 00:00:00.00018103962
    15
    2025-04-07 00:00:00.00019102181
    16
    2025-04-06 00:00:00.00010100256
    17
    2025-04-05 00:00:00.000699251
    18
    2025-04-04 00:00:00.000998657
    19
    2025-04-03 00:00:00.0001297754
    20
    2025-04-02 00:00:00.0001396557
    ...
    142
    5KB
    28s