hess4. Weekly New Swappers
    Updated 2025-04-06
    with base as ( select block_timestamp,
    origin_from_address,
    tx_hash,
    pool_name,
    case when amount_in_usd is null then amount_out_usd else amount_in_usd end as amount_usd,
    platform,
    symbol_in,
    symbol_out,
    token_in,
    token_out
    from ethereum.defi.ez_dex_swaps
    where (token_in = lower('0x467719ad09025fcc6cf6f8311755809d45a5e5f3')
    or token_out = lower('0x467719ad09025fcc6cf6f8311755809d45a5e5f3')))
    ,
    new as ( select min(block_timestamp) as date,
    origin_from_address
    from base
    group by 2)

    select trunc(date,'week') as weekly,
    count(distinct origin_from_address) as "New Swapper",
    sum("New Swapper") over (order by weekly asc) as "Cumulative New Swapper"
    from new
    group by 1
    Last run: 18 days ago
    WEEKLY
    New Swapper
    Cumulative New Swapper
    1
    2023-10-30 00:00:00.000622806
    2
    2024-09-30 00:00:00.0001249302
    3
    2024-07-22 00:00:00.000978592
    4
    2023-06-05 00:00:00.000202258
    5
    2024-01-15 00:00:00.000704624
    6
    2024-03-25 00:00:00.0002466431
    7
    2025-03-31 00:00:00.0004011766
    8
    2025-02-17 00:00:00.00010211360
    9
    2023-07-24 00:00:00.000182465
    10
    2023-10-09 00:00:00.000182693
    11
    2024-02-05 00:00:00.0001174940
    12
    2024-11-25 00:00:00.00010810169
    13
    2023-05-22 00:00:00.000222224
    14
    2023-09-18 00:00:00.000332615
    15
    2024-10-07 00:00:00.0001529454
    16
    2023-01-23 00:00:00.000781300
    17
    2023-12-11 00:00:00.0001943875
    18
    2024-11-18 00:00:00.00010010061
    19
    2022-12-26 00:00:00.000421080
    20
    2023-11-20 00:00:00.0001733197
    ...
    132
    5KB
    13s