This gem runs in .
Prerequisites
Addprophecy_basics package version 1.0.11 or higher to your project.
Overview
The Tile gem supports these tiling methods:- Equal Sum
- Equal Records
- Smart Tile
- Unique Value
- Manual
- Tile number, which stores the tile assigned to the record
- Tile sequence number, which stores the record’s position within the tile
Parameters
Equal Sum
Use Equal Sum to assign tiles so each tile has approximately the same total from the selected sum field based on the row order.Parameters
Order rows within each group
Use Order By Columns to select the columns used to order rows. Use Sort strategy to choose one of the following options:- ascending nulls first
- ascending nulls last
- descending nulls first
- descending nulls last
Example
Let’s say you have the following dataset and set Number of Tiles to2.
Result
30.
Equal Records
Use Equal Records to divide input records into the specified number of tiles so each tile contains the same number of records as closely as possible.Parameters
Example
Let’s say you have the following dataset and set Number of Tiles to2.
Result
Smart Tile
Use Smart Tile to create tiles based on the standard deviation of values in a numeric field. The assigned tile indicates whether the value falls within the average range, above the average, or below the average.Parameters
Example
Let’s say you use Price as the tile numeric column and enable Output name column.-1 band and the output includes the descriptive label Below Average.
Unique Value
Use Unique Value to assign a unique tile to each unique value in one or more selected fields. If you select multiple fields, the tile is based on the combination of values.Parameters
Example
Let’s say you have the following dataset and select Category as the unique column.Result
Manual
Use Manual to define tile cutoffs yourself.Parameters
Example
Let’s say you have the following dataset, select Score as the tile numeric column, and enter the cutoffs50,80.

