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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to get SUM of particular field's values in Electronic Reporting?

(0) ShareShare
ReportReport
Posted on by 60

Hello All, 

I am using Electronic Reporting to generate an Output File comprising of Vendor Payments.  Info being gathered from Vendor Payment Journals and lines.  LedgerJournalTrans being used as main datasource for all the Lines/Details records in the Text Output file.   Below is a snippet of the Format Designer and Model Mapping : 

pastedimage1618471186204v1.png

LedgerJournalTrans Record List, and an Enumeration of that Record List is what is comprising of my recursive DetailRecords Sequence in the file.    However, in the Trailer Record, I need to sum up the values of all the Debit Payments from the Lines.   Sum of the values in AmountCurDebit column from the entire record list returned from LedgerJournalTrans.   

I am trying to use SUMIF() ER Function, but it is asking as arguments...some Collected data key name .   On none of the Sequence control or other String controls did I find this Collected Data Key Name property.  So not sure what it is.   

What exactly should I be passing to the SUMIF() function to get my total?

Thank you. 

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,681 Most Valuable Professional on at
    RE: How to get SUM of particular field's values in Electronic Reporting?

    You can use the SUM() function in a "Group by" element. You're not forced to choose any fields to group by, therefore the aggregation will include all records.

    You can configure the collector data key name in properties of a sequence.

    You'll see both approaches in Example: Defer the execution of a sequence element in an ER format.

  • RaghuD3FO Profile Picture
    60 on at
    RE: How to get SUM of particular field's values in Electronic Reporting?

    Thank you Martin.  That is very helpful.  I was able to create a Group By on the Record List and inside the Edit Group By window was able to do a SUM function on the specific field.  

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 563 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans