4 Replies Latest reply on Dec 22, 2016 7:32 AM by Jeffrey Kritzman

    Calculated Field Error

    Anthony Apollis

      I am following exercises on Lynda.com. Course i'm busy with is: Creating Interactive Dashboards in tableau, Nate Mardad.

      I'm getting an error with this code:

       

      IF [Country Name] = "Argentina" THEN "Latin America"

      ELSEIF [Country Name] ="Australia" THEN "Oceania"

      ELSEIF [Country Name] ="Brazil" THEN "Latin America"

      ELSEIF [Country Name] ="China" THEN "Asia"

      ELSEIF [Country Name] ="France" THEN "Europe"

      ELSEIF [Country Name] ="Germany" THEN "Europe"

      ELSEIF [Country Name] ="India" THEN "Asia"

      ELSEIF [Country Name] ="Indonesia" THEN "Oceania"

      ELSEIF [Country Name] ="Italy" THEN "Europe"

      ELSEIF [Country Name] ="Japan" THEN "Asia"

      ELSEIF [Country Name] ="Korea, Republic of" THEN "Asia"

      ELSEIF [Country Name] ="Mexico" THEN "Latin America"

      ELSEIF [Country Name] ="Netherlands" THEN "Europe"

      ELSEIF [Country Name] ="Russian Federation" THEN "Asia"

      ELSEIF [Country Name] ="Saudi Arabia" THEN "Middle East"

      ELSEIF [Country Name] ="Spain" THEN "Europe"

      ELSEIF [Country Name] ="Switzerland" THEN "Europe"

      ELSEIF [Country Name] ="Turkey" THEN "Middle East"

      ELSEIF [Country Name] ="United Kingdom" THEN "Europe"

      ELSEIF [Country Name] ="United States" THEN "North America"

        END

       

      Please assist?