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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to use SETFILTER with OR logical operation.

(0) ShareShare
ReportReport
Posted on by 39

I want to use filter on two fields of the same table with one value.

There are two columns named as posting date and document date and let's suppose I want to get rows having either posting date =TODAY OR document date =Today.

When I use SETFILTER two times it gives me rows having posting date and document date=TODAY.

BUT I want to get all rows whose posting date is TODAY may be document date is different and all rows whose Document date is TODAY may be posting date has different value.

I hope its enough to understand the scenario.

May be there is no possibilities to use OR with SETFILTER but if you Know another way to solve it then feel free to share with me I'll really appreciate that.

Thank you.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    HoangNam Profile Picture
    322 on at

    You can use FILTERGROUP(-1).

    You can reference Page 658 Approval Entries which use MarkAllWhereUserisApproverOrSender method of Table 454 Approval Entry.

    CrossFilter.png

  • Suggested answer
    Suresh Kulla Profile Picture
    50,280 Super User 2026 Season 1 on at

    Unfortunately you cannot do that with one single fitler, you need to filter on one field get the records and store in temporary or mark them, then again reset and apply the next filter and insert those into temporary/mark.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May 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