Probably the most common use of calculation is to highlight values. Let's create a calculation that returns different text values depending on sales:
- Open Tableau Desktop and click on the Sample - Superstore saved Data Source.
- Create a new Calculated Field and name it Sales Highlight.
- Write the following formula and check that the calculation is valid: if SUM([Sales]) > 300000 then "Great" ELSEIF SUM([Sales]) < 50000 then "Bad" else "Average" END.