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)

Problems with aggregate functions in a report using a temporary table

(0) ShareShare
ReportReport
Posted on by

Good morning!

I am using AX 2009 and I have a question. Is it possible, for a report whose DataSource is a temporary table, to show the sum of the prices of the items grouped by their Id?

Let me explain it better. I needed to use a temporary table in order to keep the informations of three queries (as I have seen, it is not possible to do union queries that use inner join in AX). Some of these informations are the Items Id and their sale values.

I needed the report to show me the sum of the values of each sale of the items (for example: let's suppose that we have 2 sales of the item #1, whose value is $3,000.00, and 1 sale of the item #2, whose value is $2,500.00; the report would show: "item #1 - $6,000.00; item #2 - $2,500.00"), but the report is just showing the total sum of all items (using the previous example, it doesn't show the ItemId and shows the value $8,500.00).

I duplicated this report, but using a non-temporary table (which, obviously, does not have all the information I need) and it showed the sum of each item.

I have added a sum field for the sales prices in the report DataSource temporary table and added the ItemId field under the GroupBy node. Should I have proceeded in a different way?

Thank you in advance,

Luiz Bezerra

*This post is locked for comments

I have the same question (0)

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#1
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#1
Pratik Bhosle Profile Picture

Pratik Bhosle 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans