Query editor
with borrow_tx as (selectdate_trunc('week', block_time) as week,count(*) as num_txns,count(distinct user_safe) as cards,sum(token_amount_usd) as spend_usdfrom query_6819800 -- etherfi cash eventswhere event_type = 'borrow'group by 1)selectweek,num_txns,cards,spend_usd,sum(num_txns) over (order by week) as cumulative_txns,sum(spend_usd) over (order by week) as cumulative_spend_usdfrom borrow_txorder by 1 desc