Query editor
with tmp as(selectdate_trunc('month', block_time) as dt,sum(amount_usd) as trading_volume,sum(amount_original) as trading_volume_eth,count(*) as cntfrom nft.tradeswhere nft_contract_address = 0x5Af0D9827E0c53E4799BB226655A1de152A425a5group by 1order by 1 desc)select *,sum(trading_volume) over (order by dt asc) as cum_volume,sum(trading_volume_eth) over (order by dt asc) as cum_volume_ethfrom tmporder by dt desc