<?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: Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513748#M688221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JP,&lt;/P&gt;&lt;P&gt;Would you mind marking this discussion as answered?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Nov 2013 19:45:18 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2013-11-12T19:45:18Z</dc:date>
    <item>
      <title>Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513740#M688213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help with load scripts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a standard load script loading some data from excel sheet which is fine, i have a rather complicated if structure to calculate a value, lets call it 'Calculated Value A' which i save to the table structure, this all works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However in the same load script i want to access 'Calculated Value A' which I have just created and use it in further calculations, rather than just repeating the whole complicated if structure again is there a way to gain access to the value in the field that has just been created?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (&amp;nbsp; if ( if ( etc ))) as [Calculated Value A]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [Calculated Value A] = 'Yes' then do something &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;JP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 15:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513740#M688213</guid>
      <dc:creator />
      <dc:date>2013-11-12T15:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513741#M688214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a 'pre-load'&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [Calculated Value A] = 'Yes' then do something;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&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; line 1&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; line 2&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; if (&amp;nbsp; if ( if ( etc ))) as [Calculated Value A]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From&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; etc etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 15:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513741#M688214</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-11-12T15:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513742#M688215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can use the same calculation again but with an extra if statment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Line1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Line2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF( IF ( IF (ETC))) as [Calculated Value A],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF( IF( IF ( IF (ETC))) = 'Yes', something, somethingelse) as Somethingnew&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;Etc Etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 16:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513742#M688215</guid>
      <dc:creator />
      <dc:date>2013-11-12T16:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513743#M688216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michel thats the solution I had but i thought it was rather messy and there had to be a better way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 16:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513743#M688216</guid>
      <dc:creator />
      <dc:date>2013-11-12T16:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513744#M688217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anjos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This looks sensible thanks, is the syntax as you have it with the 2 loads? if the script loads top to bottom should you not have it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line 1&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line 2&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (&amp;nbsp; if ( if ( etc ))) as [Calculated Value A]&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [Calculated Value A] = 'Yes' then do something;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;From&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 16:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513744#M688217</guid>
      <dc:creator />
      <dc:date>2013-11-12T16:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513745#M688218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've not used the pre-load option but you could also do it in 2 tables if you wanted to keep it neater.&amp;nbsp; So you use your first table as a temp table and then calculated off this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 16:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513745#M688218</guid>
      <dc:creator />
      <dc:date>2013-11-12T16:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513746#M688219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, its correct.&lt;/P&gt;&lt;P&gt;When using pre load all happens bottom to up&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load // this happens affer load below&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; *,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [Calculated Value A] = 'Yes' then do something;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; // this happens first&lt;/SPAN&gt;&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; line 1&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; line 2&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; if (&amp;nbsp; if ( if ( etc ))) as [Calculated Value A]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From&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; etc etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 16:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513746#M688219</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-11-12T16:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513747#M688220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect just tried it and it works a treat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a mil for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;JP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 16:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513747#M688220</guid>
      <dc:creator />
      <dc:date>2013-11-12T16:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513748#M688221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JP,&lt;/P&gt;&lt;P&gt;Would you mind marking this discussion as answered?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 19:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513748#M688221</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-11-12T19:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513749#M688222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was looking for that yesterday but I can't find it in the new layout ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 07:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script/m-p/513749#M688222</guid>
      <dc:creator />
      <dc:date>2013-11-13T07:30:28Z</dc:date>
    </item>
  </channel>
</rss>

