web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to use Count ,Avg,sum,Max,Min field in AOT query.

(0) ShareShare
ReportReport
Posted on by 875

Hi Friends ,

Any one can tell me  How to use Count ,Avg,sum,Max,Min field in  AOT query.

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    What's the problem? Your picture already shows how to create such fields, so you must mean something else, but I don't know what it is.

  • Vikas_AX_Blogs Profile Picture
    875 on at

    Hi Martin,

    After add count filed in query where i can use that is my question .

  • Verified answer
    Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    You'll access it in exactly the same way as if it was a normal field without any aggregation function applied. You can show it in a report, read it in X++ code and so on.

  • Vikas_AX_Blogs Profile Picture
    875 on at

    Thanks Martin

  • Ann2015 Profile Picture
    1,128 on at

    How do I refer to the sum or count fields in a report. I tried adding it to the Design and getting errors.

  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    Ann2015, if you problem is related to this thread, i.e. it's about an AOT query, test whether your query works before trying to use in the report.

    If your question isn't about AOT queries, please create a new thread and explain your problem in detail there. You'll surely agree with me that we can't know what errors you're getting unless you tell us about them.

  • Suggested answer
    Hossein.K Profile Picture
    6,648 on at

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans