Shopify themes, liquid, logos, and UX
HI,
am trying to produce a report of the product levels of the top 50 selling items. The examples in the shopify documentation do not appear to work. Products dataset queries give various error when pasted into my shopifyql.
The analytics report “Sell-through rate by product” is what would like but limited to top 50 items, however the shopifyql is not shown.
Spent time with customer care but no joy.
Looking for inventory level but not see an inventory table in my store.
How do I find my database schema as documentation does not appear to match my data.
Hi ,
I understand your challenge—ShopifyQL can be tricky when the documentation examples don’t match real-world store data. Based on your request, here’s a structured approach to generating a report for the top 50 selling items along with their inventory levels:
Shopify Analytics provides built-in reports, but these often lack customization options like filtering to a top 50 list. The "Sell-through rate by product" report is useful, but as you noted, ShopifyQL for that report isn’t visible.
ShopifyQL queries typically pull data from the Products, Orders, and Inventory tables (when available). However, depending on your plan and app setup, you might not see an explicit "Inventory" dataset. Instead, inventory data is usually linked through the Product Variants dataset.
If you're on Shopify Plus or using ShopifyQL through an advanced analytics tool (like a data warehouse or third-party app), you can try querying:
FROM sales SELECT product_title, variant_title, SUM(quantity) AS total_sold GROUP BY product_title, variant_title ORDER BY total_sold DESC LIMIT 50
This query fetches the top 50 products based on total sales.
Shopify does not directly expose an Inventory Table, but inventory data can be retrieved through the Product Variants dataset:
FROM product_variant SELECT product_title, inventory_quantity WHERE product_title IN (SELECT product_title FROM sales ORDER BY SUM(quantity) DESC LIMIT 50)
This links inventory data to your top-selling products.
Since Shopify’s built-in reporting has limitations, you might consider:
If you're looking for a fully automated, customized solution to generate this report dynamically, I offer Shopify store optimization services, including data reporting and analytics customization. Let me know if you'd like assistance setting up a tailored reporting solution that fits your business needs.
Hope this helps! Let me know if you have any questions.
Best,
[XERIONIZ]
🚀 Shopify Dropshipping & Store Optimization Expert
Hi @hughespc,
You can use apps like Better Reports, Report Pundit, or Mipler from the Shopify App Store to generate reports on the top 50 selling products with inventory levels. These apps provide customizable reports, advanced analytics, and easy data export options to help track sales and stock efficiently.
HI
I do not have a product_variant, cannot see any exposed inventory data, but it happily shows under products or inventory in the dashboard for the site.
Thanks
If your inventory data is visible in the Shopify dashboard but not through product variants, try using Shopify’s Inventory Reports under Analytics or export the inventory data from Products > Inventory. Apps like Better Reports, Report Pundit, or Mipler can also pull inventory details directly from the "Products" or "Inventory" sections instead of variants.
Sorry I do not have product_variants or inventory when looking in shopifyql ie SHOW <list of tables Available> neither is listed
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025