Blog

Analyze a Shopify Sales CSV Without Double-Counting Orders

Prepare a Shopify-style order summary, separate discounts and refunds, and reconcile net sales before turning the CSV into charts.

October 24, 2026

Normalized Shopify-style order summary: a worked example

6 synthetic records. One reporting currency. Free to download.

Download CSV
Total net sales
805
Distinct orders
6
View all 6 source rows
Synthetic source data for this example
OrderDateChannelGross SalesDiscountsRefundsNet SalesShippingTaxCurrency
10012026-01-01Online12010011058.8USD
10022026-01-02Online800206004.8USD
10032026-01-04POS200200180014.4USD
10042026-02-02Online15000150512USD
10052026-02-08POS1005158006.4USD
10062026-02-10Online250250225518USD
Read the calculation walkthrough
Main Description

Before charting a Shopify orders CSV, establish what each row represents. An order with several products can occupy several export rows. Counting rows as orders, or repeating an order total on each line item, can inflate both order counts and revenue.

Shopify documents the multi-line order format and its export fields in its official order export guide. The downloadable Shopify-style order summary sample used here is deliberately normalized to one row per order. It is synthetic, not a raw Shopify export or a live connector.

1. Export the period you want to analyze

From Shopify's Orders area, export the relevant orders and retain the original file. Record the date range and reporting timezone. Remove names, email addresses, phone numbers, shipping addresses, notes, and other personal details from an analysis copy unless they are necessary for your purpose.

For order-level reporting, create a separate table containing one record for each order ID and its order-level amounts. Do not sum repeated order totals across product rows. For product reporting, keep a different line-item table and use line-item quantities and prices. Do not multiply the order total by the number of products.

2. Define gross sales, discounts, and refunds

In this sample only, Net Sales = Gross Sales - Discounts - Refunds. Shipping and Tax remain separate and are excluded from Net Sales. Check the definitions in your actual export: a subtotal that already reflects discounts must not have the same discount subtracted again.

Align refund timing with the report's purpose. An order-date view and a refund-date view can differ. Choose how to handle canceled, unpaid, partially refunded, and fully refunded orders before counting them. Keep currencies separate unless you provide an explicit, documented conversion.

3. Reconcile the six sample orders

MeasureExpected result (USD)
Gross sales900
Discounts60
Refunds35
Net sales805
Shipping, separately15

The six distinct order IDs produce 805 net sales and a net-sales-per-order figure of 134.17, rounded from 805 / 6. This sample includes partially refunded orders in that denominator. That definition is not automatically the same as Shopify's reported average order value.

4. Turn the prepared CSV into useful charts

Use a monthly net sales chart to compare January's 350 with February's 455, a 30% increase in this small example. A channel bar chart compares Online with POS. Treat the two-month sample as a calculation exercise, not evidence of a real seasonal trend.

The Shopify CSV analyzer describes field requirements. Use CSV data analysis to inspect your prepared table and the ecommerce analytics workflow for a broader reporting view. Review generated charts against the expected totals before sharing them.

5. Separate sales, returns, and profitability questions

Net sales are not profit: this sample has no product costs, payment fees, fulfillment costs, or overhead. Use a product profitability dashboard only when the required cost fields are available. Investigate refund patterns with an ecommerce returns dashboard, and use ROAS reporting only when attributed revenue and advertising spend share a consistent attribution window.

Example scope: The downloadable data is synthetic, not a customer case study. It demonstrates calculations, not a guarantee that every uploaded file produces the same charts. Review the privacy policy before uploading business records. Sample files and public examples are free; generating your own report requires a $2 one-time unlock or an eligible subscription. PDF and PowerPoint exports require a plan that includes them.