Formula
Workshop - Formula
The Formula step in Pentaho Data Integration (PDI) is a powerful transformation component that allows you to create new fields or modify existing ones using mathematical expressions, string manipulations, and logical operations.
It provides a JavaScript-like syntax for writing formulas that can perform calculations, concatenate text, apply conditional logic, and execute various built-in functions on your data rows. The Formula step is particularly useful for data cleansing, creating calculated fields, performing date/time operations, and implementing business rules within your data transformation workflows.


Workflow 1
Simple formula: result = [a] + [b]

Workflow 2
Logic: result = IF([booking_type]=”R”;[b]-[a])

Last updated
Was this helpful?
