adriaparcerisasflow stats: active users (over time) weekly
    Updated 3 days ago
    WITH news AS (
    SELECT
    DISTINCT CAST(value AS VARCHAR) AS users, -- Explicitly casting to VARCHAR
    MIN(trunc(b.block_timestamp, 'week')) AS debut
    FROM
    flow.core.ez_transaction_actors AS b,
    LATERAL FLATTEN(INPUT => b.actors) AS a -- Flattening the actors array
    GROUP BY 1

    UNION ALL

    SELECT
    DISTINCT from_address AS users,
    MIN(trunc(block_timestamp, 'week')) AS debut
    FROM
    flow.core_evm.fact_transactions
    GROUP BY 1
    ),
    news2 AS (
    SELECT
    debut,
    COUNT(DISTINCT users) AS new_users
    FROM
    news
    GROUP BY debut
    ),
    actives AS (
    SELECT
    trunc(b.block_timestamp, 'week') AS week,
    COUNT(DISTINCT CAST(value AS VARCHAR)) AS active_users -- Explicitly casting to VARCHAR
    FROM
    flow.core.ez_transaction_actors AS b,
    LATERAL FLATTEN(INPUT => b.actors) AS a -- Flattening the actors array
    GROUP BY 1

    UNION ALL
    Last run: 3 days ago
    MONTH
    ACTIVE_USERS
    NEW_USERS
    1
    2025-03-24 00:00:00.0007189324338
    2
    2025-03-17 00:00:00.0009471615782
    3
    2025-03-10 00:00:00.000522801442244
    4
    2025-03-03 00:00:00.000603359514477
    5
    2025-02-24 00:00:00.0001757745366
    6
    2025-02-17 00:00:00.000763578299
    7
    2025-02-10 00:00:00.0008577866300
    8
    2025-02-03 00:00:00.00023626485194
    9
    2025-01-27 00:00:00.0005489125069
    10
    2025-01-20 00:00:00.000413620204289
    11
    2025-01-13 00:00:00.000864125233
    12
    2025-01-06 00:00:00.000736175875
    13
    2024-12-30 00:00:00.000778056469
    14
    2024-12-23 00:00:00.00015328410778
    15
    2024-12-16 00:00:00.0008393511595
    16
    2024-12-09 00:00:00.000244592175424
    17
    2024-12-02 00:00:00.00016174888180
    18
    2024-11-25 00:00:00.000599470288443
    19
    2024-11-18 00:00:00.00022679821457
    20
    2024-11-11 00:00:00.00013709975656
    ...
    241
    10KB
    138s