Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Filter Based on Another Field

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

  • Verified answer
    themrmystery Profile Picture
    themrmystery 529 on at
    RE: Filter Based on Another Field

    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;

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,137 Super User 2024 Season 2 on at
    RE: Filter Based on Another Field

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

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans