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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Get Sum of Amount in Sub Total in Electronic Report Format

(0) ShareShare
ReportReport
Posted on by 60

Hi Friends

I want to show the Sum of Line Item Amount in Summary as Sub Total. I am using the Electronic Report Format using Excel File Template.

Please guide me :

pastedimage1596304946104v1.png

pastedimage1596305296407v2.png

I want to show the SUM of Cell<InvoiceLines_Amount_Value> = @.LineBase.LineAmountInclTax   in Cell<TotalsShort_SalesSubtotalAmount_Value> = model.InvoiceBase.AmountMST+model.InvoiceBase.SumTaxMST

Thanks

I have the same question (0)
  • Vamsi Pranith Profile Picture
    684 on at

    Are you using configurable business document to print this excel report? If so, you need to go to configurable business document workspace and select the cell and map it with the formula.

    If not, you will need to create a new cell in the format and bind/map with this formula that you have here.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello Arsalan,

    I would recommend that you have a look at the 'project invoice (excel)' configuration.

    There you can find a number of examples for the different invoice layouts how subtotals and totals are calculated.

    What they use there is that they have additional calculated fields in the mapping section that can be found on the right-hand side of your screenprint that is not shared. Those calculations are then bound to the different ranges/cells in your Excel document that you shared in your screenprint above.

    Best regards,

    Ludwig

  • Arsalan Muhammad Amin Khan Profile Picture
    60 on at

    Hi @Vamsi

    First of all, I am thankful for your kind reply.

    Actually, I want to show the SUM of Cell<InvoiceLines_Amount_Value> in Cell<TotalsShort_SalesSubtotalAmount_Value>

    This is not working model.InvoiceBase.AmountMST+model.InvoiceBase.SumTaxMST

    So This is the Cell already in Format Cell<TotalsShort_SalesSubtotalAmount_Value>

    But getting the Sum of Cell<InvoiceLines_Amount_Value> and show in Cell<TotalsShort_SalesSubtotalAmount_Value> is Tricky.

    Thanks

  • Arsalan Muhammad Amin Khan Profile Picture
    60 on at

    Hi Dr.Ludwig

    Would you let me know how to use the SUMIF Function in this scenario ?

    Let me know SUMIF Function is supported at FORMAT MAPPING level ?

    Thanks

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Arsalan,

    The Sumif does not work in the model mapping.

    It works only in the Excel configuration.

    Please see the following site for more details:

    docs.microsoft.com/.../er-functions-datacollection-sumif

    Please try using it there.

    Best regards,

    Ludwig

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 608

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 591 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 430

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans