Short answer: days sales outstanding (DSO) estimates how many days customers take to pay: DSO = accounts receivable at period end / credit sales in the period × days in the period. With 1.2M receivable and 3.6M of credit sales in a 90-day quarter, DSO = 1.2 / 3.6 × 90 = 30 days. Receivables are a balance, so take the value at the end of the period, not a sum. Show DSO with an ageing table (current, 1 to 30, 31 to 60, 61 to 90, over 90 days overdue), which says which customers to call.
DSO turns a balance-sheet number into days that sales and finance both understand, and compares it with your payment terms: DSO of 45 on 30-day terms means customers pay late on average.
How is it calculated?
| Quarter | Credit sales (k) | Receivables at end (k) | Days | DSO |
|---|---|---|---|---|
| Q1 | 3,300 | 1,210 | 90 | 33.0 |
| Q2 | 3,500 | 1,225 | 91 | 31.9 |
| Q3 | 3,600 | 1,200 | 92 | 30.7 |
- DSO
- Terms
What is the DAX?
Receivables come as monthly or daily balances (or are rebuilt from invoices and payments). A balance is semi-additive: sum across customers, but take the last date across time.
Credit Sales = CALCULATE ( SUM ( Invoices[Amount] ), Invoices[Payment Type] = "Credit" )
AR Balance =
CALCULATE (
SUM ( ARBalances[Amount] ),
LASTNONBLANK ( 'Date'[Date], CALCULATE ( SUM ( ARBalances[Amount] ) ) )
)
Days in Period = COUNTROWS ( 'Date' )
DSO = DIVIDE ( [AR Balance], [Credit Sales] ) * [Days in Period]At month level, Days in Period is the days of the month; at quarter level, of the quarter. Many teams use a rolling period instead (receivables against the last 90 days of sales) to smooth months with odd sales:
DSO 90d =
VAR Sales90 = CALCULATE ( [Credit Sales], DATESINPERIOD ( 'Date'[Date], MAX ( 'Date'[Date] ), -90, DAY ) )
RETURN DIVIDE ( [AR Balance], Sales90 ) * 90In depth: opening and closing balances.
What is the countback method?
Seasonal sales distort the simple formula: a big December inflates receivables and sales together. The countback method walks back month by month, subtracting each month's sales from receivables until they are used up, and counts the days consumed. With receivables of 1,200 and monthly sales of 1,300 (Sep), 1,150 (Aug): September's 1,300 alone covers the 1,200, so DSO = 1,200 / 1,300 × 30 = 27.7 days. It is more accurate when sales swing, and harder to write in DAX (an iterator over months in descending order with a running total, or Power Query).
How do you build the ageing table?
| Customer | Current | 1-30 | 31-60 | 61-90 | Over 90 | Total |
|---|---|---|---|---|---|---|
| Contoso | 180 | 40 | 220 | |||
| Fabrikam | 95 | 60 | 35 | 20 | 210 | |
| Northwind | 60 | 15 | 45 | 120 | ||
| All customers | 720 | 230 | 120 | 60 | 70 | 1,200 |
Bucket each open invoice by days past due (as of date minus due date) with a calculated column or a bucket table, and show it as a matrix. The over-90 column is where bad debt comes from.
What goes wrong?
- Summing receivables over months. A balance; use the closing value.
- Total sales instead of credit sales. Cash sales never sit in receivables and lower DSO falsely.
- Including tax inconsistently. Receivables include VAT, sales often not; use both gross or both net.
- Average DSO hiding a few bad payers. Show the ageing table with it.
Where can you check this?
- Microsoft Learn: LASTNONBLANK function (DAX)
- Microsoft Learn: DATESINPERIOD function (DAX)
- Microsoft Learn: CLOSINGBALANCEMONTH function (DAX)
Where do you start?
Build AR Balance as a closing balance, then DSO by month next to your payment terms. The cash conversion cycle adds inventory and payables days.