0xHaM-dNew and Returning Users
    Updated 2025-03-05
    with eventTb as (
    SELECT
    block_timestamp,
    case when t.tx_signer = l.address then t.tx_receiver else tx_receiver end as recipient,
    t.tx_hash
    FROM near.core.fact_transactions t
    INNER JOIN near.core.dim_address_labels l
    ON (t.tx_signer = l.address or t.tx_receiver = l.address)
    WHERE l.project_name = 'sweat'
    AND l.label_type = 'games'
    AND t.tx_succeeded = TRUE
    AND t.block_timestamp >= '2024-11-05'
    AND t.block_timestamp < CURRENT_DATE
    )
    ,
    active_users_u as (
    SELECT
    date_trunc('day', block_timestamp) as date,
    count(DISTINCT recipient) as active_users
    FROM eventTb
    GROUP BY date
    )
    , new as (
    SELECT
    date_trunc('day', first_tx) as date,
    count(DISTINCT user) as new_user
    FROM (
    SELECT
    recipient as user,
    min(block_timestamp) as first_tx
    FROM eventTb
    GROUP BY 1
    )
    GROUP BY 1
    )

    Last run: about 1 month ago
    DATE
    ACTIVE_USERS
    N_NEW_USER
    CUM_USERS
    RECURRING_USER
    NEW_USER_PERCENT
    RECURRING_USER_PERCENT
    Avg Active Users
    AVARAGE_7_ACTIVE_USERS
    Avg New User
    AVARAGE_7_NEW_USER
    1
    2025-03-04 00:00:00.00023403166672517235673671.21736528.78263528643.8916672150420976.95833315227.428
    2
    2025-03-03 00:00:00.00021989156792500568631071.30383428.69616628687.93277321381.28521013.17647115121.285
    3
    2025-03-02 00:00:00.00020281148742484889540773.33957926.66042128744.7033921378.85721058.38135615095.142
    4
    2025-03-01 00:00:00.00019354134892470015586569.69618730.30381328817.04273521450.14221111.23931615140.428
    5
    2025-02-28 00:00:00.00021574150362456526653869.69500330.30499728898.620692173221176.94827615399.857
    6
    2025-02-27 00:00:00.00021821153082441490651370.15260529.84739528962.31304322003.85721230.34782615674.571
    7
    2025-02-26 00:00:00.00022106155392426182656770.29313329.70686729024.9561422147.42821282.29824615849.571
    8
    2025-02-25 00:00:00.00022544159242410643662070.63520229.36479829086.18584122211.42821333.12389415932.285
    9
    2025-02-24 00:00:00.00021972154962394719647670.52612429.47387629144.5982142231321381.41964316017
    10
    2025-02-23 00:00:00.00020780151912379223558973.10394626.89605429209.21621622416.42821434.44144116073.285
    11
    2025-02-22 00:00:00.00021327153052364032602271.76349228.23650829285.8454552255021491.216166.428
    12
    2025-02-21 00:00:00.00023477169592348727651872.23665727.76334329358.86238522532.57121547.95412816101.428
    13
    2025-02-20 00:00:00.00022826165332331768629372.43056227.56943829413.32407422380.71421590.44444415800.571
    14
    2025-02-19 00:00:00.00022554161182315235643671.46404228.53595829474.8878522706.28521637.7102815924.428
    15
    2025-02-18 00:00:00.00023255165172299117673871.02558628.97441429540.17924523136.71421689.78301916211.428
    16
    2025-02-17 00:00:00.00022696158902282600680670.01233729.98766329600.0380952352121739.04761916445.571
    17
    2025-02-16 00:00:00.00021715158432266710587272.95878427.04121629666.42307723944.71421795.28846216715.857
    18
    2025-02-15 00:00:00.00021205148502250867635570.03065329.96934729743.62135924331.14221853.0776716979.571
    19
    2025-02-14 00:00:00.00022414148532236017756166.26661933.73338129827.33333324729.14221921.73529417297.857
    20
    2025-02-13 00:00:00.00025105174002221164770569.30890330.69109729900.73267324997.71421991.72277217623.714
    ...
    120
    13KB
    156s