Meriellen
Meriellen

Reputation: 1

Total Sum of each value column on sap.ui.table

I need to show the total sum of each column that have values on it. But I only can use the sap.ui.table for this.

I look for so much in internet but only found old results with deprecated functions.

Someone can help me, please?

The example that I need to reproduce: image: total sum example

Upvotes: 0

Views: 2609

Answers (1)

BCH.
BCH.

Reputation: 11

In case you are using Fiori Elements (e.g. Analytical List Page), you can use:

@DefaultAggregation: #SUM 

on the amount field exposed through the consumption CDS View.

It should automatically show the total sum of the column in the footer of the table.

Upvotes: 1

Related Questions