Query editor
SELECTDATE_TRUNC('month', block_date) AS period, -- truncate the date to aggregate on monthly levelSUM(tx_fee_usd) AS monthly_gas_spent, -- sum up the monthly gas spentSUM(SUM(tx_fee_usd)) OVER (ORDER BY DATE_TRUNC('month', block_date)) AS cumulative_gas_spent -- sum of sum to get cumulative gas spentFROM gas.feesWHEREtx_sender = {{0xcEc09230B2C72fBC0690Dd76eB99cB61847BEC7bs}} -- default is vitalik.ethGROUP BY1ORDER BY1