Query editor
/**SELECT wallet_provider,SUM (dist_by_provider)/**wallet_provider,country,dist_by_provider,balance_dist_by_provider,txns_dist_by_provider,region,sub_regionFROM query_5141690group by wallet_provider**/SELECTa.wallet_provider,COALESCE(CASE WHEN LOWER(a.country) = 'other' THEN 'Other' ELSE c.region END, 'Other') AS region,SUM(CAST(a.dist_by_provider AS DOUBLE)) / 100 AS total_dist_by_provider,SUM(CAST(a.balance_dist_by_provider AS DOUBLE)) / 100 AS total_balance_dist_by_provider,SUM(CAST(a.txns_dist_by_provider AS DOUBLE)) / 100 AS total_txns_dist_by_providerFROM dune.o_addressable.dataset_by_provider aLEFT JOIN dune.oladee.dataset_country_codes cON a.country = c.nameGROUP BY 1, 2;