Query editor
with ts as (select * fromunnest(sequence(cast(('2022-12-12 00:00:00')as timestamp), cast(now() as timestamp), interval '1' day)) as s(timestamp)),messages as (select A.* fromforeverland_ethereum.ethernal_love_bridge_call_draftMessage Ajoin foreverland_ethereum.ethernal_love_bridge_call_finishMessage Bon A.id = B.id), counts as (Selectdate_trunc('day', call_block_time) as timestamp,count(distinct id) messages_writtenfrom messagesgroup by 1order by 1)SelectA.timestamp,B.messages_written,sum(B.messages_written) over (order by A.timestamp asc) total_messagesFrom ts Aleft outer join counts B on A.timestamp = B.timestampGroup by 1,2