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. 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.

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

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

columnFilterType - specifies which columns will be processed.

Resulting tables contains all the columns from the input table. It doesn't cut off columns that are not processed.


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