Query editor
-- Overview tab: use each numeric column as a Dune counter card.WITHwallet_totals AS (SELECTSUM(total_received) AS total_team_allocations_received,SUM(held_tokens) AS total_held,SUM(sold_tokens) AS total_sold,SUM(staked_tokens) AS total_staked,SUM(transferred_tokens) AS total_transferred,SUM(otc_tokens) AS total_otc,SUM(potential_otc_tokens) AS total_potential_otc,SUM(secondary_held_tokens) AS total_secondary_held,SUM(unknown_tokens) AS total_unknownFROM dune.asdfw123453216.result_hype_team_wallet_state)SELECTw.total_team_allocations_received,w.total_held,w.total_sold,w.total_staked,w.total_transferred,w.total_otc,w.total_potential_otc,w.total_secondary_held,w.total_unknown,100.0 * w.total_sold/ NULLIF(w.total_team_allocations_received, 0) AS sold_pct,100.0 * w.total_held / NULLIF(w.total_team_allocations_received, 0) AS held_pct,100.0 * w.total_staked / NULLIF(w.total_team_allocations_received, 0) AS staked_pct,CURRENT_TIMESTAMP AS calculated_atFROM wallet_totals w;