<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Parse Error at char(0): Empty expression (Expression #2) in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Parse-Error-at-char-0-Empty-expression-Expression-2/m-p/1022027#M11890</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/362439"&gt;@u211968&lt;/a&gt;,&amp;nbsp;this error indicates that you've got another empty expression somewhere like so:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DataNath_0-1666685770091.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/264693i392205EA054A5598/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DataNath_0-1666685770091.png" alt="DataNath_0-1666685770091.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a side: the formula in your post above won't work if they're the only 2 outcomes you want to deal with. You'd need something like the following instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF [Key Account]="1" THEN "Key Account"
ELSE "Not Key Account"
ENDIF&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Assuming your [Key Account] field is a string and not numeric - if it is numeric you'll need to remove the quotes around the 1).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2022 08:17:59 GMT</pubDate>
    <dc:creator>DataNath</dc:creator>
    <dc:date>2022-10-25T08:17:59Z</dc:date>
    <item>
      <title>Parse Error at char(0): Empty expression (Expression #2)</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Parse-Error-at-char-0-Empty-expression-Expression-2/m-p/1022018#M11889</link>
      <description>&lt;P&gt;Hi I am having issues with a formula&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF [Key Account]="1" THEN "Key Account"&lt;BR /&gt;ELSEIF [Key Account]="0" THEN "Not Key Account"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please advise what I am not doing correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Deirdre&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 08:07:45 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Parse-Error-at-char-0-Empty-expression-Expression-2/m-p/1022018#M11889</guid>
      <dc:creator>u211968</dc:creator>
      <dc:date>2022-10-25T08:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Error at char(0): Empty expression (Expression #2)</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Parse-Error-at-char-0-Empty-expression-Expression-2/m-p/1022027#M11890</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/362439"&gt;@u211968&lt;/a&gt;,&amp;nbsp;this error indicates that you've got another empty expression somewhere like so:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DataNath_0-1666685770091.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/264693i392205EA054A5598/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DataNath_0-1666685770091.png" alt="DataNath_0-1666685770091.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a side: the formula in your post above won't work if they're the only 2 outcomes you want to deal with. You'd need something like the following instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF [Key Account]="1" THEN "Key Account"
ELSE "Not Key Account"
ENDIF&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Assuming your [Key Account] field is a string and not numeric - if it is numeric you'll need to remove the quotes around the 1).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 08:17:59 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Parse-Error-at-char-0-Empty-expression-Expression-2/m-p/1022027#M11890</guid>
      <dc:creator>DataNath</dc:creator>
      <dc:date>2022-10-25T08:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Error at char(0): Empty expression (Expression #2)</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Parse-Error-at-char-0-Empty-expression-Expression-2/m-p/1022052#M11891</link>
      <description>&lt;P&gt;Just to Add to the solution provided by DataNath the expression ELSEIF is not accepted by Alteryx I believe they call it an IF THEN ELSE statement on Alteryx. Hopefully this little titbit of information may help you going forward in your Alteyrx Journey :)&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 09:02:45 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Parse-Error-at-char-0-Empty-expression-Expression-2/m-p/1022052#M11891</guid>
      <dc:creator>Deano478</dc:creator>
      <dc:date>2022-10-25T09:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Error at char(0): Empty expression (Expression #2)</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Parse-Error-at-char-0-Empty-expression-Expression-2/m-p/1022064#M11892</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/382137"&gt;@Deano478&lt;/a&gt;, ELSEIF is available to use in Alteryx, for IF statements that require more than 2 outputs i.e. a straightforward IF A THEN ... ELSE ...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example, where we want to provide a flag for either A or E and then deal with anything else in another way - the ELSEIF essentially 'restarts' the IF statement for a new check and we can use as many of these as we want in between the original IF and the final ELSE:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DataNath_0-1666689125217.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/264709i201EBBD597312E66/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DataNath_0-1666689125217.png" alt="DataNath_0-1666689125217.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 09:13:07 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Parse-Error-at-char-0-Empty-expression-Expression-2/m-p/1022064#M11892</guid>
      <dc:creator>DataNath</dc:creator>
      <dc:date>2022-10-25T09:13:07Z</dc:date>
    </item>
  </channel>
</rss>

