Select to view content in your preferred language

Survey123 Report Template: sum of sums

389
1
02-01-2024 04:26 AM
AnLizeGCC
Occasional Contributor

Hello the Community!

I'm working on a Survey123 process involving the inspection of properties in order to allocate grants. In my data model, I have one Application, under which for 10 categories one would find different work items with associated costs. So Application > Repeat "ApplicationCategory" > nested repeat "ApplicationCategoryCosts"

In a report template, I am trying to summarize all those costs (for one application, so working on a single record). I can display a table with the totals per category:

 

Category

 

Applicants Quotation

Costs

Inspectors Allocated Costs

Applicants Invoiced

Costs

Inspectors Final

Costs

${#ApplicationCategory}${#ApplicationCategoryCosts | stats:"sum,QuotationCost,CatQuotationCosts; sum, AllocatedCost,CatAllocatedCosts ; sum,InvoicedCost,CatInvoicedCosts ; sum,FinalCost,CatFinalCosts "}Category ${ ApplicationCategory.CategoryNo}

€${CatQuotationCosts}

€${CatAllocatedCosts}

€${CatInvoicedCosts}

€${CatFinalCosts}${/}${/}

This displays well a nice table with all summed costs per categories:

AnLize_0-1706789936463.png

Where I am hitting a wall, is trying to display a grand total row. So for the 4 cost column, sum up the category sums. Any idea how I could achieve this?

Thanks for your help!

Tags (4)
1 Reply
az243
by
New Contributor

Any luck with this?

0 Kudos