Purpose
Use this function to:
- Create a unique primary key on an existing table of less than 1 million rows
- Identify and select specific records by row number
- Create a record key for use in preparing source data for modelling
Return Value
Property | Value |
---|
FieldType | Integer |
FieldSize | Low / Med / High |
DataType | Discrete |
DataSize | Integer |
Example Return Value: 1.....N where N = number of records in the table.

Parameters
Parameter | JSON | Description |
---|
Table | “targetTable”: “MyTableName” | The target table on which the new field will be created |
Filter | “dataset”: {DataSet_JSON} | Optional. If a filter is applied, records not in the filter recordset will be returned as null. |
Function | "function":"DiscreteIntegerSequence" | DiscreteIntegerSequence |
JSON Sample
{
"method": "BuildBakedField",
"project": "Model1",
"targetTable": "worldcities",
"overwrite": true,
"name": "KeyField",
"function": "discreteintegersequence"
}
Usage Notes
See Also:
Example
Example | Details |
---|
Description | Create a discrete key field to give each worldcity an ID |
Input | - Table: = [worldcities]
- Filter: = [No Filter]
- Function: = DiscreteIntegerSequence
- Name: =KeyField
|
Sample |  |