Query editor
with daily_issuance AS (SELECTday, 'eUSD' AS symbol, SUM(amount) AS daily_issuance_redemptionFROM (SELECTdate_trunc('day', evt_block_time) AS day, amount / pow(10,18) AS amountFROM reserve_protocol_ethereum.RTokenP1_evt_IssuanceUNION ALLSELECTdate_trunc('day', evt_block_time) As day, amount / pow(10, 18) * -1 AS amountFROM reserve_protocol_ethereum.RTokenP1_evt_Redemption) subGROUP BY sub.day)SELECT*FROM (SELECTday, symbol, sum(coalesce(daily_issuance_redemption, 0)) over (partition by symbol order by day) as amountFROM daily_issuance) subWHERE day >= now() - interval '1' yearORDER BY day DESC