<?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 Error in expression: If takes 2-3 parameters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-expression-If-takes-2-3-parameters/m-p/369065#M137200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only 2 options&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;if( ScoreTotal &amp;gt;= $(vAScore) , 'A' , 'B') As [Test],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Or ScoreTotal is empty (not present in your table) or &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;$(vAScore)&amp;nbsp; is empty, could you put here the SET/LET command that created &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;$(vAScore) ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Mar 2012 16:43:46 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2012-03-26T16:43:46Z</dc:date>
    <item>
      <title>Error in expression: If takes 2-3 parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-expression-If-takes-2-3-parameters/m-p/369062#M137197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that some one can help me with this. I can't seem to figure out what why this fails:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[TEST]:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;[Supplier Id],&lt;/P&gt;&lt;P&gt;[Invoice Year],&lt;/P&gt;&lt;P&gt;if( ScoreTotal &amp;gt;= $(vAScore) , 'A' , 'B') As [Test],&lt;/P&gt;&lt;P&gt;ScoreTotal as [Score - Total]&lt;/P&gt;&lt;P&gt;Resident [TEMP Total Score];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep getting this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error in expression:&lt;/P&gt;&lt;P&gt;If takes 2-3 parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[TEST]:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;[Supplier Id],&lt;/P&gt;&lt;P&gt;[Invoice Year],&lt;/P&gt;&lt;P&gt;if( ScoreTotal &amp;gt;= 17,59495 , 'A' , 'B') As [Test],&lt;/P&gt;&lt;P&gt;ScoreTotal as [Score - Total]&lt;/P&gt;&lt;P&gt;Resident [TEMP Total Score]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that there is a genius out there &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 12:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-expression-If-takes-2-3-parameters/m-p/369062#M137197</guid>
      <dc:creator />
      <dc:date>2012-03-26T12:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression: If takes 2-3 parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-expression-If-takes-2-3-parameters/m-p/369063#M137198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there anyway you can add the .qvw document?&amp;nbsp; Might be useful if we could have a play with it directly.&amp;nbsp; I'm wondering if it's got to do with the "," in the variable.&amp;nbsp; Have you tried puting the variable within single quotes? '$(vAScore)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Emma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 15:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-expression-If-takes-2-3-parameters/m-p/369063#M137198</guid>
      <dc:creator />
      <dc:date>2012-03-26T15:39:38Z</dc:date>
    </item>
    <item>
      <title>Error in expression: If takes 2-3 parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-expression-If-takes-2-3-parameters/m-p/369064#M137199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I think the problem ist the decimal separator of your vAScore variable.&lt;/P&gt;&lt;P&gt;Do you use a comma as decimal separator like &lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;SET DecimalSep=',';&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;?&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;Try using $(#vAScore) instead in your if() statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 15:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-expression-If-takes-2-3-parameters/m-p/369064#M137199</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-26T15:47:26Z</dc:date>
    </item>
    <item>
      <title>Error in expression: If takes 2-3 parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-expression-If-takes-2-3-parameters/m-p/369065#M137200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only 2 options&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;if( ScoreTotal &amp;gt;= $(vAScore) , 'A' , 'B') As [Test],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Or ScoreTotal is empty (not present in your table) or &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;$(vAScore)&amp;nbsp; is empty, could you put here the SET/LET command that created &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;$(vAScore) ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 16:43:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-expression-If-takes-2-3-parameters/m-p/369065#M137200</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2012-03-26T16:43:46Z</dc:date>
    </item>
    <item>
      <title>Error in expression: If takes 2-3 parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-expression-If-takes-2-3-parameters/m-p/369066#M137201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem was with the variable being formated as #,### insted of the script native #.### i solved it with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;if( ScoreTotal &amp;gt;= Num#($(vAScore)) , 'A' , 'B') As [Test],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Many thanks for your valuable input.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 17:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-expression-If-takes-2-3-parameters/m-p/369066#M137201</guid>
      <dc:creator />
      <dc:date>2012-03-26T17:22:13Z</dc:date>
    </item>
  </channel>
</rss>

