Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Filtering/date problem

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello I'm in need of some help

I need to add a filter for one of the report that my company is using i'll to explain my problem:

"Debt Statement For Customers"

it is needed that the report filter would search in all the customers to a specific date and if it finds that the customer has 0.00 in Net Change and Balance it just "CurrReport.SKIP" this works prefectly for me, but for this i must add the following that in a addition to the above it would also check if the customer had any operations in the current year to our speficied date. If i add a filter on date it just gives me all values from the year start for example like this:

yearstart := CALCDATE('<-CY>', ToDate);

recordname.SETRANGE("Posting Date",yearstart,ToDate);

In reqeust page i use "Todate" to specify the end point.

I understand that i must somehow do a check in the filter so that it checks all the records (values), but does not filter them and if it finds any records (values) in the last year, even if there is all 0.00 it doesnt "CurrReport.SKIP".

Basicly if the values is 0.00, but there are record(values) in the last year, it doesnt not stop my report, but if there is values they are printed even for example 10 years go and not only from the last year.

Maybe someone could give me some hints were to start?

*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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,492 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans