title: Count field based on condition in other field
body: <p>I am trying to create a Tableau calculated field. Can someone help me rewrite the following code so that it uses the correct syntax?</p>
  
  <pre><code>COUNT([Type of Event]
  IF(CONTAINS([Name of Event], "CANCELLED") = false) 
  THEN 1 END)
  </code></pre>