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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

How to filter table record and data item to be in a month range?

(0) ShareShare
ReportReport
Posted on by 481

I want to grab posted invoices based on its date. For example, I only want to grab invoices within the range of May 2022 (2022/05/01 - 2022/05/31).
How would I do this using SetRange/SetFilter on a table record?
How would I do this using a Dataitem that already has a DataItemTableView and DataItemLink property (I'm hoping I can add onto these properties already set)?
This is the current properties I have on my data item:
30.PNG

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    Hi jdrco ,

    Please use below line of code.

    DataItemTableView = SORTING("Bill-to Customer No.") where("Posting Date" = filter(20220501 .. 20220531));
    Hope it will help you.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans