web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Filter Based on Another Field

(0) ShareShare
ReportReport
Posted on by 529

Is it possible to execute a filter based on another field?

For example, on a report or list, that allows to filter based on both:

"Qty on Sales Orders" and "Qty in Pick Zone"

Can I enter a filter for one of the two that states:

For filter "Qty on Sales Orders" can I enter something like: > "Qty in Pick Zone"

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mohana Yadav Profile Picture
    61,204 Super User 2026 Season 1 on at

    You can do it on Code level but not on "ReqFilterFields" level.

  • Verified answer
    themrmystery Profile Picture
    529 on at

    Yes, that appears to be the answer. Pretty new to this, but ended up with the following code, which appears to do what I want. Added a Boolean checkbox for the report:

    CALCFIELDS(Quantity,"Qty in Pick Zone","Qty on Sales Order");

    IF TopPriority = TRUE

    THEN BEGIN

     IF "Qty in Pick Zone" < "Qty on Sales Order" - QtyFilterbyCust THEN

     Replenishmt.Replenish("Bin Content",QtyFilterbyCust);

     END

    ELSE BEGIN

     IF "Qty in Pick Zone" < "Min. Qty." + "Qty on Sales Order" - QtyFilterbyCust THEN

     Replenishmt.Replenish("Bin Content",QtyFilterbyCust);

     END;

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans