Query editor
selectdate_trunc(lower('{{Time Granularity}}'), swap_time) as datetime,blockchain,sum(amount_usd) as volume,count(*) as swaps,count(distinct user_address) as users,sum(amount_usd * fee_percent / 100) as feesfrom query_1988292where swap_time >= cast('{{Start Date}}' as timestamp)and (not {{Show V3 Only}} or version = '3')group by 1, 2order by 1 desc, 2