HadisehDaily Active User 3
    Updated 2022-10-19

    with tb as ( select tx_from,count(DISTINCT tx_id) as transactions
    from osmosis.core.fact_transactions
    where TX_STATUS = 'SUCCEEDED'
    group by tx_from),
    t1 as ( select DISTINCT tx_from
    from tb
    where transactions >= 20)
    select date(block_timestamp) as date,
    'Active wallet' as status,
    count(TX_ID) AS total_transaction,
    sum(total_transaction) over (order by date asc) as cumulative_transaction
    from osmosis.core.fact_transactions
    where tx_from in (select tx_from from t1)
    and date >= CURRENT_DATE - 90
    group by date,status
    UNION
    select date(block_timestamp) as date,
    'Normal wallet' as status,
    count(TX_ID) AS total_transaction,
    sum(total_transaction) over (order by date asc) as cumulative_transaction
    from osmosis.core.fact_transactions
    where tx_from not in (select tx_from from t1)
    and date >= CURRENT_DATE - 90
    group by date,status
    Run a query to Download Data