Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

how can i get last mounth

(0) ShareShare
ReportReport
Posted on by 2,030

how can i retrieve (select) lines from table which have last inserted in last month (i don't know the month which insert on it but i need last insert with month inserted in)

*This post is locked for comments

  • Aamir Shakeel Profile Picture
    Aamir Shakeel 190 on at
    RE: how can i get last mounth

    You can use the fiscal period to determine the last month transaction. Base on the current fiscal period you can determine last fiscal period date range and use that range to find out the records which were posted in that period. I

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: how can i get last mounth

    Obviously your table should also have some field that indicates when it's inserted. Without such field your requirement is impossible to fulfill. If you don't have such field, you can enable the CreatedDateTime property on the table. Then the creation datetime of a record is saved.

  • Verified answer
    Satish Panwar Profile Picture
    Satish Panwar 14,649 on at
    RE: how can i get last mounth

    Hi Mohammed,

    Please see link below, use prevmth and other functions to create date range and use them in select statement.

    http://imdaxershiv.blogspot.com/2015/04/date-functions-in-ax-2012.html?m=1

    Thanks,

    Satish Panwar

    Please take time to click yes against the answer that help guide you in right direction.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans