Aging AR Report

n90

Registered User.
Local time
Today, 15:40
Joined
Dec 6, 2013
Messages
18
Hello Again!

Im working on another report, an Aging AR report. And Im trying to make a column were it looks at the MailDate and then determines the Age of the AR -

Case WHEN [Open AR 1].MailDate > GetDate()-30 THEN 'Current'
WHEN [Open AR 1].MailDate BETWEEN GetDate()-31 AND GetDate()-61 THEN '31-45 Days'
WHEN [Open AR 1].MailDate BETWEEN GetDate()-61 AND GetDate()-90 THEN '61-90 Days'
WHEN [Open AR 1].MailDate <= GetDate()-91 THEN 'Over 90 Days'
ELSE 'error' END As Age

Basically what its currently doing in the Column is putting 'Current' when the jobs are less than 30 days which is what I want. And also putting 'Over 90 Days' for Jobs were the maildate is past 90 days. Everything else however it gives the 'error' in the column.
 
n90,

Your two middle clauses have the order reversed.

You have Between "newest" and "oldest".

Wayne
 

Users who are viewing this thread

Back
Top Bottom