Dataview sum of all prices in table

totalPrice["values"] grabs the array and its values, correct!

[totalPrice.length] grabs the number of rows in our totalPrice array. Then it appends a predetermined value to the bottom of the totalPrice array

In our case its the predetermined values are “Total”, “”, “”, and the sum of all price fields.

1 Like