Skip to main content

How reports count data

This page explains which dates, currencies and orders the reports of the Advanced Reports extension for Magento 2 are based on, and why their numbers can differ from the default Magento reports.

Reports read live data​

Reports read orders, carts, products and customers directly from the database each time you open them. A new order appears in the reports right away, with no need to refresh statistics.


Which date a report uses​

  • Sales and Catalog reports count an order by its purchase date (the Purchased On column), which is the date the order was placed. The invoice date is not used. For example, an order placed on November 30 and invoiced on December 2 is counted in November.
  • Carts reports count a cart by the date it was created (the Created At column).

Time zone​

Dates are filtered and grouped by day, week or month in the time zone set at Stores -> Configuration -> General -> General -> Locale Options -> Timezone at the default (global) scope. So "today" in a report is today in that time zone, not in the time zone of the server or of your computer.


Which orders are counted​

Sales and catalog reports open filtered by the order statuses set in Order statuses as default filter. By default, these are Complete, Closed, Pending and Processing, so canceled orders are not counted. Change the statuses for a single report with its Status filter, or for all reports in the settings.


Store filter and currency​

The Store filter in the toolbar lists your store views. A website with more than one store view is also listed, as Website: [name], and selects all of its store views at once.

Amounts are always shown in a base currency, never in the currency the customer paid in. Which base currency depends on the stores the report covers:

  • All stores, or stores with different base currencies: amounts are converted into the base currency set at Stores -> Configuration -> General -> Currency Setup -> Currency Options -> Base Currency at the default (global) scope. Each order is converted at the rate saved with it when it was placed, so later changes of currency rates don't change the past figures.
  • Store views that share one base currency: amounts are shown in that base currency, without conversion.
note

Websites can have their own base currencies only when Catalog Price Scope is set to Website at Stores -> Configuration -> Catalog -> Catalog -> Price. Otherwise, all stores share one base currency, and no conversion takes place.


Cost, Gross Profit and Gross Margin​

The Cost, Gross Profit and Gross Margin columns rely on the Cost attribute of products, which you fill in on the product page under Advanced Pricing.

  • Magento saves the product cost with each order item when the order is placed. Changing the cost of a product later doesn't change the orders placed before.
  • A product without a cost is counted as costing 0. Its gross profit then equals its revenue, and its gross margin is 100%. If the margins look too high, check that your products have a cost.
  • The order-level Gross Profit and Gross Margin columns are calculated from invoiced amounts, so an order that is not invoiced yet shows 0.

Why numbers differ from the default Magento reports​

The figures in the Advanced Reports extension may not match Reports -> Sales or the default Magento dashboard. The most common reasons are:

  • Statistics: the default Magento sales reports are built from statistics that are refreshed at Reports -> Statistics -> Refresh Statistics. Until they are refreshed, recent orders are missing there. The Advanced Reports extension reads live data.
  • Order statuses: the default Magento reports can be filtered by a different set of statuses. Compare reports with the same statuses selected.
  • Date: the default Magento sales reports can count orders by the date they were created or the date they were last updated. The Advanced Reports extension uses the date the order was placed.
  • Currency: the reports may convert amounts into different currencies. See Store filter and currency.
  • Columns: make sure you compare the same values. For example, Grand Total includes tax and shipping, while subtotals don't.