Table of Contents

Rollup

Block Group: Table Operations
Icon:Rollup block icon

The Rollup block returns a new table that contains one row for each date and time interval in the input table. The output table contains one column for the date and time interval and one column for the value.

For information on using dataflow blocks, see Dataflow.

For answers to some common questions about working with tables, see Tables.


Input/Output Properties

The following properties of the Rollup block can take input and give output.

input receives the table in which you want to roll up values.

interval specifies the duration of the range to roll up. The default is Twenty minutes. interval can be one of the following:

dateColumn specifies the name of the table column that holds the dates.

valueColumn specifies the name of the table column that holds the values to be rolled up. To roll up several columns with the same method, enter their names separated by commas (for example v1,v2).

valueRollup specifies the type of rollup to use. The default is Average. The value of the valueRollup property can be one of the following:

To use a different rollup method or output column name for each value column, use the Advanced Rollup block.

roundTime specifies whether to force all intervals to start at a round number.

columnFilterType specifies which columns are rolled up. The default is Whitelist.

The resulting table contains all the columns from the input table. Columns that are not rolled up are not removed.

persistTs specifies whether to keep the time zone offset of the input timestamps in the output. If TRUE and the date strings include a time zone offset (for example 2015-07-19T08:00:00.000-07:00), the output dates use the same offset instead of the local time zone.

The input table is sorted by dateColumn before rolling up. Rows whose date cannot be parsed are skipped.


Output Property

The following property of the Rollup block can give output but cannot take input.

output returns the rolled up table.


Example

The following image shows an example of the Rollup block. In this example, the output table contains the sum value for each week.

Rollup block example