Homeโ€บQuery Libraryโ€บAmazon

How is your Amazon revenue trending month by month?

The most fundamental Amazon business question โ€” answered with clean data from your order_items table, properly excluding cancellations and NULL-priced items.

๐Ÿ“Š Amazon Seller Central๐Ÿ‘ฅ Amazon sellers๐Ÿ”ค Plain-English โ†’ SQL
Part of the Explore all Amazon analytics queries โ†’

This is part of the Taptic Data Amazon query library. Explore related queries: SQL query for Amazon return rate by SKU, SQL query for Amazon net margin after FBA fees, SQL query for Amazon buy box percentage by ASIN, and more.

Show me total Amazon revenue by month for the last 12 months
โ†“
Amazon Revenue by Month โ€” generated by Taptic Data AI
SELECT
  TO_CHAR(DATE_TRUNC('month', o.purchase_date::timestamptz), 'YYYY-MM') AS order_month,
  COUNT(DISTINCT o.amazon_order_id)                                       AS total_orders,
  SUM(i.quantity)                                                         AS units_sold,
  ROUND(SUM(i.item_price * i.quantity), 2)                                AS gross_revenue,
  ROUND(SUM(i.item_price * i.quantity)
    / NULLIF(COUNT(DISTINCT o.amazon_order_id), 0), 2)                  AS avg_order_value
FROM amazon_orders o
JOIN amazon_order_items i
  ON i.amazon_order_id = o.amazon_order_id
WHERE o.order_status NOT IN ('Canceled', 'Cancelled')
  AND i.item_price IS NOT NULL
  AND o.purchase_date::timestamptz >= NOW() - INTERVAL '12 months'
GROUP BY DATE_TRUNC('month', o.purchase_date::timestamptz)
ORDER BY 1 ASC
Schema-aware SQL generated from plain English15 lines

This query was generated by Taptic Data from plain English against a real Amazon Seller Central schema. In Taptic, you type the question โ€” the AI writes the SQL, runs it, and returns the result. You can edit the SQL, ask for explanations, and save it as a refreshable report. This type of analysis is commonly used in amazon fba analytics and ecommerce reporting.

Breaking it down line by line

  1. Casts purchase_date (stored as text in Amazon's SP-API) to timestamptz for proper date math
  2. Truncates to month and formats as YYYY-MM for clean chart axis labels
  3. Filters out Canceled/Cancelled orders (both spellings) and NULL item_price rows
  4. Calculates gross revenue as item_price * quantity per line item, then sums per month
  5. Includes average order value using NULLIF to handle months with zero orders gracefully

Result description

A month-by-month table of orders, units sold, gross revenue, and average order value โ€” covering the last 12 months in chronological order, ready to chart as a line or bar.

The business impact

Monthly revenue trend is the baseline metric for any Amazon business. Seeing it in clean SQL โ€” not Seller Central's limited date filters โ€” lets you spot seasonal patterns, growth inflection points, and the impact of catalog or pricing changes.

All queries and use cases on this page relate to analyzing your Amazon Seller Central data in Taptic. To see the full analytics workflow, explore amazon fba analytics, ecommerce reporting, multi-channel analytics.

Common questions

How do I generate a "Amazon Revenue by Month" query automatically?
In Taptic Data, type "Show me total Amazon revenue by month for the last 12 months" and the AI generates schema-aware SQL against your real Amazon Seller Central data โ€” no manual writing required.
What database does this query work with?
This query is designed for Amazon Seller Central. Taptic reads your live schema so the generated SQL always matches your actual table and column names.
Can I edit the generated SQL?
Yes. Taptic shows you the exact SQL it generated. You can edit it directly, ask the AI to explain any line, or request a revision in plain English.
Can I save this as a scheduled report?
Yes. Once you run this query in Taptic, you can save it as a report, add charts and KPIs, and schedule it to email your team on any cadence โ€” daily, weekly, or monthly.

Skip the SQL. Ask the question.

In Taptic Data, you type "Show me total Amazon revenue by month for the last 12 months..." and this SQL runs automatically against your real Amazon Seller Central data.

Try Taptic Free โ€” $29.99/mo

No credit card required. Connect your data source in under 5 minutes.

Next step
Run this query on your own Amazon Seller Central data
Connect ๐Ÿ›’ Amazon Seller Central to Taptic Data and this SQL generates automatically from plain English โ€” against your real schema, your real tables.
Analytics hub
More Amazon queries, use cases, and analytics resources in one place.
Explore all Amazon analytics queries โ†’