Calculated columns
Calculated columns allow you to define custom formulas to generate or transform data using logical, mathematical, statistical, or text-based operations. These formulas are applied after other generators like mockers or AI synthesis, ensuring that all base data is available before the calculation is performed.
When to use
To clean or reformat data (e.g. trimming, date formatting)
To apply conditional logic (e.g. gender-based name generation)
To compute derived values from other columns (e.g. sales + tax)
To categorize or flag data based on specific criteria
When not to use
For straightforward mock data generation without dependencies
When no conditional logic is needed
If the column is already correctly populated or handled by simpler generators
Interactive guide: How to apply a calculated column formula
Follow the interactive guide below to apply a calculated column formula.
Calculated columns follow a structured expression syntax combining functions, column references, constants, and mockers.
Example formulas
[Total Sales] + ([Total Sales] * [Tax Rate])
IF([Gender] = 'M', MOCK_FIRST_NAME, IF([Gender] = 'F', MOCK_FIRST_NAME_FEMALE, 'nothing'))
Key syntax rules
Column reference:
[ColumnName]
for same-table columnsFunctions:
IF()
,AND()
,DATE()
, etc.Mockers: Use
MOCK_FIRST_NAME
, orMOCK_CONSISTENT_FIRST_NAME
for consistent mappingOperators:
+
,-
,*
,/
,=
,<>
,<
,>
Constants: Use strings
"text"
, numbers100
, or datesDATE(2020, 12, 31)
Avoid: Column names starting with
_
, which will cause formula errors
Using mockers in formulas
To insert mock data dynamically within formulas:
Type
MOCK_
and choose from the autosuggest listUse names like
MOCK_FIRST_NAME
,MOCK_COMPANY_EMAIL
For consistent mapping, use
MOCK_CONSISTENT_FIRST_NAME
, etc.
Supported data types
Calculated Columns
Categorical, Discrete, Continuous
Calculated columns give you full control over how synthetic values are created or transformed. They’re ideal for applying custom logic while retaining flexibility in the data generation process.
Last updated
Was this helpful?