<?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 Script Question: Use item in a load statement within a formula in another load statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Question-Use-item-in-a-load-statement-within-a-formula-in/m-p/288428#M107263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have researched my question and have been unable to find an answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my issue: I have two loads statements.&amp;nbsp; The first load statement contains fields from a product (dimensional) table.&amp;nbsp; This load statement includes a fields titled ITEM and a field titled STATFACTOR.&amp;nbsp; The second load statement contains shipment quantity information by item (and other key fields).&amp;nbsp; This load also contains a field titled ITEM.&amp;nbsp; I would like to take the STATFACTOR field from load one and add it into load two so that I can use it in a calculation within that load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Question: Is it possible to take a field from one load statement and add it into another load statement, and then use that field within a formula within the second load statement?&amp;nbsp; If so, can examples be provided?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Godfrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Dec 2011 16:04:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-08T16:04:55Z</dc:date>
    <item>
      <title>Script Question: Use item in a load statement within a formula in another load statement</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Question-Use-item-in-a-load-statement-within-a-formula-in/m-p/288428#M107263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have researched my question and have been unable to find an answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my issue: I have two loads statements.&amp;nbsp; The first load statement contains fields from a product (dimensional) table.&amp;nbsp; This load statement includes a fields titled ITEM and a field titled STATFACTOR.&amp;nbsp; The second load statement contains shipment quantity information by item (and other key fields).&amp;nbsp; This load also contains a field titled ITEM.&amp;nbsp; I would like to take the STATFACTOR field from load one and add it into load two so that I can use it in a calculation within that load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Question: Is it possible to take a field from one load statement and add it into another load statement, and then use that field within a formula within the second load statement?&amp;nbsp; If so, can examples be provided?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Godfrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 16:04:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Question-Use-item-in-a-load-statement-within-a-formula-in/m-p/288428#M107263</guid>
      <dc:creator />
      <dc:date>2011-12-08T16:04:55Z</dc:date>
    </item>
    <item>
      <title>Script Question: Use item in a load statement within a formula in another load statement</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Question-Use-item-in-a-load-statement-within-a-formula-in/m-p/288429#M107264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can probably use a mapping table to achieve what you want, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;MAPPING LOAD&lt;/P&gt;&lt;P&gt;ITEM,&lt;/P&gt;&lt;P&gt;STATFACTOR&lt;/P&gt;&lt;P&gt;from ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;FIELD1,&lt;/P&gt;&lt;P&gt;FIELD2,&lt;/P&gt;&lt;P&gt;ITEM,&lt;/P&gt;&lt;P&gt;...,&lt;/P&gt;&lt;P&gt;VALUEFIELD * applymap('Table1',ITEM), 'OnTime', 'Late') as YOURCALCULATIONUSINGMAP&lt;/P&gt;&lt;P&gt;from ...;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 16:31:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Question-Use-item-in-a-load-statement-within-a-formula-in/m-p/288429#M107264</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-08T16:31:27Z</dc:date>
    </item>
  </channel>
</rss>

