adriaparcerisasdau base 2 copy copy
    Updated 2024-02-20

    WITH
    daus as (
    SELECT
    distinct sender as users,
    trunc(block_timestamp,'week') as weeks,
    count(distinct trunc(block_timestamp,'day')) as active_days
    from sei.core.fact_transfers
    group by 1,2
    having active_days>=4
    ),
    active_users as (
    SELECT
    distinct sender as user,
    min(block_timestamp) as debut
    from sei.core.fact_transfers
    where sender in (select users from daus)
    group by 1
    )
    select
    trunc(debut,'week') as date,
    count(distinct user) as new_DAUs,
    sum(new_DAUs) over (order by date) as "Total new DAUs"
    from active_users
    group by 1
    order by 1 asc





    Last run: about 1 year ago
    DATE
    NEW_DAUS
    Total new DAUs
    1
    2023-05-22 00:00:00.0001010
    2
    2023-05-29 00:00:00.000212
    3
    2023-06-05 00:00:00.000517
    4
    2023-06-12 00:00:00.000219
    5
    2023-06-26 00:00:00.000120
    6
    2023-07-10 00:00:00.000323
    7
    2023-07-24 00:00:00.000225
    8
    2023-07-31 00:00:00.000227
    9
    2023-08-07 00:00:00.0002956
    10
    2023-08-14 00:00:00.00017961852
    11
    2023-08-21 00:00:00.0003052157
    12
    2023-08-28 00:00:00.000872244
    13
    2023-09-04 00:00:00.000992343
    14
    2023-09-11 00:00:00.000402383
    15
    2023-09-18 00:00:00.0001512534
    16
    2023-09-25 00:00:00.000222556
    17
    2023-10-02 00:00:00.000462602
    18
    2023-10-09 00:00:00.000142616
    19
    2023-10-16 00:00:00.000122628
    20
    2023-10-23 00:00:00.000242652
    36
    1KB
    5s