If I understand correctly, you just want top 100 values according to the sales so you can put a limit using QUALIFY clause...
SELECT STORE, ITEM, SALES, ROW_NUMBER() OVER(PARTITION BY SALES ORDER BY SALES DESC) RN
FROM <<TABLE>>
QUALIFY RN <= 100
↧