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

Using Period Formula in AL to Filter Record

(0) ShareShare
ReportReport
Posted on by 485

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,613 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
    102,054 Super User 2026 Season 1 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

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,687 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,041 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 974 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans