Create a Simple Calculated Field - Tableau
help.tableau.com › current › proStep 1: Create the calculated field. In a worksheet in Tableau, select Analysis > Create Calculated Field. In the Calculation Editor that opens, give the calculated field a name. In this example, the calculated field is called Profit Ratio. Step 2: Enter a formula. In the Calculation Editor, enter a formula. This example uses the following formula: SUM([Profit])/SUM([Sales]) Formulas use a combination of functions, fields, and operators.
Get Started with Calculations in Tableau - Tableau
help.tableau.com › current › proIn Tableau, select Analysis > Create Calculated Field. In the Calculation Editor that opens, do the following: Enter a name for the calculated field. In this example, the field is called, Discount Ratio. Enter a formula. This example uses the following formula: IIF([Sales] !=0, [Discount]/[Sales],0) This formula checks if sales is not equal to zero.