Query library
Sample data

Top products by sales

Example 2 of 5 · ShopifyQL sample dashboard

All queries
products
merch
TOP N
Get on Shopify

Prioritize inventory, ads, and homepage slots from real sales, not vanity clicks.

ShopifyQL

Easy query

From sales, show total sales by product title, top 8.

FROM sales
SHOW total_sales, orders, product_title, product_type
GROUP BY product_title, product_type
ORDER BY total_sales DESC
LIMIT 8
VISUALIZE total_sales TYPE bar

SKUs selling

8

of 42

Top SKU share

19.9%

Trail Pack

Outerwear sales

$74.4k

+11%

Accessories units

1,143

+8%

Chart

Ranked total sales

Results

Sample data as if returned from Shopify Analytics

ProductTypeOrdersTotal sales
Trail Pack 28LBags412$49,440
Alpine Shell JacketOuterwear198$43,560
Ridge SoftshellOuterwear154$30,800
Merino Crew — GraphiteApparel386$27,020
Thermal Base LayerApparel221$17,680
Daylight CapAccessories540$16,200
Cordura Belt BagBags267$16,020
Camp Mug 12ozAccessories603$15,075