Query editor
SELECTdate_trunc('month', creation_date) as month,count_if(chain = 'base') as base_per_month,count_if(chain = 'optimism') as optimism_per_month,sum(count_if(chain = 'base')) over (order by date_trunc('month', creation_date)) as base_cumulative,sum(count_if(chain = 'optimism')) over (order by date_trunc('month', creation_date)) as optimism_cumulative,sum(count(*)) over (order by date_trunc('month', creation_date)) as cumulativeFROM query_4199907 -- loans with $ value OPGROUP BY 1