Query editor
WITH data_all_chains AS (SELECT * FROM query_4065300 --tvp all chains)SELECTDATE_TRUNC('{{aggregation_window}}', day) AS period,blockchain,SUM(transfer_volume_usd) AS transfer_volume_usd,SUM(transfer_volume_eth) AS transfer_volume_eth,SUM(transfer_volume_usd) FILTER(WHERE token_category = 'stablecoin') AS ntvp_stbl_usd,SUM(transfer_volume_eth) FILTER(WHERE token_category != 'stablecoin') AS ntvp_other_ethFROM data_all_chainsGROUP BY 1, 2ORDER BY 1, 2;