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 :
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 485

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,812 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 563 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 374 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 331 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans