Skip to content
Report · Sales

Sales by item (12 months)

Net quantity, net sales and average selling price per item over the last twelve months.

  • items
  • ranking
  • 12 months
Sample preview, fictional dataYour own figures appear after import.

01

About this report

Items ranked by net sales over the last 365 days. Net sales are invoices and cash sales less credit memos, before tax, in base currency. Average price is net sales divided by net quantity, so credit memos count against both.

Filter on Item type to separate services from goods. Sort by Quantity to find high-volume items that bring in little revenue.

02

Sample preview

Fictional figures in the shape you will see. Yours come from your account.

ItemItem typeTransactionsQuantityNet salesAverage price
Implementation servicesService2124,180794,200190
Annual support planService5858696,00012,000
Training dayService4461118,9501,950
Integration connector licenceNonInvtPart1923103,5004,500
TravelOthCharge878741,230.60473.92

03

The SuiteQL

This is the query each report runs. Read it, copy it, or change it after import.

Sales by item (12 months)
SELECT BUILTIN.DF(tl.item) AS item,
       tl.itemtype AS item_type,
       COUNT(DISTINCT t.id) AS transactions,
       SUM(-tl.quantity) AS quantity,
       SUM(-tl.foreignamount * t.exchangerate) AS sales,
       SUM(-tl.foreignamount * t.exchangerate) / NULLIF(SUM(-tl.quantity), 0) AS avg_price
  FROM transaction t
  JOIN transactionline tl ON tl.transaction = t.id
 WHERE t.type IN ('CustInvc', 'CashSale', 'CustCred')
   AND t.posting = 'T'
   AND tl.mainline = 'F'
   AND tl.taxline = 'F'
   AND NVL(tl.iscogs, 'F') = 'F'
   AND tl.itemtype NOT IN ('TaxGroup', 'TaxItem', 'Subtotal', 'Description', 'EndGroup')
   AND t.trandate > TRUNC(SYSDATE) - 365
 GROUP BY BUILTIN.DF(tl.item), tl.itemtype
 ORDER BY sales DESC

ReportSales

Sales by item (12 months)

Screenshot of the Sales by item (12 months) report in HiScale Advanced Reports, filled with fictional sample data
Sample preview, fictional dataOpen image full size (opens in a new tab)