Skip to main content

Notifications

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

  • 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 60,064 Super User 2025 Season 1 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

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…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,868 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans