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 :
Microsoft Dynamics AX (Archived)

How to make customer aging report with SQL

(0) ShareShare
ReportReport
Posted on by 363

I'm using AX2012 and need to make query for customer aging report with SQL.

If anyone already have the query or can give information, please give it to me.

Thanks.

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    Hi Daniel,

    Why do you need it in SQL? There are out of the box configurable reports available. You are not telling what information should come out of the query. can you also tell in detail what you expect from such query?

  • Lifeisbelieveful Profile Picture
    363 on at

    Hi Andrew,

    I mean I want to see the result of customer aging report in SQL. If there are many ways to make the report with sql query, I just want to know standard report query.

  • André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    Hi Daniel,

    If you follow the logic used by Microsoft to create their report, you might be able to compose an SQL query. But, you haven't answered why you need an SQL statement... What would be the purpose?

  • Verified answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello Daniel,

    Why do you need to do that?

    Doing that seems to be quite complex. See e.g. the notes that you can find here:

    stoneridgesoftware.com/modifying-the-ax-2012-customer-or-vendor-aging-reports

    Best regards,

    Ludwig

  • Lifeisbelieveful Profile Picture
    363 on at

    Thanks Andre and Ludwig,

    The purpose of my need for sql query to make customer aging report is to use for Power BI.

    Our Power BI project will use the query to bring the data same as the report from AX.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Like previous posters said, you would need to "reverse engineer" this complex report, by looking how it's designed. You can also capture trace and use Trace parser to see the underlying SQL queries.

    Or, you might export the AX SSRS report to Excel and use that Excel as a data source in Power BI.

  • alzelus Profile Picture
    4 on at

    Hi have you been able to figure out?
    I’m Trying to do the same thing.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans