Automated migration results
When you import a workflow containing an Alteryx Formula tool, Prophecy generates a Reformat gem with equivalent functionality. Prophecy attempts to translate each Alteryx expression into an equivalent SQL expression. Most common expressions, such asIF/THEN logic, concatenation, type conversion, and arithmetic, will migrate cleanly.
During migration:
- Column creation, overwrite operations, and basic functions (such as math, string, date, conditionals) are converted when an equivalent exists. (If no equivalent exists, Prophecy displays an error in the imported pipeline; you will need to rewrite logic after import.)
- Column references and names are preserved during migration.
Manually replicate in Prophecy
To manually recreate an Alteryx Formula tool:- Add a Reformat gem to your pipeline.
- Use the visual expression builder to create or modify columns using expressions.
- Preview results in the Data Explorer to validate output types and values. (You can also preview results using the Data button in the gem itself.)
Configuration options
In Alteryx, configuration includes:- Adding columns to create or update.
- Writing formulas in the Alteryx expression language, using IF/THEN/ELSE logic, function libraries, and specialized functions such as REGEX.
- Choosing return types and ensuring expressions match schema requirements.
- Writing SQL expressions that define the new or updated values, using built-in SQL functions for string, numeric, date, and conditional logic.
- Viewing derived columns in the Reformat gem’s list of output fields.
- Implementing regular expressions through SQL functions such as
regexp_replaceorregexp_extract.
Output behavior
The Alteryx Formula tool outputs transformed records with new or modified fields, executing operations row by row within Designer or on an Alteryx Server. The Prophecy Reformat gem outputs a dataset where transformations are applied using SQL expressions at execution time. Values are recalculated by the SQL Warehouse as part of the SELECT clause generated by the gem.Known caveats
- Alteryx REGEX functions may not be mapped directly; SQL regex equivalents may require rewritten patterns.
- Conditional logic is written using SQL
CASE WHENrather than Alteryx’sIF/THEN. - Alteryx DateTime functions may require translation to SQL-standard date functions.
- Some Alteryx-specific functions lack direct SQL counterparts, and their logic may need to be rewritten after import.
- Alteryx often auto-casts between types; in Prophecy, some expressions may require explicit casts.
- Multi-field formulas in Alteryx may require multiple expressions or gems in Prophecy.
- Complex nested conditional expressions may require manual review.
Examples
Simple Alteryx Formula tool example
Goal: Create afull_name column by concatenating first and last names, and assign “Unknown” when values are null.
Alteryx formula:
IF IsNull([FirstName]) OR IsNull([LastName]) THEN "Unknown" ELSE [FirstName] + " " + [LastName] ENDIF
Simple Prophecy Reformat gem example
Goal: Perform the same transformation in Prophecy.-
In the Reformat gem, define a new column:
CASE WHEN first_name IS NULL OR last_name IS NULL THEN 'Unknown' ELSE first_name || ' ' || last_name END - Add input columns to Target Column so that these appear in the output.
-
Preview in the Data Explorer to validate the new
full_namefield.
More complex Alteryx Formula tool example
Goal: Compute a debt-to-income ratio (dti_ratio) and assign a simple risk label (risk_band).
Alteryx formulas:

