Skip to content
Report · CRM

Customers without recent sales

Active customers whose last sale was more than 180 days ago, with what they bought over the last two years.

  • retention
  • churn
  • customers
Sample preview, fictional dataYour own figures appear after import.

01

About this report

Every active top-level customer whose last sale date is more than 180 days ago. Each row gives the sales rep, first and last sale dates, days since the last sale, and net sales over the last two years. Net sales are invoices and cash sales less credit memos, before tax, in base currency.

Sort by Sales, last 2 years to call the largest accounts first. The customer name opens the customer record.

02

Sample preview

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

CustomerSales repFirst saleLast saleDays since last saleSales, last 2 years
Coastal FreightwaysMarco Ruiz2022-03-142026-03-1819097,310
Pinecrest VeterinaryDana Whitfield2023-07-022026-02-2720941,280
Lumen Architects2021-11-202025-10-0535412,900
Old Mill BakeryMarco Ruiz2024-05-092025-06-304513,150

03

The SuiteQL

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

Customers without recent sales
SELECT c.id AS customer__id,
       NVL(c.altname, c.entityid) AS customer,
       BUILTIN.DF(c.salesrep) AS sales_rep,
       TO_CHAR(c.firstsaledate, 'YYYY-MM-DD') AS first_sale,
       TO_CHAR(c.lastsaledate, 'YYYY-MM-DD') AS last_sale,
       TRUNC(SYSDATE) - TRUNC(c.lastsaledate) AS days_since,
       NVL(s.sales, 0) AS sales_24
  FROM customer c
  LEFT JOIN (SELECT e.toplevelparent AS customer_id, SUM(-tl.foreignamount * t.exchangerate) AS sales
               FROM transaction t
               JOIN transactionline tl ON tl.transaction = t.id
               JOIN entity e ON e.id = t.entity
              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) - 730
              GROUP BY e.toplevelparent) s ON s.customer_id = c.id
 WHERE c.parent IS NULL
   AND c.isinactive = 'F'
   AND c.lastsaledate < TRUNC(SYSDATE) - 180
 ORDER BY sales_24 DESC

ReportCRM

Customers without recent sales

Screenshot of the Customers without recent sales report in HiScale Advanced Reports, filled with fictional sample data
Sample preview, fictional dataOpen image full size (opens in a new tab)