For the complete documentation index, see llms.txt. This page is also available as Markdown.

Formatting with GroupbySum

Groupby takes individual rows and divides them into groups. Sum is an aggregate function that can be used with Groupby to summarize the table data. When you use the two together, the result is: once the rows are divided into groups, the Sum function returns just one value per group.

This example shows using GroupbySum with multiple prefixes, which set the format for each column sum in the listing.

Example:

GroupbySum example
<groupbysum prefix_0="Total Qty: " prefix_1="list: " prefix_2="Total Cost: $" format-number="#,###.##">quantity,listprice,totalprice</groupbysum>

Last updated

Was this helpful?