5 Replies Latest reply on Jun 27, 2018 3:56 AM by Samane Ramezani

    How to write an IF statement with a calculation inside?

    Kate Abercrombie

      Hi -


      I am trying to write an IF statement in Tableau that will calculate the average of values if it meets the IF criteria. For example, I would like a formula that answers the following statement:


      If an analysis = "Analysis 1", then average the values that pertain to Analysis 1.


      Any help?


      Thank you,