Hi Hung,
Yes, you can.
Create a Structure with TypeName and Total attributes.
Create an Aggregate and use a group by on Type:
- right click on the column
- choose Group by <column name> (in this case, Ty´pe)
- right click on the Total column
- choose Sum.
This Aggregate will return the Sum of Total column to each Type.
Iterate over the result and put it in a list of the structure you have created. While iterating, gather the total values in order to have the total for all types. When its over, add another structure on the list, but, now, with TypeName "Total" and the sum of the Totals.
Put the list inside a List Records.
Hope this could help.
Best Regards.