HomeQuery LibraryeCommerce

What is your total revenue across Amazon and Shopify — in one view?

Multi-channel sellers need to see Amazon and Shopify revenue side by side. This query combines both sources into a single monthly trend, with channel breakdown included.

📊 Amazon Seller Central + Shopify👥 Multi-channel eCommerce sellers🔤 Plain-English → SQL
Show me total revenue by month by channel for Amazon and Shopify combined for the last 12 months
Amazon + Shopify Combined Revenue Query — generated by Taptic Data AI
WITH amazon_revenue AS (
  SELECT
    DATE_TRUNC('month', o.purchase_date::timestamptz)::date  AS month,
    'Amazon'                                                   AS channel,
    ROUND(SUM(i.item_price * i.quantity), 2)                 AS revenue
  FROM amazon_orders o
  JOIN amazon_order_items i ON i.amazon_order_id = o.amazon_order_id
  WHERE o.purchase_date::date >= NOW() - INTERVAL '12 months'
    AND o.order_status NOT IN ('Canceled', 'Cancelled')
  GROUP BY 1
),
shopify_revenue AS (
  SELECT
    DATE_TRUNC('month', created_at::timestamptz)::date  AS month,
    'Shopify'                                            AS channel,
    ROUND(SUM(total_price::numeric), 2)                 AS revenue
  FROM shopify_orders
  WHERE is_test_order = false
    AND cancelled_at IS NULL
    AND financial_status NOT IN ('voided','refunded')
    AND created_at::date >= NOW() - INTERVAL '12 months'
  GROUP BY 1
),
combined AS (
  SELECT * FROM amazon_revenue
  UNION ALL
  SELECT * FROM shopify_revenue
)
SELECT
  TO_CHAR(month, 'YYYY-MM')                          AS order_month,
  channel,
  revenue,
  SUM(revenue) OVER (PARTITION BY month)             AS total_revenue_all_channels
FROM combined
ORDER BY month ASC, channel
Schema-aware SQL generated from plain English35 lines

This query was generated by Taptic Data from plain English against a real Amazon Seller Central + Shopify 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 multi-channel analytics and ecommerce reporting.

Breaking it down line by line

  1. First CTE pulls Amazon revenue from order_items joined to orders, excluding cancelled orders
  2. Second CTE pulls Shopify revenue from orders, excluding test orders, voided, and refunded transactions
  3. UNION ALL combines both into one row set with a channel label
  4. Window function SUM OVER (PARTITION BY month) adds total cross-channel revenue to every row without a separate join
  5. Results ordered chronologically by month then channel for easy charting

Result description

Monthly revenue table with one row per channel per month, plus total combined revenue for the month — 24 rows for 12 months across 2 channels.

The business impact

Multi-channel sellers who only look at each platform separately miss the full picture. Combined revenue shows your real business trajectory, and channel breakdown reveals which platform is growing faster — critical for deciding where to invest inventory and marketing budget.

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

Common questions

How do I generate a "Amazon + Shopify Combined Revenue Query" query automatically?
In Taptic Data, type "Show me total revenue by month by channel for Amazon and Shopify combined for the last 12 months" and the AI generates schema-aware SQL against your real Amazon Seller Central + Shopify data — no manual writing required.
What database does this query work with?
This query is designed for Amazon Seller Central + Shopify. 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 revenue by month by channel for Amazon and Sho..." and this SQL runs automatically against your real Amazon Seller Central + Shopify data.

Try Taptic Free — $29.99/mo

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