Query editor
selecttvl.day,sum(tvl.amount_cumulative_usd) as tvl_amount_cumulative_usd,sum(cl.amount_cumulative_usd) as cl_amount_cumulative_usd,sum(pt.unminted_amount_cumulative_usd) as pt_unminted_amount_cumulative_usd,sum(pt.minted_amount_cumulative_usd) as pt_minted_amount_cumulative_usd,sum(pt.amount_cumulative_usd) as pt_amount_cumulative_usd,sum(coalesce(tvl.amount_in_usd, 0) + coalesce(cl.amount_in_usd, 0) + coalesce(pt.amount_in_usd, 0)) as amount_in_usd,sum(coalesce(tvl.amount_out_usd, 0) + coalesce(cl.amount_out_usd, 0) + coalesce(pt.amount_out_usd, 0)) as amount_out_usd,sum(coalesce(tvl.amount_usd, 0) + coalesce(cl.amount_usd, 0) + coalesce(pt.amount_usd, 0)) as amount_usd,sum(coalesce(tvl.amount_cumulative_usd, 0) + coalesce(cl.amount_cumulative_usd, 0) + coalesce(pt.amount_cumulative_usd, 0)) as amount_cumulative_usd,sum(cl.volume_amount_usd) as volume_amount_usd,sum(cl.volume_amount_cumulative_usd) as volume_amount_cumulative_usd,sum(cl.total_volume_usd) as total_volume_usdfrom (selectday,sum(amount_in_usd) as amount_in_usd,sum(amount_out_usd) as amount_out_usd,sum(amount_usd) as amount_usd,sum(amount_cumulative_usd) as amount_cumulative_usdfrom query_4706320group by 1) tvlleft join (selectday,sum(cl_amount_in_usd) as amount_in_usd,sum(cl_amount_out_usd) as amount_out_usd,sum(cl_amount_usd) as amount_usd,sum(cl_amount_cumulative_usd) as amount_cumulative_usd,sum(volume_amount_usd) as volume_amount_usd,sum(volume_amount_cumulative_usd) as volume_amount_cumulative_usd,sum(total_volume_usd) as total_volume_usdfrom query_4730521group by 1) clon tvl.day = cl.dayleft join (selectday,sum(amount_in_usd) as amount_in_usd,sum(amount_out_usd) as amount_out_usd,sum(amount_usd) as amount_usd,sum(amount_cumulative_usd) as amount_cumulative_usd,sum(unminted_amount_cumulative_usd) as unminted_amount_cumulative_usd,sum(minted_amount_cumulative_usd) as minted_amount_cumulative_usdfrom query_4764564group by 1) pton tvl.day = pt.daygroup by 1order by day desc