<?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 Want to load table within a loop in Qlik Automate</title>
    <link>https://community.qlik.com/t5/Qlik-Automate/Want-to-load-table-within-a-loop/m-p/2458777#M4118</link>
    <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;I have a requirement in which I want to load a table again and again for the loop.&lt;/P&gt;
&lt;P&gt;let vStartYear = Year(Date(AddYears(Today(),-1),'YYYY-MM-DD'));&lt;/P&gt;
&lt;P&gt;let vEndYear = Year(Date(AddYears(Today(),+1),'YYYY-MM-DD'));&lt;/P&gt;
&lt;P&gt;do&lt;/P&gt;
&lt;P&gt;NoConcatenate//Base to start&lt;BR /&gt;BasePop_Temp:&lt;BR /&gt;Load&lt;BR /&gt;Distinct&lt;BR /&gt;Com_Num_Base,&lt;BR /&gt;CompNumExist,&lt;BR /&gt;&amp;nbsp;PlT_Base,&lt;BR /&gt;EffDt_Bae,&lt;BR /&gt;ExpDt_Base,&lt;BR /&gt;Prd_Line_Base,&lt;BR /&gt;'Base' as Flag_Base,&lt;BR /&gt;Com_Num_Base&amp;amp;'-'&amp;amp;month(EffDt_Bae)&amp;amp;'-'&amp;amp;Prd_Line_Base as RenKey&lt;/P&gt;
&lt;P&gt;Resident Table1 Where Year(Prd_Line_Base) = '$(vStartYear)';&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;NoConcatenate&lt;BR /&gt;BasePop: //next year&lt;BR /&gt;Load&lt;BR /&gt;Distinct&lt;/P&gt;
&lt;P&gt;Com_Num_Base,&lt;BR /&gt;CompNumExist,&lt;BR /&gt;&amp;nbsp;PlT_Base,&lt;BR /&gt;EffDt_Bae,&lt;BR /&gt;ExpDt_Base,&lt;BR /&gt;Prd_Line_Base,&lt;BR /&gt;'Ren' as Flag_Base,&lt;BR /&gt;Com_Num_Base&amp;amp;'-'&amp;amp;Prd_Line_Base as EnhaceKey&lt;/P&gt;
&lt;P&gt;Resident Table1 Where Year(EffDt_Bae) = '$(vStartYear)'+1 and Exists(RenKey,Com_Num_Base&amp;amp;'-'&amp;amp;Prd_Line_Base);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to load&amp;nbsp;BasePop, which loads for each year to concatenate one after the other for each year.&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;Ferha&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jun 2024 14:00:25 GMT</pubDate>
    <dc:creator>ferha_jafri</dc:creator>
    <dc:date>2024-06-03T14:00:25Z</dc:date>
    <item>
      <title>Want to load table within a loop</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Want-to-load-table-within-a-loop/m-p/2458777#M4118</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;I have a requirement in which I want to load a table again and again for the loop.&lt;/P&gt;
&lt;P&gt;let vStartYear = Year(Date(AddYears(Today(),-1),'YYYY-MM-DD'));&lt;/P&gt;
&lt;P&gt;let vEndYear = Year(Date(AddYears(Today(),+1),'YYYY-MM-DD'));&lt;/P&gt;
&lt;P&gt;do&lt;/P&gt;
&lt;P&gt;NoConcatenate//Base to start&lt;BR /&gt;BasePop_Temp:&lt;BR /&gt;Load&lt;BR /&gt;Distinct&lt;BR /&gt;Com_Num_Base,&lt;BR /&gt;CompNumExist,&lt;BR /&gt;&amp;nbsp;PlT_Base,&lt;BR /&gt;EffDt_Bae,&lt;BR /&gt;ExpDt_Base,&lt;BR /&gt;Prd_Line_Base,&lt;BR /&gt;'Base' as Flag_Base,&lt;BR /&gt;Com_Num_Base&amp;amp;'-'&amp;amp;month(EffDt_Bae)&amp;amp;'-'&amp;amp;Prd_Line_Base as RenKey&lt;/P&gt;
&lt;P&gt;Resident Table1 Where Year(Prd_Line_Base) = '$(vStartYear)';&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;NoConcatenate&lt;BR /&gt;BasePop: //next year&lt;BR /&gt;Load&lt;BR /&gt;Distinct&lt;/P&gt;
&lt;P&gt;Com_Num_Base,&lt;BR /&gt;CompNumExist,&lt;BR /&gt;&amp;nbsp;PlT_Base,&lt;BR /&gt;EffDt_Bae,&lt;BR /&gt;ExpDt_Base,&lt;BR /&gt;Prd_Line_Base,&lt;BR /&gt;'Ren' as Flag_Base,&lt;BR /&gt;Com_Num_Base&amp;amp;'-'&amp;amp;Prd_Line_Base as EnhaceKey&lt;/P&gt;
&lt;P&gt;Resident Table1 Where Year(EffDt_Bae) = '$(vStartYear)'+1 and Exists(RenKey,Com_Num_Base&amp;amp;'-'&amp;amp;Prd_Line_Base);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to load&amp;nbsp;BasePop, which loads for each year to concatenate one after the other for each year.&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;Ferha&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 14:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Want-to-load-table-within-a-loop/m-p/2458777#M4118</guid>
      <dc:creator>ferha_jafri</dc:creator>
      <dc:date>2024-06-03T14:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Want to load table within a loop</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Want-to-load-table-within-a-loop/m-p/2459111#M4120</link>
      <description>&lt;P&gt;Something like:&lt;/P&gt;
&lt;P&gt;for i = $(vStartYear) to $(vEndYear)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;// defining n variables to consider different fields/expressions/conditions in the iterations&lt;BR /&gt;&amp;nbsp; &amp;nbsp;YourTable: load ... resident ...;&lt;BR /&gt;next&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 12:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Want-to-load-table-within-a-loop/m-p/2459111#M4120</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-06-04T12:25:56Z</dc:date>
    </item>
  </channel>
</rss>

