Query editor
SELECTday,day_min_30days,count(DISTINCT address) AS address_count,sum(tx_count) AS tx_countFROM(SELECT*FROM-- Get the day and the date -30 days for each day between start_date and end_date"query_3576597(start_date='{{start_date}}', end_date='{{end_date}}')") datesJOIN (-- Get the list of active addresses per daySELECTblock_date,"from" AS address,count(*) AS tx_countFROMavalanche_c.transactionsWHEREblock_date BETWEEN date_add('day', -31, date(TIMESTAMP '{{start_date}}')) AND date(TIMESTAMP '{{end_date}}')GROUP BYblock_date, "from") addr ON addr.block_date BETWEEN dates.day_min_30days AND dates.dayGROUP BYday,day_min_30daysORDER BYday