Query editor
WITH combined_operations AS (selecttx_hash,date_trunc('day', time) as operation_date,bridge,integrator,chain_origin,cat,chain_destination,valuefromdune.jumper_exchange.result_lifi_bridgewhereintegrator in ('blockscout')and time >= TIMESTAMP '2024-09-01 00:00:00'UNION ALLselecttx_hash,date_trunc('day', time) as operation_date,cast(bridge as varchar) as bridge,integrator,chain_origin,cat,chain_origin as chain_destination,valuefromdune.jumper_exchange.result_lifi_swapwhereintegrator in ('blockscout')and time >= TIMESTAMP '2024-09-01 00:00:00')-- Select daily volume and cumulative volumeSELECToperation_date,SUM(value) as daily_volume,MAX(value) as daily_avg_volume,SUM(SUM(value)) OVER (ORDER BY operation_date) as cumulative_volumeFROMcombined_operationsGROUP BYoperation_dateORDER BYoperation_date;