Hi @tnad0073 ,
In you snippet you return obj[val]
in the getSum
function, while val
is the spend
parameter of the data. Type D
doesn’t have the spend
parameter, hence undefined
is returned. You need to set this parameter in the getSum function, here’s the example - Code Snippet
Please, check this thread to see how to generate totals for specific column: Tree Table - SUM or TOTALS in Sections