<?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: If statement in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709043#M671431</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;Your script seems to be ok.&lt;/P&gt;&lt;P&gt;What is the values of the variables &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Streefnorm_A &amp;amp; &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Streefnorm_overige?&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt; Replace those variables with some values like 1 or 2 and try to reload, if you are able to reload then the problem is with your variables.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make sure that all the columns are there in the excel file.&amp;nbsp; If nothing works then attach some sample of the two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Oct 2014 02:37:27 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2014-10-13T02:37:27Z</dc:date>
    <item>
      <title>If statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709041#M671429</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;can anyone help with this error message i keep receiving? I can't seem to figure out what the problem is.&lt;/P&gt;&lt;P&gt;Error in expression:&lt;/P&gt;&lt;P&gt;')' expected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem occurs during the execution of the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Vastgoed kenmerken&lt;/P&gt;&lt;P&gt;VGKenmerken:&lt;/P&gt;&lt;P&gt;LOAD VHE_ID,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VHE_EPA AS [Energielabel],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF (CV='J', 'CV', 'HR') AS [Verwarmingseenheid],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Coll='J', 'JA','Nee') AS [Collectief],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Meter='J', 'Ja', 'Nee') AS [Meter]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Actueel bezit]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Huurprijzen&lt;/P&gt;&lt;P&gt;Join (VGKenmerken)&lt;/P&gt;&lt;P&gt;LOAD VHE_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jaar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HP_NETTOHUUR AS [Nettohuur_historisch],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HP_MAXHUUR AS [Maximumhuur_historisch],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='A',(SUM(HP_MAXHUUR)*$(Streefnorm_A)-SUM(HP_NETTOHUUR)), &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='B',(SUM(HP_MAXHUUR)*$(Streefnorm_B)-SUM(HP_NETTOHUUR)), &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='C',(SUM(HP_MAXHUUR)*$(Streefnorm_C)-SUM(HP_NETTOHUUR)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='D',(SUM(HP_MAXHUUR)*$(Streefnorm_D)-SUM(HP_NETTOHUUR)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='E',(SUM(HP_MAXHUUR)*$(Streefnorm_E)-SUM(HP_NETTOHUUR)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='F',(SUM(HP_MAXHUUR)*$(Streefnorm_F)-SUM(HP_NETTOHUUR)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='G',(SUM(HP_MAXHUUR)*$(Streefnorm_G)-SUM(HP_NETTOHUUR)), (SUM(HP_MAXHUUR)*$(Streefnorm_overige) -SUM(HP_NETTOHUUR)) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )))))))&lt;/STRONG&gt; AS [Meerwaarde]&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Rapport 1]);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Oct 2014 21:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709041#M671429</guid>
      <dc:creator />
      <dc:date>2014-10-12T21:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709042#M671430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the value of the value variable &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Streefnorm_A&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;Do you have the field &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;VHE_EPA &lt;/STRONG&gt;in second table? Or using the field from table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;VGKenmerken?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 00:58:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709042#M671430</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-13T00:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709043#M671431</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;Your script seems to be ok.&lt;/P&gt;&lt;P&gt;What is the values of the variables &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Streefnorm_A &amp;amp; &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Streefnorm_overige?&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt; Replace those variables with some values like 1 or 2 and try to reload, if you are able to reload then the problem is with your variables.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make sure that all the columns are there in the excel file.&amp;nbsp; If nothing works then attach some sample of the two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 02:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709043#M671431</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-10-13T02:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709044#M671432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Streefnorm A-G is a variable that the user can set between 0-1. VHE_EPA is in a different table than HP_MAXHUUR/NETTOHUUR. That's why I joined the table with MAXHUUR and NETTOHUUR with VGKENMERKEN (the table with VHE_EPA)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 07:08:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709044#M671432</guid>
      <dc:creator />
      <dc:date>2014-10-13T07:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709045#M671433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think the problem is in the variables since I copied this calculation from an expression. I want to load the expression as a field so to say. The expression works fine, only thing I've changed are the field names (e.g. HP_MAXHUUR instead of maximumhuur)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 07:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709045#M671433</guid>
      <dc:creator />
      <dc:date>2014-10-13T07:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709046#M671434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;//Vastgoed kenmerken&lt;/P&gt;&lt;P&gt;VGKenmerken:&lt;/P&gt;&lt;P&gt;LOAD VHE_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VHE_EPA AS [Energielabel],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF (CV='J', 'CV', 'HR') AS [Verwarmingseenheid],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Coll='J', 'JA','Nee') AS [Collectief],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Meter='J', 'Ja', 'Nee') AS [Meter]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Actueel bezit]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Huurprijzen&lt;/P&gt;&lt;P&gt;Join (VGKenmerken)&lt;/P&gt;&lt;P&gt;LOAD VHE_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jaar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HP_NETTOHUUR AS [Nettohuur_historisch],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HP_MAXHUUR AS [Maximumhuur_historisch]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Rapport 1]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load VHE_ID,Jaar,HP_NETTOHUUR,HP_MAXHUUR,&lt;/P&gt;&lt;P&gt;Sum(if(VHE_EPA='A',((HP_MAXHUUR)*$(Streefnorm_A)-(HP_NETTOHUUR)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='B',((HP_MAXHUUR)*$(Streefnorm_B)-(HP_NETTOHUUR)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='C',((HP_MAXHUUR)*$(Streefnorm_C)-(HP_NETTOHUUR)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='D',((HP_MAXHUUR)*$(Streefnorm_D)-(HP_NETTOHUUR)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='E',((HP_MAXHUUR)*$(Streefnorm_E)-(HP_NETTOHUUR)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='F',((HP_MAXHUUR)*$(Streefnorm_F)-(HP_NETTOHUUR)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='G',((HP_MAXHUUR)*$(Streefnorm_G)-(HP_NETTOHUUR)), ((HP_MAXHUUR)*$(Streefnorm_overige) -(HP_NETTOHUUR))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )))))))) AS [Meerwaarde] Resident VGKenmerken &lt;STRONG&gt;Group by VHE_ID,Jaar,HP_NETTOHUUR,HP_MAXHUUR;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 08:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709046#M671434</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-13T08:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709047#M671435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I add that to the script it gives the error doesn't recognise table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 08:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709047#M671435</guid>
      <dc:creator />
      <dc:date>2014-10-13T08:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709048#M671436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saw the problem, had the wrong tablename in the Resident function (changed it and forgot to change it there) but now I keep getting the error: Field HP_NETTOHUUR not found&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 09:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709048#M671436</guid>
      <dc:creator />
      <dc:date>2014-10-13T09:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709049#M671437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Use these alias names in Group by clause&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HP_NETTOHUUR AS [Nettohuur_historisch],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HP_MAXHUUR AS [Maximumhuur_historisch]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 09:22:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709049#M671437</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-13T09:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709050#M671438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's wrong syntax, doesn't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 09:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709050#M671438</guid>
      <dc:creator />
      <dc:date>2014-10-13T09:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709051#M671439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load VHE_ID,Jaar,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;STRONG&gt;[Nettohuur_historisch],&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;[Maximumhuur_historisch]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(if(VHE_EPA='A',((HP_MAXHUUR)*$(Streefnorm_A)-(HP_NETTOHUUR)),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='B',((HP_MAXHUUR)*$(Streefnorm_B)-(HP_NETTOHUUR)),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='C',((HP_MAXHUUR)*$(Streefnorm_C)-(HP_NETTOHUUR)),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='D',((HP_MAXHUUR)*$(Streefnorm_D)-(HP_NETTOHUUR)),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='E',((HP_MAXHUUR)*$(Streefnorm_E)-(HP_NETTOHUUR)),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='F',((HP_MAXHUUR)*$(Streefnorm_F)-(HP_NETTOHUUR)),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VHE_EPA='G',((HP_MAXHUUR)*$(Streefnorm_G)-(HP_NETTOHUUR)), ((HP_MAXHUUR)*$(Streefnorm_overige) -(HP_NETTOHUUR))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )))))))) AS [Meerwaarde] Resident VGKenmerken Group by VHE_ID,Jaar,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;[Nettohuur_historisch],&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"&gt;&lt;STRONG&gt;[Maximumhuur_historisch]&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 09:41:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709051#M671439</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-13T09:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709052#M671440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah figured out that the problem was the names, got the same script as you provided. Got the error:&lt;/P&gt;&lt;P&gt;Error in expression:&lt;/P&gt;&lt;P&gt;')' expected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 09:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709052#M671440</guid>
      <dc:creator />
      <dc:date>2014-10-13T09:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709053#M671441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load VHE_ID,Jaar,[Nettohuur_historisch],[Maximumhuur_historisch],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if([Energielabel]='A',([Maximumhuur_historisch]*$(Streefnorm_A)-[Nettohuur_historisch]),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Energielabel]='B',([Maximumhuur_historisch]*$(Streefnorm_B)-[Nettohuur_historisch]),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Energielabel]='C',([Maximumhuur_historisch]*$(Streefnorm_C)-[Nettohuur_historisch]),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Energielabel]='D',([Maximumhuur_historisch]*$(Streefnorm_D)-[Nettohuur_historisch]),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Energielabel]='E',([Maximumhuur_historisch]*$(Streefnorm_E)-[Nettohuur_historisch]),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Energielabel]='F',([Maximumhuur_historisch]*$(Streefnorm_F)-[Nettohuur_historisch]),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Energielabel]='G',([Maximumhuur_historisch]*$(Streefnorm_G)-[Nettohuur_historisch]), ([Maximumhuur_historisch]*$(Streefnorm_overige) -[Nettohuur_historisch])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )))))))) AS [Meerwaarde] Resident VGKenmerken Group by VHE_ID,Jaar,[Nettohuur_historisch],[Maximumhuur_historisch];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 09:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709053#M671441</guid>
      <dc:creator />
      <dc:date>2014-10-13T09:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709054#M671442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you attach sample input files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 11:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-load-script/m-p/709054#M671442</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-13T11:32:32Z</dc:date>
    </item>
  </channel>
</rss>

