Automated migration results
When Import encounters an Alteryx Imputation tool, it reconstructs imputation logic using a combination of Prophecy gems:- For simple replacements (such as replace null with
"Unknown"or0), Prophecy generates a Reformat gem that contains the appropriateCASE WHENexpressions. - For aggregate-based replacements (such as replace null with
mean,median, ormode), Prophecy:- Uses a Reformat gem that computes the required aggregate values (such as
mean(column)). - Joins the results back to the dataset.
- Uses a Reformat gem to perform the final replacement using a
CASE WHENexpression.
- Uses a Reformat gem that computes the required aggregate values (such as
Manually replicate in Prophecy
-
To manually reproduce Alteryx’s imputation behavior in Prophecy:
-
For simple replacements
Add a Reformat gem with
CASEexpression along the lines of:CASE WHEN <column> IS NULL THEN <replacement> ELSE <column> END. -
For aggregate-based imputations
- Add an Aggregate gem to compute the required statistic (such as
avg,min, ormax). - Join the Aggregate gem back to the main dataset using a Join gem with no join keys.
- Use a Reformat gem to replace null values with the computed aggregate, using a
CASEexpression along the lines of:CASE WHEN <column> IS NULL THEN <aggregated_column> ELSE <column> END.
- Add an Aggregate gem to compute the required statistic (such as
- Preview results in the Data Explorer to verify that imputed values are applied correctly.
-
For simple replacements
Add a Reformat gem with
Configuration options
In Alteryx, configuration includes:- Selecting columns to impute.
- Choosing the replacement rule (a fixed value,
average,median, ormode).
- (If necessary) configuring the Aggregate gem with the appropriate metrics and using the Join gem to merge aggregate results with the main dataset.
- Writing a
CASE WHENexpression in the Reformat gem to perform null replacement either as a value or as the result of the aggregation.
Output behavior
The Alteryx Imputation tool outputs a cleaned dataset with selected values replaced according to the user-defined rules. All operations occur inside the Designer engine or on an Alteryx Server. In Prophecy, the Reformat and Join gems generate SQL queries that perform imputation at execution time in the SQL Warehouse.Known caveats
- While Alteryx uses one tool for aggregate imputations, Prophecy adds additional gems to the pipeline.
- Non-null replacements (such as replacing
"N/A"with a value) must be written using conditional expressions.
Example
Alteryx Imputation tool example
Goal: Replace null values in thesales column with the mean for the column.
Steps:
- Add Imputation tool to canvas.
-
Select the
salescolumn. - Select Null(s) for Incoming value to replace.
- Select Average for Replace with value. Alteryx computes the mean internally and overwrites null entries during the Imputation step.
Prophecy equivalent (Reformat + Aggregate + Join)
Goal: Replicate null-to-mean replacement. Steps:- Add an Aggregate gem to the canvas and create a column that computes the mean of
sales, such assales_avg. - Add a Join gem to the canvas of type Join.
- Connect the dataset and Aggregate gem to the Join gem.
- Add a Reformat gem and define a conditional expression for
salessuch that ifsalesis null, usesales_avg; otherwise, retain original value. - Confirm output using the Data Explorer.

