Query editor
with base as(selectblock_date, count(distinct tx_hash) daily_trade, sum(case when tx_type = 'buy' then amount else 0 end) daily_vol, count(distinct user) daily_traderfromdune.renaissprotocol_team.result_daily_trade_datagroup byblock_date)select*, sum(daily_trade) over (order by block_date asc) total_trades, sum(daily_vol) over (order by block_date asc) total_volumefrombaseorder byblock_date