title: Simple IF DAX function (PowerBI)
body: <p>I'm trying this nested IF formula, and it's returning an error.  Can someone please let me know what I'm doing wrong?  I'm creating a new column with this formula for an attendance sheet for an event.</p>
  <pre><code>IF(AND(new_newattendees[new_attended] = True, new_newattendees[new_register] = True),&quot;Register and Attended&quot;,
      IF(AND(new_newattendees[new_attended] = True, new_newattendees[new_register] = False),&quot;Only Attended&quot;,
      IF(AND(new_newattendees[new_attended] = False,new_newattendees[new_register] = True),&quot;Only Register&quot;,
      IF(AND(new_newattendees[new_attended] = False,new_newattendees[new_register] = False),&quot;NA&quot;,0))))
  </code></pre>