<?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: Using For Loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-For-Loop/m-p/1626669#M446151</link>
    <description>&lt;P&gt;It looks like you are trying to &lt;A href="https://help.qlik.com/en-US/sense/June2019/Subsystems/Hub/Content/Sense_Hub/DataSource/hierarchies.htm" target="_self"&gt;load hierarchy data.&lt;/A&gt;&amp;nbsp;If so then check out the link and the script prefixes &lt;STRONG&gt;&lt;EM&gt;Hierarchy&lt;/EM&gt;&lt;/STRONG&gt; and &lt;STRONG&gt;&lt;EM&gt;HierarchyBelongsTo&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;, it might help you achieve what you want and also reduce the complexity&amp;nbsp; in your script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Vegar&lt;/P&gt;</description>
    <pubDate>Sun, 22 Sep 2019 16:47:51 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2019-09-22T16:47:51Z</dc:date>
    <item>
      <title>Using For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Using-For-Loop/m-p/1626650#M446150</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am facing a challenge while using for loop with a left Join&lt;/P&gt;&lt;P&gt;Requirement- I have two tables one having list of&amp;nbsp; &amp;nbsp;Area Name and employee IDs, the other having Employee IDs to manager IDs mapping&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Table 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Area Name&lt;/TD&gt;&lt;TD&gt;&amp;nbs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gt;&lt;P&gt;Task-&lt;/P&gt;&lt;P&gt;I need to Left Join Table 2 into table 1, so that the resultant table looks like below&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Table 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Area Name&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;ID&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;Manager ID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;123456&lt;/TD&gt;&lt;TD&gt;1234&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;1234567&lt;/TD&gt;&lt;TD&gt;1234&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;234567&lt;/TD&gt;&lt;TD&gt;2345&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;345678&lt;/TD&gt;&lt;TD&gt;3456&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Other Steps-&lt;/P&gt;&lt;P&gt;1. Make a temp table of Table 1&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;Drop field Terr ID from Temp Table&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&amp;nbsp;Rename Field Terr Manager ID as Terr ID&lt;/P&gt;&lt;P&gt;4.&amp;nbsp;Concatenate Temp table with Table 1&lt;/P&gt;&lt;P&gt;Challenge-&lt;/P&gt;&lt;P&gt;I need to repeat the process until there is no Manager ID mapped to an employee&amp;nbsp; id. For example 12 in my case&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 11:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-For-Loop/m-p/1626650#M446150</guid>
      <dc:creator>siddharthsoam</dc:creator>
      <dc:date>2019-09-23T11:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Using-For-Loop/m-p/1626669#M446151</link>
      <description>&lt;P&gt;It looks like you are trying to &lt;A href="https://help.qlik.com/en-US/sense/June2019/Subsystems/Hub/Content/Sense_Hub/DataSource/hierarchies.htm" target="_self"&gt;load hierarchy data.&lt;/A&gt;&amp;nbsp;If so then check out the link and the script prefixes &lt;STRONG&gt;&lt;EM&gt;Hierarchy&lt;/EM&gt;&lt;/STRONG&gt; and &lt;STRONG&gt;&lt;EM&gt;HierarchyBelongsTo&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;, it might help you achieve what you want and also reduce the complexity&amp;nbsp; in your script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Vegar&lt;/P&gt;</description>
      <pubDate>Sun, 22 Sep 2019 16:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-For-Loop/m-p/1626669#M446151</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-09-22T16:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Using-For-Loop/m-p/1626851#M446159</link>
      <description>&lt;P&gt;Hi Vegar,&lt;/P&gt;&lt;P&gt;Thanks for the reply !!&lt;/P&gt;&lt;P&gt;My requirement is a little different as i want to bring more fields in Table 1 after the left join from another table x.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will it be possible using do ...loop ?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 11:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-For-Loop/m-p/1626851#M446159</guid>
      <dc:creator>siddharthsoam</dc:creator>
      <dc:date>2019-09-23T11:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Using-For-Loop/m-p/1630259#M446405</link>
      <description>&lt;P&gt;I am running off what Vegar posted, the following link has some further info on things related to where he was headed I think that may be of help:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Unbalanced-n-level-hierarchies/ba-p/1474325" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Unbalanced-n-level-hierarchies/ba-p/1474325&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I am not certain this is what you need though, so here is the base link for the Design Blog area you can use to search yourself to see if you can find something to help further there:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 21:36:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-For-Loop/m-p/1630259#M446405</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-10-01T21:36:27Z</dc:date>
    </item>
  </channel>
</rss>

