Query editor
WITH filtered_events AS (SELECTTRY_CAST(timestamp AS TIMESTAMP) AS event_time,topicsFROM flow.cadence_eventsWHERECONTAINS(topics, 'A.4fdb077419808080.aiSportsEscrow.EscrowJoined')AND TRY_CAST(timestamp AS TIMESTAMP) >= CURRENT_DATE - INTERVAL '12' MONTH)SELECTDATE_TRUNC('week', event_time) AS week,COUNT(*) AS number_of_escrowjoined_eventsFROM filtered_eventsGROUP BY1ORDER BYweek DESC