<?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: Dynamic assignment in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-assignment-in-load-script/m-p/1174325#M629596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Check_Table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Order&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;4&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Main_Table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; rowno() as Order,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 'another field' as field1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AutoGenerate 20;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Left Join (Main_Table)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Order,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 1 as FlagAssigned&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Check_Table;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2016 14:58:11 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2016-08-11T14:58:11Z</dc:date>
    <item>
      <title>Dynamic assignment in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-assignment-in-load-script/m-p/1174322#M629593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to assign a field value in a table during load, based on a value in a previously loaded table, i.e. Check_Table has a list of 20 Orders, Main_Table has all Orders, I want to mark each Order in Main_Table with a flag to identify if it is present in the Check_Table list or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; could do a join of the two tables but this does not allow me to subsequently select Orders which are &lt;STRONG&gt;not&lt;/STRONG&gt; in the Check_Table (as they will have a NULL value in the flag field and not selectable in my dashboard).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence, during my load script for Main_Table I want to use something along the lines of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If [Order] in Check_Table,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag assigned 'Yes'&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag assigned 'No'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how I can do this in Qlikview? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 12:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-assignment-in-load-script/m-p/1174322#M629593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-11T12:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-assignment-in-load-script/m-p/1174323#M629594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this and let me know if not please share you main and check tables for a quick look at it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached files and let me know how it works ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 14:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-assignment-in-load-script/m-p/1174323#M629594</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-08-11T14:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-assignment-in-load-script/m-p/1174324#M629595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry an update in the script. &lt;/P&gt;&lt;P&gt;Use below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORDERID AS CheckOrderID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Yes' AS Flag&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\Desktop\Checking.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is CHECK);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEMP:&lt;/P&gt;&lt;P&gt;MAPPING LOAD CheckOrderID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag&lt;/P&gt;&lt;P&gt;Resident CHECK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAIN:&lt;/P&gt;&lt;P&gt;LOAD *, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('TEMP', ORDERID, 'No') AS FlagExists;&lt;/P&gt;&lt;P&gt;LOAD Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORDERID&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\Desktop\Checking.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is MAIN);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 14:45:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-assignment-in-load-script/m-p/1174324#M629595</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-08-11T14:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-assignment-in-load-script/m-p/1174325#M629596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Check_Table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Order&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;4&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Main_Table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; rowno() as Order,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 'another field' as field1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AutoGenerate 20;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Left Join (Main_Table)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Order,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 1 as FlagAssigned&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Check_Table;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 14:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-assignment-in-load-script/m-p/1174325#M629596</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-08-11T14:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-assignment-in-load-script/m-p/1174326#M629597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this Vish, worked perfectly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hadn't used ApplyMap much previously, might use it more in the future now...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 15:24:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-assignment-in-load-script/m-p/1174326#M629597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-11T15:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-assignment-in-load-script/m-p/1174327#M629598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really appreciate the response, thanks for taking the time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I got my head around ApplyMap though I found it easier to use Vish's approach this time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 15:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-assignment-in-load-script/m-p/1174327#M629598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-11T15:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-assignment-in-load-script/m-p/1174328#M629599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Me too I prefer the applymap solution. My answer was just to show a different solution. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 15:34:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-assignment-in-load-script/m-p/1174328#M629599</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-08-11T15:34:42Z</dc:date>
    </item>
  </channel>
</rss>

