<?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: Using created fields elsewhere in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-created-fields-elsewhere-in-load-script/m-p/460305#M171822</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;The values Field1 and &lt;/P&gt;&lt;P&gt;Use preceding load like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FlagField1 + FlagField2 As FlagOverall&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Load Field1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Field1&amp;gt;=30,1.5,if(Field1&amp;gt;=21,1,0)) as FlagField1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Field2&amp;gt;20 and Field2&amp;lt;90,0.5,0) as FlagField2&lt;/P&gt;&lt;P&gt;From abc.xlsx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Mar 2013 12:23:12 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2013-03-20T12:23:12Z</dc:date>
    <item>
      <title>Using created fields elsewhere in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-created-fields-elsewhere-in-load-script/m-p/460304#M171821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi, I've looked all over and can't find an answer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;In my load script I have a number of IF statements,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Table1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Load &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Field1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #800000;"&gt;Field2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if &lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Field1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=30,1.5,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Field1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=21,1,0)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FlagField1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if &lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Field2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;20 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Field2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;90,0.5,0) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FlagField2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;From abc.xlsx &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;These created fields work fine in my document but w&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;hat &lt;/SPAN&gt;I'm trying to do next is add all these Flag values (1-9) together to give an FlagOverall field within the load script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Any ideas&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;John&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 12:16:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-created-fields-elsewhere-in-load-script/m-p/460304#M171821</guid>
      <dc:creator>ljdlumley</dc:creator>
      <dc:date>2013-03-20T12:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using created fields elsewhere in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-created-fields-elsewhere-in-load-script/m-p/460305#M171822</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;The values Field1 and &lt;/P&gt;&lt;P&gt;Use preceding load like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FlagField1 + FlagField2 As FlagOverall&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Load Field1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Field1&amp;gt;=30,1.5,if(Field1&amp;gt;=21,1,0)) as FlagField1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Field2&amp;gt;20 and Field2&amp;lt;90,0.5,0) as FlagField2&lt;/P&gt;&lt;P&gt;From abc.xlsx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 12:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-created-fields-elsewhere-in-load-script/m-p/460305#M171822</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-03-20T12:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using created fields elsewhere in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-created-fields-elsewhere-in-load-script/m-p/460306#M171823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan. It works perfectly, quite counter intuitive to put it at the top of the script!&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 12:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-created-fields-elsewhere-in-load-script/m-p/460306#M171823</guid>
      <dc:creator>ljdlumley</dc:creator>
      <dc:date>2013-03-20T12:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using created fields elsewhere in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-created-fields-elsewhere-in-load-script/m-p/460307#M171824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would say that it is quite logical to put it on top, once you understand what it does...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/03/04/preceding-load" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/03/04/preceding-load"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/03/04/preceding-load&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 12:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-created-fields-elsewhere-in-load-script/m-p/460307#M171824</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-03-20T12:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using created fields elsewhere in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-created-fields-elsewhere-in-load-script/m-p/460308#M171825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the link, it makes sense now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 12:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-created-fields-elsewhere-in-load-script/m-p/460308#M171825</guid>
      <dc:creator>ljdlumley</dc:creator>
      <dc:date>2013-03-20T12:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using created fields elsewhere in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-created-fields-elsewhere-in-load-script/m-p/460309#M171826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Life saver!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 19:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-created-fields-elsewhere-in-load-script/m-p/460309#M171826</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2013-04-26T19:04:40Z</dc:date>
    </item>
  </channel>
</rss>

