Query editor
WITH transactions as(SELECTdate_trunc('day', block_time) AS time_,COUNT(*) AS txnsFROMbase.transactionsGROUP BY1ORDER BY1 DESC)select time_, txns,ROUND(AVG(txns) OVER (ORDER BY time_ rows between 6 preceding and current row)) as "7d avg"from transactionswhere time_ between current_date - interval '365' day and current_date - interval '1' day