Data Preparation in Alteryx
Deanna Sanchez
Alteryx ACE and Owner, Nova Geographica LLC
Organized by category and ready to use!
Uses the same formulas and syntax as the Filter tool custom filter.
PadLeft adds leading zeroes to string fields.
PadLeft(String, len, char)
PadLeft([Product ID], 8, '0')
Business Case:
The Replace formula replaces specific characters with string text.
Replace(String, Target, Replacement)
Replace([Business Name], 'Co.', 'Company')
Business Case:
The Contains formula outputs a 0 or -1 and can be used to flag if a field contains criteria.
Contains(String, Target)
Contains([Stage], 'Final')
Business Case:
Length-based begins with a count of 1
Left([Field], 3)
Position-based begins with a count of 0
GetWord([Field], 1)
Left([Field], 3)
results in "ALT".
Left([Field], 3)
results in "ALT".
Left([Field], 3)
results in "ALT".
GetWord([Field], 1)
results in "Preparation"
GetWord([Field], 1)
results in "Preparation".
GetWord([Field], 1)
results in "Preparation".
GetWord([Field], 1)
results in "Preparation".
Numeric formulas enable you to perform mathematical operations such as:
Business Case:
([Quarterly Sales] / [Total Sales])*100
Fixed decimal data types have options to modify the Precision and Scale of the output.
Precision is the length of characters for the entire output number.
Precision is the length of characters for the entire output number.
Precision is the length of characters for the entire output number.
Precision is the length of characters for the entire output number.
Precision is the length of characters for the entire output number.
Precision is the length of characters for the entire output number.
Scale is the number of characters after the decimal point.
Scale is the number of characters after the decimal point.
Updating existing fields
Creating new fields
Data Preparation in Alteryx