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 get sum of field(totalcostamountcur) from ProjEmplTable in Existing Report

(0) ShareShare
ReportReport
Posted on by

Hi Everyone,

i am having problem in adding other table data (ProjEmplTable) in Existing report.

I have an existing report name "Project Throughput report Summary" and i want to add sum of field

named TotalCostAmountCur  from ProjEmplTable.

Required :

1. I want to display sum of TotalCostAmountCur filtered/based on Proj id and LineProperty=Billable on my existing report.

Can someone guide me where i put the select code to get the Proj ID  and LineProperty=Billable based data from ProjEmplTable in existing report.

thank you in advance

please see the image for further details.

note :  i have modify existing x++ query to prepare my "Project Throughput report Summary

report-query-_2D00_-jpg.JPG

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi Maqbool Niazi,

    You can write the select statement with required condition, just above the insert by selecting particular projId (temporary table - ProjId).

  • Community Member Profile Picture
    on at

    thanks for your reply

    Actually in my existing report there are multiple Projects(Proj id). How it can be filtered ? can you please elaborate more ?

    thanks

  • Verified answer
    Community Member Profile Picture
    on at

    Before the insert you can write the condition like

    select sum(TotalCostAmountCur) from projEmplTrans where projEmplTrans.ProjId == YourTemptable.ProjId && projEmplTrans.LinePropertyId == "Billable";

    YourTemptable.TotalCostAmountCur = projEmplTrans.TotalCostAmountCur;

    //This below insert will the existing insert in your dp class..

    YourTemptable.insert();

  • Community Member Profile Picture
    on at

    okay let me try - thank you

  • Community Member Profile Picture
    on at

    TamilSelvan it Works - Thanks a lot dear :)

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
Joris dG Profile Picture

Joris dG 5

#2
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans