Query editor
selectdate_trunc('month',block_time) as month,sum(amount_usd) as total_vol,sum(case when token_sold_symbol='X7DAO' then amount_usd else 0 end) as sold_amt,sum(case when token_bought_symbol='X7DAO' then amount_usd else 0 end) as bought_amtfrom dex.tradeswhere (token_bought_address=0x7105e64bf67eca3ae9b123f0e5ca2b83b2ef2da0 OR token_sold_address=0x7105e64bf67eca3ae9b123f0e5ca2b83b2ef2da0)and block_date >= timestamp '2022-09-01'and blockchain in (Select blockchain from unnest(split('{{blockchain}}',',')) as c(blockchain))group by date_trunc('month',block_time)