Days sales outstanding (DSO): formula and DAX

How to calculate days sales outstanding, receivables at period end divided by credit sales times the days in the period, a worked example, the countback method, overdue receivables and ageing buckets, the DAX with a closing balance for receivables, and what changes DSO.

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?

QuarterCredit sales (k)Receivables at end (k)DaysDSO
Q13,3001,2109033.0
Q23,5001,2259131.9
Q33,6001,2009230.7
DSO by quarter
  • DSO
  • Terms
010203040Q1Q2Q3
DSO in days, against 30-day 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 ) * 90

In 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?

CustomerCurrent1-3031-6061-90Over 90Total
Contoso18040220
Fabrikam95603520210
Northwind601545120
All customers72023012060701,200
Receivables ageing at 30 Sep (k)

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?

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.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.