<?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: Case 909 How to apply partial reload with FOR i function ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Case-909-How-to-apply-partial-reload-with-FOR-i-function/m-p/1742497#M590645</link>
    <description>&lt;P&gt;Only thing of which I can think is the following:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Preceding-Load/ba-p/1469534" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Preceding-Load/ba-p/1469534&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Wed, 09 Sep 2020 15:54:17 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2020-09-09T15:54:17Z</dc:date>
    <item>
      <title>Case 909 How to apply partial reload with FOR i function ?</title>
      <link>https://community.qlik.com/t5/QlikView/Case-909-How-to-apply-partial-reload-with-FOR-i-function/m-p/1739611#M590644</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I have below script , Part (A) work fine. But&lt;STRONG&gt; &lt;FONT color="#0000FF"&gt;&lt;FONT color="#FF0000"&gt;Part (B)&lt;/FONT&gt; &lt;/FONT&gt;&lt;/STRONG&gt;not working , because it only load 1 raw data file , it should load 2 raw data file.&lt;/P&gt;&lt;P&gt;SET vRAWPath = 'C:\Users\pauly\Dropbox\QV_RAW_ISDN\'; //local folder&lt;/P&gt;&lt;P&gt;// Part (A)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;For&lt;/FONT&gt;&lt;/STRONG&gt; Each&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt; i&lt;/STRONG&gt;&lt;/FONT&gt; in 'PM','SD'&lt;BR /&gt;Data:&lt;BR /&gt;LOAD&lt;BR /&gt;'$(i)' as SOURCE,&lt;BR /&gt;[Sales Person] AS Sales_Person,&lt;BR /&gt;[Opportunity Name] AS Opportunity_Name,&lt;BR /&gt;[Company Name] AS Company_Name,&lt;BR /&gt;[Contact Person] AS Contact_Person,&lt;BR /&gt;[Opportunity Closing Date] AS Closing_Date,&lt;BR /&gt;[Opportunity Closing Date],&lt;BR /&gt;[Opportunity Starting Date] AS Starting_Date,&lt;BR /&gt;[Opportunity Amount] AS Opp_Amount,&lt;BR /&gt;[Stage of Opportunity] AS Stage,&lt;BR /&gt;[Probability %] AS Probability,&lt;BR /&gt;[Opportunity Number] AS Opp_number&lt;BR /&gt;FROM&lt;BR /&gt;$(vRAWPath)CRM_&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;$(i)&lt;/FONT&gt;&lt;/STRONG&gt;.CSV&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;NEXT i;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;//Part (B)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;left join(Data)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;load date(max([Opportunity Closing Date])) as [Opportunity Closing Date],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1 as Latest_Date_Flag&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;resident Data;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;My question is how to apply FOR and i at above script ? So that it will load twice.&lt;/P&gt;&lt;P&gt;I have try below , it does not work :-&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#800080"&gt;For Each i in 'PM','SD'&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#800080"&gt;left join(Data)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;'$(i)' as SOURCE,&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#800080"&gt;load date(max([Opportunity Closing Date])) as [Opportunity Closing Date],&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#800080"&gt;1 as Latest_Date_Flag&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#800080"&gt;resident Data;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#800080"&gt;NEXT i;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#800080"&gt;Paul&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Aug 2020 05:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-909-How-to-apply-partial-reload-with-FOR-i-function/m-p/1739611#M590644</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2020-08-29T05:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Case 909 How to apply partial reload with FOR i function ?</title>
      <link>https://community.qlik.com/t5/QlikView/Case-909-How-to-apply-partial-reload-with-FOR-i-function/m-p/1742497#M590645</link>
      <description>&lt;P&gt;Only thing of which I can think is the following:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Preceding-Load/ba-p/1469534" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Preceding-Load/ba-p/1469534&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 15:54:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-909-How-to-apply-partial-reload-with-FOR-i-function/m-p/1742497#M590645</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-09-09T15:54:17Z</dc:date>
    </item>
  </channel>
</rss>

