<?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: Use created field in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-created-field-in-script/m-p/492236#M184047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do that with a preceding load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If([Emergency Status]= ''..xxx...', 1, 0) as NewEmergency&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;...some other fields...;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;if(Priority='Emergency (24h)', 'Emergency (24h)',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Priority='Emergency (24hr)', 'Emergency (24h)',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Priority='emergency 24', 'Emergency (24h)',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Priority='Emergency 24h', 'Emergency (24h)', 'Non-Emergency')))) AS [Emergency Status]&lt;/P&gt;&lt;P&gt;...some other fields...&lt;/P&gt;&lt;P&gt;from ...somewhere...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second load pipes the data into the preceding load so the new field Emergency Status is available for use in the preceding load. See this &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/03/04/preceding-load"&gt;blog post&lt;/A&gt; for more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Aug 2013 08:47:36 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-08-14T08:47:36Z</dc:date>
    <item>
      <title>Use created field in script</title>
      <link>https://community.qlik.com/t5/QlikView/Use-created-field-in-script/m-p/492235#M184046</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;I've used an IF statement to collate the variations of Emergency into one.&lt;/P&gt;&lt;P&gt;I'd then like to use the newly created [Emergency Field] later in my code.&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;How would I do this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Priority='Emergency (24h)', 'Emergency (24h)',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Priority='Emergency (24hr)', 'Emergency (24h)',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Priority='emergency 24', 'Emergency (24h)',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Priority='Emergency 24h', 'Emergency (24h)', 'Non-Emergency')))) AS [Emergency Status]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 08:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-created-field-in-script/m-p/492235#M184046</guid>
      <dc:creator>darren_dixon</dc:creator>
      <dc:date>2013-08-14T08:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use created field in script</title>
      <link>https://community.qlik.com/t5/QlikView/Use-created-field-in-script/m-p/492236#M184047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do that with a preceding load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If([Emergency Status]= ''..xxx...', 1, 0) as NewEmergency&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;...some other fields...;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;if(Priority='Emergency (24h)', 'Emergency (24h)',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Priority='Emergency (24hr)', 'Emergency (24h)',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Priority='emergency 24', 'Emergency (24h)',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Priority='Emergency 24h', 'Emergency (24h)', 'Non-Emergency')))) AS [Emergency Status]&lt;/P&gt;&lt;P&gt;...some other fields...&lt;/P&gt;&lt;P&gt;from ...somewhere...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second load pipes the data into the preceding load so the new field Emergency Status is available for use in the preceding load. See this &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/03/04/preceding-load"&gt;blog post&lt;/A&gt; for more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 08:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-created-field-in-script/m-p/492236#M184047</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-08-14T08:47:36Z</dc:date>
    </item>
  </channel>
</rss>

