Query editor
WITH monthly_volume AS (SELECTDATE_TRUNC('month', block_time) AS month,project,SUM(amount_usd) AS volumeFROM dex_solana.tradesGROUP BY 1,2),monthly_total AS (SELECTmonth,SUM(volume) AS total_volumeFROM monthly_volumeGROUP BY month)SELECTmv.month,mv.project,ROUND((mv.volume / mt.total_volume) * 100,2) AS market_shareFROM monthly_volume mvJOIN monthly_total mtON mv.month = mt.monthORDER BY mv.month, market_share DESC;