BlockTrackernew vs returning users
    Updated 2025-04-30
    with DAU_u as (
    SELECT
    date_trunc('{{granularity}}', block_timestamp) as date,
    count(DISTINCT from_address) as DAU
    FROM mezo.testnet.fact_transactions
    GROUP BY date
    )
    ,new as (
    SELECT
    date_trunc('{{granularity}}', first_tx) as date,
    count(DISTINCT user) as new_user
    FROM (
    SELECT
    from_address as user,
    min(block_timestamp) as first_tx
    FROM mezo.testnet.fact_transactions
    GROUP BY 1)
    GROUP BY 1)

    SELECT
    a.date,
    Dau,
    coalesce(new_user,0) as new_account,
    sum(new_account) over (ORDER by date) as cum_account,
    Dau - new_account as returning_account,
    100 * new_account / Dau as new_account_percent,
    100 * returning_account / Dau as returning_account_percent,
    avg(Dau)over(ORDER BY date) as "daily avg DAU",
    AVG(Dau) over (ORDER BY date ROWS BETWEEN 7 PRECEDING AND CURRENT ROW) as avarage_7_Dau,
    avg(new_account)over(ORDER BY date) as "daily avg new account",
    AVG(new_account) over (ORDER BY date ROWS BETWEEN 7 PRECEDING AND CURRENT ROW) as avarage_7_new_account
    FROM DAU_u a
    LEFT JOIN new b using(date)
    ORDER BY 1 DESC

    Last run: 18 days ago
    DATE
    DAU
    NEW_ACCOUNT
    CUM_ACCOUNT
    RETURNING_ACCOUNT
    NEW_ACCOUNT_PERCENT
    RETURNING_ACCOUNT_PERCENT
    daily avg DAU
    AVARAGE_7_DAU
    daily avg new account
    AVARAGE_7_NEW_ACCOUNT
    1
    2025-04-30 00:00:00.000162211633075945971.70160328.2983971249.2941182761.375904.6764712138.75
    2
    2025-04-29 00:00:00.000617557992959637693.9109316.08906912382752.875896.8484852097.5
    3
    2025-04-28 00:00:00.00015798562379772354.21152645.7884741083.718752167.625743.656251504.75
    4
    2025-04-27 00:00:00.000622556802294154591.244988.755021067.7419352104.625740.0322581486.5
    5
    2025-04-26 00:00:00.000152910961726143371.68083728.319163895.8333331544.875575.366667894
    6
    2025-04-25 00:00:00.000232513471616597857.93548442.0645168741495557.413793845.75
    7
    2025-04-24 00:00:00.00013335181481881538.85971561.140285822.1785711364.25529.214286803.625
    8
    2025-04-23 00:00:00.00013036511430065249.96162750.038373803.2592591321.125529.62963814.75
    9
    2025-04-22 00:00:00.00015548331364972153.60360446.396396784.0384621293.375524.961538806.125
    10
    2025-04-21 00:00:00.000149310571281643670.79705329.202947753.241196.25512.64768.25
    11
    2025-04-20 00:00:00.00010757101175936566.04651233.953488722.4166671098.375489.958333690
    12
    2025-04-19 00:00:00.00017479401104980753.80652546.193475707.0869571089.75480.391304688.75
    13
    2025-04-18 00:00:00.00011307101010942062.83185837.168142659.818182985.5459.5638.875
    14
    2025-04-17 00:00:00.00012791010939926978.96794421.032056637.428571958.75447.571429621.25
    15
    2025-04-16 00:00:00.000988607838938161.43724738.562753605.35931.75419.45565.125
    16
    2025-04-15 00:00:00.0001081582778249953.83903846.160962585.210526942409.578947562.5
    17
    2025-04-14 00:00:00.000777530720024768.21106831.788932557.666667881.125400553
    18
    2025-04-13 00:00:00.000710431667027960.70422539.295775544.764706841.5392.352941538.625
    19
    2025-04-12 00:00:00.0001006700623930669.58250530.417495534.4375820.625389.9375547.375
    20
    2025-04-11 00:00:00.000913541553937259.25520340.744797503764.875369.266667523.25
    34
    3KB
    4s