Updated 2023-01-03
    ---credit to jackguy
    SELECT
    *,
    sum(new_users) over (ORDER by min_month) as cume_users

    FROM (
    SELECT
    min_month,
    count(*) as new_users
    FROM (
    SELECT
    tx_from,
    min(date_trunc('month', BLOCK_TIMESTAMP)) as min_month
    FROM osmosis.core.fact_transactions
    GROUP by 1
    )
    GROUP BY 1
    )
    ORDER BY 1 DESC
    Run a query to Download Data