Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

How to write calculated field for A/R aging report in SmartList Builder; so that there is only one line per customer

Posted on by 1,415

I NEED TO HAVE ONLY ONE LINE FOR EACH CUSTOMER, listing TOTAL A/R outstanding for 0-30 days, TOTAL A/R outstanding for 31-60 days, etc.

PLEASE ADVISE HOW TO CORRECT/WRITE CALCULATED FIELD IN SMARTLIST BUILDER.

Please see details of what I did below:

I have written the following formular in Calculated field for A/R aging in Sales - 31-60 days A/R:

CASE
WHEN (DATEDIFF ( day ,{RM Open File:Document Date} , GETDATE()  )) > 30 and (DATEDIFF ( day ,{RM Open File:Document Date} , GETDATE()  )) < 61 
 THEN {RM Open File:Current Trx Amount}
 ELSE 0
 END

This calculated field results in pulling multiple lines for each customer:

1) several lines for A/R 31-60 days- for multiple invoices? with zeros for other maturities (A/R 0-30 days, etc.),

2) several lines for A/R 0-30 days- for multiple invoices? with zeros for other maturities (A/R 31-40 days, etc.)

etc.

I use simular calculated field for A/R balances 0-30 days, etc.

 

 

 

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans