Query editor
/* Query 7: Growth Metrics Since Launch *//* Visualization: Combination chart (bars + line) *//* Purpose: Shows HumidiFi's month-over-month growth since June 2024 launch */WITH monthly_metrics AS (SELECTDATE_TRUNC('month', block_time) AS month,SUM(amount_usd) AS monthly_volume,COUNT(DISTINCT trader_id) AS unique_traders, /* Corrected column name */COUNT(*) AS trade_count,AVG(amount_usd) AS avg_trade_sizeFROM dex_solana.tradesWHEREproject = 'humidifi'AND block_time >= TRY_CAST('2024-06-01' /* HumidiFi launch date */ AS TIMESTAMP)GROUP BY1)SELECTmonth,monthly_volume,unique_traders,trade_count,avg_trade_size,(monthly_volume - LAG(monthly_volume) OVER (ORDER BY month)) / LAG(monthly_volume) OVER (ORDER BY month) * 100 AS volume_growth_pctFROM monthly_metricsORDER BYmonth