KNOWLEDGE BASE

How to Change The Shape of The Graph Depending On The Value


Published: 19 Nov 2021
Last Modified Date: 19 Nov 2021

Question

How to change the shape of the graph depending on the value.
User-added image

Environment

Tableau Desktop

Answer

Procedure
  1.  Connect to Sample - Superstore.
  2.  While right-clicking drag and drop [Order Date] to the Columns and select [MONTH(Order Date)].
  3.  Change the graph type to Shape.
  4.  Create a Calculation field named "Sales Results" with the following calculations.
               
               IF SUM([Sales])>= 150000
               THEN "GOOD"
               ELSEIF 100000 <= SUM([Sales]) and SUM([Sales])< 150000
               THEN "NORMAL"
               ELSE "BAD"
               END
    
    
  5. Drag and drop [Sales Results] to the Shape.
  6. In Edit Shape dialog, select the item and select the shape palette appropriately.
Did this article resolve the issue?