3 Replies Latest reply on Jan 23, 2018 10:39 PM by Karthikeyan Vivekananthan

    Calculated Field - Basic - HELP PLEASE!!

    Monica Erazo

      Hi, I am new to tableau, so this is probably a very basic question.  I am trying to create a new field from a YES/NO question. I build an expression, but it is showing me some errors.

      Could you please help? here is the expression I am using on Tableau 10:

      Beer drinkers

      Role:

      Continuous Measure

      Type:

      Calculated Field

      Default aggregation:

      Sum

      Status:

      Invalid

      Formula

      IF[2 1. (Beer) In the past seven days, how many servings of the following alcohol beverages did you drink, both at home and away f]="YES" THEN "DRINKER" ELSE "NON-DRINKER" END