Query editor
WITH daily_sums AS (SELECTdate_trunc('day', q1.eth_block_time) AS dt, SUM(q1.blobs_in_block * q2.calldata_blob_fee_eth) AS call_data_eth, SUM(q1.blobs_in_block * q2.calldata_blob_fee_eth * p.price) AS call_data_usd, SUM(q1.blobs_eth) AS blobs_eth, SUM(q1.blob_cost_usd) AS blobs_usd, SUM(q1.eth_tx_fee_base) AS el_tx_fee_base--, SUM(q1.ethereum_blob_revenue) AS ethereum_blob_revenue--, SUM(q1.el_blob_tx_fee) AS el_blob_tx_feeFROM(SELECTDISTINCT eth_block_no, eth_block_time, blobs_in_block, SUM(eth_tx_base_fee_eth) AS eth_tx_fee_base, SUM(eth_tx_fee) AS el_blob_tx_fee, SUM(blob_cost_eth) AS blobs_eth, SUM(blob_cost_usd) AS blob_cost_usd, SUM(eth_tx_fee_usd) + SUM(blob_cost_usd) AS ethereum_blob_revenueFROMquery_3520865GROUP BY 1, 2, 3) q1JOIN(SELECTtime, base_fee_per_gas*power(2,17)*16/power(10,18) as calldata_blob_fee_ethFROMethereum.blocksGROUP BY 1, 2) q2ON q1.eth_block_time = q2.timeJOIN (SELECTDATE_TRUNC('day', minute) AS dt, AVG(price) AS priceFROMprices.usdWHEREblockchain = 'ethereum'AND symbol = 'WETH'GROUP BY1) p ON DATE_TRUNC('day', q1.eth_block_time) = p.dtGROUP BY 1)SELECTdt, call_data_eth, SUM(call_data_eth) OVER (ORDER BY dt) AS rolling_sum_call_data_eth, call_data_usd, SUM(call_data_usd) OVER (ORDER BY dt) AS rolling_sum_call_data_usd, blobs_eth, SUM(blobs_eth) OVER (ORDER BY dt) AS rolling_sum_blobs_eth, blobs_usd, SUM(blobs_usd) OVER (ORDER BY dt) AS rolling_sum_blobs_usd--, eth_tx_fee_base--, SUM(eth_tx_fee_base) OVER (ORDER BY dt) AS rolling_sum_eth_tx_fee_base--, ethereum_blob_revenue--, SUM(ethereum_blob_revenue) OVER (ORDER BY dt) AS rolling_sum_ethereum_blob_revenue--, blob_tx_fee_total