Query editor
WITH cumulative AS (SELECT * FROM query_4651279),totals AS (SELECTSUM(cumulative_volume) AS total_volume,SUM(cumulative_num_swaps) AS total_swaps,SUM(cumulative_unique_swap_addresses) AS total_unique_swap_addressesFROM cumulative)SELECTc.blockchain,c.cumulative_volume,c.cumulative_num_swaps,c.cumulative_unique_swap_addresses,ROUND(c.cumulative_volume / t.total_volume * 100, 2) AS percent_volume,ROUND(CAST(c.cumulative_num_swaps AS double) / t.total_swaps * 100, 2) AS percent_swaps,ROUND(CAST(c.cumulative_unique_swap_addresses AS double) / t.total_unique_swap_addresses * 100, 2) AS percent_unique_swap_addressesFROM cumulative cCROSS JOIN totals tWHERE c.blockchain = 'base';