<?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 with variable in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement-with-variable-in-load-script/m-p/797590#M281722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx for the tip. Never knew that the log could show the debugged version of the preceding load!&lt;/P&gt;&lt;P&gt;The value was indeed 'nee' by the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jan 2015 10:47:42 GMT</pubDate>
    <dc:creator>bartvanwetten</dc:creator>
    <dc:date>2015-01-16T10:47:42Z</dc:date>
    <item>
      <title>If statement with variable in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-variable-in-load-script/m-p/797587#M281719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to check the existence of a field in table. I have a variable called vDS_JN&amp;nbsp; in which I put wether or not the field is present.&lt;/P&gt;&lt;P&gt;But why is it that my load statement is not honoring the if statement. (Error: fieldname does not exist 'ds')&lt;/P&gt;&lt;P&gt;The variable holds the value 'nee' so it should take 0 as value for the field ds&lt;/P&gt;&lt;P&gt;If the variable holds the value 'ja' it should use the existing field ds as ds. (this variant works without receiving the error).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me out on this one? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/75403_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 16:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-variable-in-load-script/m-p/797587#M281719</guid>
      <dc:creator>bartvanwetten</dc:creator>
      <dc:date>2015-01-15T16:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with variable in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-variable-in-load-script/m-p/797588#M281720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you would not need quotes for the variables.... use $(vDS_JN) instead of '$(vDS_JN)'.&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 16:12:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-variable-in-load-script/m-p/797588#M281720</guid>
      <dc:creator>reshmakala</dc:creator>
      <dc:date>2015-01-15T16:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with variable in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-variable-in-load-script/m-p/797589#M281721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure vDS_JN contains value 'nee'? Check the Document Log; In it, all text expansion is performed before the statements are printed. So you can see for yourself what the PRECEDING LOAD is trying to do during that particular run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 16:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-variable-in-load-script/m-p/797589#M281721</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-01-15T16:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with variable in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-variable-in-load-script/m-p/797590#M281722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx for the tip. Never knew that the log could show the debugged version of the preceding load!&lt;/P&gt;&lt;P&gt;The value was indeed 'nee' by the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 10:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-variable-in-load-script/m-p/797590#M281722</guid>
      <dc:creator>bartvanwetten</dc:creator>
      <dc:date>2015-01-16T10:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with variable in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-variable-in-load-script/m-p/797591#M281723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you use variable you have to omit ' otherways it is read as text so&lt;/P&gt;&lt;P&gt;'$(vDS_JN)' is exactly the string $(vDS_JN) not its value, write (all the varibles) without leading and trailing apex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 10:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-variable-in-load-script/m-p/797591#M281723</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-01-16T10:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with variable in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-variable-in-load-script/m-p/797592#M281724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reshma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx for the quick reply. If I unquote QlikView says that the 'field 'nee'' does not exist. If i use the variable without $ and quotes QlikView sees vDS_JN as a field so i get an error of course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spoken with QlikView support. They say that the use of the IF() in this particular way is out of league. I made my solution this way:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/75476_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;I create a separate table depending on the existence of the field DS. So my base structure of TRANSACT is always the same and the table. (I'm running in a for next loop with 1200 transact tables. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 10:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-variable-in-load-script/m-p/797592#M281724</guid>
      <dc:creator>bartvanwetten</dc:creator>
      <dc:date>2015-01-16T10:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with variable in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-variable-in-load-script/m-p/797593#M281725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a text box , write in it $(vDS_JN) and analize the result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 10:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-variable-in-load-script/m-p/797593#M281725</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-01-16T10:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with variable in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-variable-in-load-script/m-p/797594#M281726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Alessandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx for the reply. Please look at the thread with Reshma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 10:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-variable-in-load-script/m-p/797594#M281726</guid>
      <dc:creator>bartvanwetten</dc:creator>
      <dc:date>2015-01-16T10:58:10Z</dc:date>
    </item>
  </channel>
</rss>

