Query editor
-- Chart-ready aggregates from the validated post-bridge activity query.WITH base AS (SELECT *FROM query_8874319),dimensions AS (SELECT 'overall' AS section, 'All qualifying addresses' AS dimension, * FROM baseUNION ALLSELECT 'cohort_month', date_format(cast(cohort_month AS timestamp), '%Y-%m'), * FROM baseUNION ALLSELECT 'entry_size', entry_size_bucket, * FROM baseUNION ALLSELECT 'source_chain', source_chain, * FROM baseUNION ALLSELECT 'first_action', first_action_category, * FROM base)SELECTsection,dimension,count(*) AS cohort_addresses,sum(entry_usd) AS entry_volume_usd,approx_percentile(entry_usd, 0.5) AS median_entry_usd,count_if(activation_mature = 1) AS activation_mature_addresses,count_if(activation_mature = 1 AND activated_7d = 1) AS activated_addresses,1.0 * count_if(activation_mature = 1 AND activated_7d = 1)/ nullif(count_if(activation_mature = 1), 0) AS activation_rate_7d,count_if(retention_mature = 1) AS retention_mature_addresses,count_if(retention_mature = 1 AND returned_d23_30 = 1) AS returned_addresses,1.0 * count_if(retention_mature = 1 AND returned_d23_30 = 1)/ nullif(count_if(retention_mature = 1), 0) AS return_rate_d23_30FROM dimensionsGROUP BY 1, 2ORDER BY 1, cohort_addresses DESC;