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

Notifications

Announcements

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
TAHER_El_Mehdi Profile Picture

TAHER_El_Mehdi 3

#2
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#2
Mea_ Profile Picture

Mea_ 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans