Mean of a column, used as the footer

Hi everyone,

I am trying to show the mean of m columns in a table in the footer of each column. I used to format shown in mean but it is not working correctly. I am using an expression binding to "title" in the footer section of props.

mean({this.props.data}, 'CycleTime')

Is the source data for your table in dataset format? (That syntax for mean() requires it.)

its a query.. return format is dataset.

If you hover over the "Error_ExpressionEval" at the bottom, what does it show?

"Mean should only be called with one array argument"

Does the props.data come from another custom property or is it bound at that level?

Maybe try creating a custom property on the view and making sure that is set for dataset, and the bind the table to that custom property. Then try the mean on that custom property.

1 Like

That test immediately identified the issue, thanks @bschroeder. My data has a transform that adds a background color style to each object.

image