Query editor
SELECTblockchain,volumeSwapped,transactions,"timestamp",date_format("timestamp", '%b %y') AS Month,ROUND(SUM(VolumeSwapped) OVER (PARTITION BYdate_format("timestamp", '%b %y')),2) AS TotalVolumePerMonth,SUM(VolumeSwapped) OVER () AS TotalVolume,SUM(VolumeSwapped) OVER () * 0.005 AS TotalFees,SUM(transactions) OVER (PARTITION BYdate_format("timestamp", '%b %y')) AS TotalTransactionsPerMonth,SUM(transactions) OVER () AS TotalTransactionsFROM(SELECT'Ethereum' AS Blockchain,860780.730879362 AS VolumeSwapped,593 AS Transactions,timestamp '2023-01-01 00:00:00' as "Timestamp"UNION ALLSELECT'Ethereum',407202.48199561296,179,timestamp '2022-12-01 00:00:00'UNION ALLSELECT'Polygon',36857.800117520885,114,timestamp '2022-12-01 00:00:00'UNION ALLSELECT'BNB',27123.59941341767,152,timestamp '2022-12-01 00:00:00'UNION ALLSELECT'BNB',41721.590191917756,150,timestamp '2023-01-01 00:00:00'UNION ALLSELECT'Polygon',44940.53080733267,173,timestamp '2023-01-01 00:00:00'UNION ALLSELECT'Arbitrum',