Query editor
with base as (selectsubstr(report_date, 1, 7) as month,case when network = 'ETH' then 'ERC' else network end as chain,total_amountfrom dune.bpn_betterpaymentnetwork5188.dataset_ceffu_flow_daily_agg_dunewhere transaction_scope = 'ON_CHAIN'and asset_symbol in ('USDC', 'USDT'))selectmonth,chain,sum(total_amount) as total_tpvfrom basegroup by 1, 2order bymonth,case chainwhen 'BSC' then 1when 'ERC' then 2when 'TRON' then 3when 'BASE' then 4when 'ARB' then 5when 'SOL' then 6when 'OPBNB' then 7else 99end