Query editor
WITHweekly_stats AS (SELECTt.entry_point as Project,sum(volume) as Volume,count(*) as Transactions,count(distinct t.tx_from) as Wallets,(sum(volume)) / count(distinct t.tx_from) as avg_volume_per_walletFROMquery_2972580 tGROUP BY1),totals AS (SELECTsum(Volume) as TotalVolume,sum(Transactions) as TotalTransactions,sum(Wallets) as TotalWalletsFROMweekly_stats)SELECTws.Project,ws.Volume,1.0 * (CAST(ws.Volume AS DOUBLE) / CAST(t.TotalVolume AS DOUBLE)) as PercentVol,ws.Transactions,1.0 * (CAST(ws.Transactions AS DOUBLE) / CAST(t.TotalTransactions AS DOUBLE)) as PercentTx,ws.Wallets,1.0 * (CAST(ws.Wallets AS DOUBLE) / CAST(t.TotalWallets AS DOUBLE)) as PercentUser,ws.avg_volume_per_walletFROMweekly_stats wsCROSS JOIN totals tORDER BYVolume DESC