Query editor
SELECT ROW_NUMBER() OVER (ORDER BY amount DESC) as ranking,*,100*CAST(group_count AS DOUBLE) / SUM(group_count) OVER () as total_percFROM (select ROUND(amount) as amount,COUNT(*) as group_countFROM query_2233730GROUP BY 1) x
Query editor
1SELECT ROW_NUMBER() OVER (ORDER BY amount DESC) as ranking,*,2100*CAST(group_count AS DOUBLE) / SUM(group_count) OVER () as total_perc3FROM (4select ROUND(amount) as amount,5COUNT(*) as group_count6FROM query_22337307GROUP BY 18) x9