Back to Blogs
Shopify
Nov 23, 2026
By The Shoptimity Team
1 min read

ShopifyQL Timeseries: Show Missing Months in Sales

ShopifyQL Timeseries: Show Missing Months in Sales cover art

Shopify’s ShopifyQL reference says GROUP BY month does not return months with no sales. A chart built from those rows can look continuous even when no row exists for a period. Missing rows and actual zero-valued data are not automatically the same thing. Check the Shopify documentation for current requirements.

Try the documented examples

Compare FROM sales SHOW total_sales GROUP BY month with FROM sales SHOW total_sales TIMESERIES month SINCE last_year UNTIL today. Shopify describes TIMESERIES as backfilling periods with no data as empty values. Use the same date range and filters for a valid comparison.

Read empty values carefully

An empty period means the query did not return data for that interval. Check store launch dates, filters, access and metric availability before treating it as a verified zero. Do not silently replace every empty value with zero in downstream reports.

Keep time and currency consistent

Record the reporting date range, timezone, currency and filters. A month at the edge of the range can be partial. Compare like-for-like full periods where practical and explain any partial intervals in the chart caption.

Validate the result

Run both versions in the ShopifyQL editor available to your store and compare a month with known orders and a period without activity. Cross-check the same period in a sales report. Save the query and definition with the report so another analyst can reproduce it.

Related reading

Read the related Shoptimity guide for additional context.

Ready to build a faster, higher-converting store?

Every Shoptimity theme ships with conversion widgets built in — so you get speed and features without stacking apps.

7-day free trial · all themes included · cancel anytime