• Home   »  
  • Blog   »  
  • AR Aging Report in Salesforce

How to Build an AR Aging Report and Dashboard in Salesforce

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.

salesforce ar aging report dashboardync

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.

Key takeaways
  • Aging is only as accurate as the balances and due dates synced from your ERP.
  • Use a Days Past Due formula plus an Aging Bucket text formula, so buckets work in every report and dashboard.
  • A matrix report grouped by account and bucket is the classic aging layout.
  • Reporting snapshots turn a point-in-time aging into a trend you can show the CFO.
  • Reconcile Salesforce total AR to the ERP aging total every month.

Before You Start: Data You Need

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:

FieldTypeNotes
AccountLookup to AccountThe bill-to customer
Invoice NumberTextMatches the ERP and what customers see
Invoice DateDateUsed for DSO and aging-by-invoice-date views
Due DateDateDrives days past due
Open BalanceCurrencyAmount still unpaid after payments and credit memos
StatusPicklistOpen, Paid, Disputed, Written Off
Company Code / EntityText or picklistFor 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.

Step 1: Create a Days Past Due Formula

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.

Step 2: Create an Aging Bucket Formula

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.

Step 3: Build the Aging Report

Create a custom report type

Use Accounts with Invoices, so the report shows account fields such as owner, segment and credit limit alongside invoice data.

Build a matrix report

  • Filter: Open Balance greater than 0, Status not equal to Paid or Written Off
  • Group rows by Account Name
  • Group columns by Aging Bucket
  • Summarise Open Balance (Sum)
  • Add a row-level count of invoices if collectors want volume as well as value

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.

Useful variants

ReportGroupingUsed by
Aging by collectorAccount Owner or Collector, then bucketCollections manager, for workload
90+ watch listAccount, filtered to 90+ bucketCredit and finance, for escalation
Aging by entityCompany code, then bucketController, for multi-entity close
Disputed ARAccount, filtered to Disputed statusDispute owners

Step 4: Build the AR Dashboard

Add these components, each sourced from the aging report or a variant:

ComponentChart typeWhat it answers
Total open ARMetricHow much are customers holding?
Overdue ARMetric (filter: Days Past Due > 0)How much is late?
Aging by bucketStacked or vertical barIs the problem getting older?
Top 10 overdue accountsHorizontal bar, sorted descendingWho should we call today?
Overdue by collectorStacked barIs workload balanced?
Percent over 60 daysGauge with target bandsIs 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.

Step 5: Add DSO

Days sales outstanding needs receivables and sales over the same period:

DSO = (Ending accounts receivable / Credit sales for the period) x Days in period

Salesforce 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.

Step 6: Track Trends With Reporting Snapshots

A normal report shows aging today. To show whether aging is improving, use Salesforce reporting snapshots:

  • Create a custom object such as AR Snapshot with fields for date, bucket, entity and amount
  • Create a summary report of open AR by bucket as the source
  • Schedule a reporting snapshot to write the summary into the custom object weekly or at month end
  • Build a line chart on the snapshot object to show each bucket over time

This gives you the trend line finance asks for at month-end without exporting to spreadsheets.

Common Mistakes

  • Aging on invoice amount instead of open balance, which ignores partial payments and credit memos
  • Leaving unapplied cash out, so customers look more overdue than they are. See unapplied cash
  • Using report bucket fields in one report and different ranges in another
  • Not reconciling the Salesforce total to the ERP aging report each month
  • Running every dashboard as a system administrator

Faster Option: Prebuilt AR Dashboards

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.

Frequently Asked Questions

Not in Sales Cloud or Service Cloud. You can build one on any invoice object with a balance and due date, Salesforce Billing stores aging buckets on account balance snapshots, and native AR apps include aging reports out of the box.

Create a Number formula field: IF(Open_Balance__c > 0, TODAY() - Due_Date__c, 0). Positive values are days overdue; negative values are days until due.

A formula field is usually better because the same buckets appear in every report, list view and dashboard. Bucket fields are quicker to create but exist only inside a single report.

Use reporting snapshots to copy a summary of open AR by bucket into a custom object on a schedule, then chart that object on a dashboard.

Partly. Because DSO combines receivables and sales for a period, teams often calculate it with a summary formula, a scheduled Flow that stores a monthly value, or a figure loaded from the ERP.
See How Much Faster You Can Get Paid

40%

DSO reduction

70%

less manual work

95%

cash match accuracy
Book a Free Demo

Find out exactly how much time and money your AR team can save with Quick Receivable. No commitment, no setup required.

Shyam Agarwal