Query editor
select DATE_TRUNC('{{period}}', block_date) AS period,sum(tx_count) AS tx_countfrom metrics.transactions_dailyWHERE date_trunc('{{period}}', block_date) < (SELECT MAX(date_trunc('{{period}}', block_date))FROM metrics.dune_index_daily)group by 1