Initializing help system before first use

# Built-in Column Calculation

Datagrid columns can show a calculation at the foot of each column.
The `bottom-calc` attribute can be added inside a `<vdl-datagrid-column>` entity to add a calculation to the foot of the column. You can supply a custom function for the calculation or one of the following values:

- avg - displays the average of the column numerical data
- max - displays highest numerical data in the column
- min - displays the lowest numerical data in the column
- sum - displays the sum of the columns numerical data
- concat - concatenates all column data
- count - displays the number of data entries in the column

    <vdl-datagrid>
    	<vdl-datagrid-column bottom-calc="avg"></vdl-datagrid-column>
    </vdl-datagrid>

To define a custom function, you must use the following variables:

Variable | Description
--- | ---
values | Array of column values `(string|boolean|number)`
data | All table data `string`
calcParams | Parameters passed from the column definition object `Array.<(string|boolean|number)>`

Parent Topic Working with Datagrid

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.