A practical build guide for admins and finance teams: formula fields, aging buckets, a matrix report and a dashboard collectors and the CFO can both trust.
Shyam Agarwal
To build an AR aging report in Salesforce, you need an invoice object with balance and due date, a formula field that calculates days past due, and a text formula that assigns each invoice to an aging bucket (Current, 1–30, 31–60, 61–90, 90+). Group a matrix report by account and bucket, sum the open balance, then add the report to a dashboard with total AR, overdue AR, an aging chart and the top overdue accounts. Use reporting snapshots to track aging and DSO over time.
Salesforce Sales Cloud has no invoice object, so you need one from an AR app, Salesforce Billing, or a custom object loaded from your ERP. Each invoice record needs at least:
| Field | Type | Notes |
|---|---|---|
| Account | Lookup to Account | The bill-to customer |
| Invoice Number | Text | Matches the ERP and what customers see |
| Invoice Date | Date | Used for DSO and aging-by-invoice-date views |
| Due Date | Date | Drives days past due |
| Open Balance | Currency | Amount still unpaid after payments and credit memos |
| Status | Picklist | Open, Paid, Disputed, Written Off |
| Company Code / Entity | Text or picklist | For multi-entity filtering |
If the data is not synced yet, start with keeping AR in sync with NetSuite or SAP. Salesforce Billing users can also look at the account balance snapshot object, which stores aging buckets for Billing accounts.
Create a Number formula field on the invoice object, with 0 decimal places:
Days_Past_Due__c (Formula, Number, 0 decimals)
IF( Open_Balance__c > 0, TODAY() - Due_Date__c, 0 )Negative values mean the invoice is not yet due. Formula fields recalculate when viewed, so the value is always current.
Report bucket fields work, but they live inside one report. A formula field gives you the same buckets in every report, list view and dashboard:
Aging_Bucket__c (Formula, Text)
IF( Open_Balance__c <= 0, "Closed",
IF( Days_Past_Due__c <= 0, "0. Current",
IF( Days_Past_Due__c <= 30, "1. 1-30",
IF( Days_Past_Due__c <= 60, "2. 31-60",
IF( Days_Past_Due__c <= 90, "3. 61-90", "4. 90+" )
)
)
)
)
The number prefixes keep buckets sorted in the right order on charts. Adjust the ranges if your terms or policy use different buckets, for example 1–15 and 16–30 for short-term customers.
Use Accounts with Invoices, so the report shows account fields such as owner, segment and credit limit alongside invoice data.
The result is the familiar aging grid: one row per customer, one column per bucket, totals at the bottom. Finance teams use accounts receivable aging reports like this to prioritize collections and estimate bad debt.
| Report | Grouping | Used by |
|---|---|---|
| Aging by collector | Account Owner or Collector, then bucket | Collections manager, for workload |
| 90+ watch list | Account, filtered to 90+ bucket | Credit and finance, for escalation |
| Aging by entity | Company code, then bucket | Controller, for multi-entity close |
| Disputed AR | Account, filtered to Disputed status | Dispute owners |
Add these components, each sourced from the aging report or a variant:
| Component | Chart type | What it answers |
|---|---|---|
| Total open AR | Metric | How much are customers holding? |
| Overdue AR | Metric (filter: Days Past Due > 0) | How much is late? |
| Aging by bucket | Stacked or vertical bar | Is the problem getting older? |
| Top 10 overdue accounts | Horizontal bar, sorted descending | Who should we call today? |
| Overdue by collector | Stacked bar | Is workload balanced? |
| Percent over 60 days | Gauge with target bands | Is risk within policy? |
Set the dashboard's running user carefully: a dashboard that runs as an admin shows every account to every viewer. Use dynamic dashboards if collectors should see only their own accounts.
Days sales outstanding needs receivables and sales over the same period:
DSO = (Ending accounts receivable / Credit sales for the period) x Days in periodSalesforce reports cannot easily divide two different reports, so teams usually calculate DSO one of three ways: a summary formula on a report that includes both invoice amount and open balance for the period; a scheduled Flow that writes the monthly value to a KPI record; or a value loaded from the ERP. See how to calculate DSO or try the DSO calculator.
A normal report shows aging today. To show whether aging is improving, use Salesforce reporting snapshots:
This gives you the trend line finance asks for at month-end without exporting to spreadsheets.
If you would rather not build and maintain these objects, formulas and snapshots yourself, a native AR app ships them ready to use. Quick Receivable, for example, includes management and collector dashboards, an aging bucket report, and KPIs such as total AR, overdue, current due, DSO, broken promise rate and dispute rate, all built on standard Salesforce reports you can extend (AR dashboard, reporting docs).
Still choosing an approach? Compare the best Salesforce-native AR apps.
40%
DSO reduction70%
less manual work95%
cash match accuracyFind out exactly how much time and money your AR team can save with Quick Receivable. No commitment, no setup required.