adriaparcerisasDaily Active User 6
    Updated 2022-10-19
    WITH
    daus as (
    SELECT
    distinct tx_from as users,
    trunc(block_timestamp,'week') as weeks,
    count(distinct trunc(block_timestamp,'day')) as active_days
    from osmosis.core.fact_transactions
    group by 1,2
    having active_days>=4
    ),
    daus_2 as (
    select distinct users from daus
    ),
    /*prices as (
    select trunc(recorded_at,'week') as weeks,
    symbol,
    avg(price) as price
    from osmosis.core.dim_prices
    group by 1,2
    ),*/
    transfers as (
    SELECT
    trunc(block_timestamp,'week') as weeks,
    transfer_type,
    -- sender,
    count(distinct tx_id) as txs,
    count(distinct receiver) as users
    from osmosis.core.fact_transfers where receiver in (select * from daus_2)
    group by 1,2
    )
    select * from transfers
    Run a query to Download Data