Query editor
Select* ,SUM(fees)OVER(order by daily) as cumulative_fee,SUM(trading_volume)OVER(order by daily) as cumulative_trading_volFROM(SELECTDATE_TRUNC('day', block_time) AS daily,token_pair AS pools,SUM(fee_taken) AS fees,SUM(amount_usd) AS trading_volumeFROM query_5824720WHERE token_pair IN ( Select token_pair from unnest(split('{{token_pair}}',',')) as p(token_pair))GROUP BY1,2ORDER BY1)