Query editor
with tvl as (SELECTweth_peas.day as day, weth_peas.tvl as weth_peas_tvl, dai_peas.tvl as dai_peas_tvl-- , pohm_dai.tvl as pohm_dai_tvl--, ppeas_pohm.est_tvl as ppeas_pohm_tvl--, pwbtc_pohm.est_tvl as pwbtc_pohm_tvlFROM query_3353445 weth_peasLEFT JOIN query_3353645 dai_peas ON weth_peas.day = dai_peas.dayLEFT JOIN query_3380809 pohm_dai on weth_peas.day = pohm_dai.day--LEFT JOIN query_3380998 ppeas_pohm on weth_peas.day = ppeas_pohm.day--LEFT JOIN query_3396523 pwbtc_pohm on weth_peas.day = pwbtc_pohm.dayWHERE weth_peas.day > cast('2023-12-17' as timestamp)ORDER BY 1 DESC)SELECTdate_trunc('{{timeframe}}', day) as time, avg(weth_peas_tvl) as weth_peas_tvl, avg(dai_peas_tvl) as dai_peas_tvl-- , avg(pohm_dai_tvl) as pohm_dai_tvl-- , avg(ppeas_pohm_tvl) as ppeas_pohm_tvl-- , avg(pwbtc_pohm_tvl) as pwbtc_pohm_tvlFROM tvlGROUP BY 1ORDER BY 1 DESC