← Tableau learning pathTableau · Module 6 of 10
Calculated fields
Create new fields with formulas.
📖 Key ideas
- Create calculated fields: Profit Ratio = SUM([Profit]) / SUM([Sales]).
- IF / CASE logic: IF [Sales] > 10000 THEN "High" ELSE "Low" END.
- String functions: UPPER, LEFT, CONTAINS; date functions: DATEDIFF, DATETRUNC.
- Aggregate vs row-level calculations behave differently.
- Parameters let users change values in calculations.
💡 Real-life example: Calculated fields are new columns written with a formula, like Excel formulas but for the whole view.
Calculated fieldNew field from a formula
ParameterUser-controlled value
DATEDIFFDifference between dates
Row-level calcComputed per data row