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

Using Period Formula in AL to Filter Record

(0) ShareShare
ReportReport
Posted on by 481

Say I wanted to filter Vendors record by the first accounting period of fiscal year 2022 (01/01/22..01/31/22). That would be p1.

How would I filter this record using AL? 

I have the same question (0)
  • Suggested answer
    MahGah Profile Picture
    15,529 on at

    Hi

    Please see below video specially around 7:24 then below link for more data 

    https://www.youtube.com/watch?v=ldSSu-VUJ60

    robertostefanettinavblog.com/.../

  • Verified answer
    YUN ZHU Profile Picture
    95,331 Super User 2025 Season 2 on at

    Hi, you can use Date virtual table (2000000007)

    https://yzhums.com/14819/

    pastedimage1657072841723v1.png

    Another good way:

    Using the Date Method to retrieve only the Day, Month, and Year Data in Queries [Group by Year-month]

    https://yzhums.com/14547/

    Hope this helps as well.

    Thanks.

    ZHU

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 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans