<?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 lookup in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588739#M680490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've never really implement Hierarchy list boxes to a 100% satisfactory level in an application but &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/11/11/unbalanced-n-level-hierarchies" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/11/11/unbalanced-n-level-hierarchies"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/11/11/unbalanced-n-level-hierarchies&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-5334"&gt;Hierarchies&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are two great resources.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2014 01:38:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-04-03T01:38:23Z</dc:date>
    <item>
      <title>Using lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588727#M680478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, I am new on this forum and have one (possibly very simple) question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a source file (list of workers) with a couple of columns including worker's name and his/her supervisor's name (written in exactly the same format). How can I create an additional column showing the name of manager's manager?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried lookup('Manager','Name',Manager) but for some reason it did not work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know the solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 20:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588727#M680478</guid>
      <dc:creator />
      <dc:date>2014-04-01T20:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588728#M680479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you mean you have one file with fields like Employee, Manager and wanted to add another field ManagersManager &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load Employee, Manager from Emplist; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right join &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load Employee as Manager, Manager&amp;nbsp; ManagersManager&amp;nbsp; as from Emplist; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 20:18:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588728#M680479</guid>
      <dc:creator />
      <dc:date>2014-04-01T20:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588729#M680480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if right join is correct.&amp;nbsp; I think it would be left join in your example but I'm not 100% sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ManagersManagerMapping:&lt;/P&gt;&lt;P&gt;MAPPING LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Manager&lt;/P&gt;&lt;P&gt;From Emplist;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Manager,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Applymap('ManagersManagerMapping',Manager) as ManagersManager&lt;/P&gt;&lt;P&gt;From Emplist;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 21:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588729#M680480</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-01T21:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588730#M680481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you would like to use "Hierarchy" function?&lt;/P&gt;&lt;P&gt;It can transform parent-child hierarchy into table, where in each row you will have as many columns as your hierachy has levels. So, it may find for you even manager/manager/manager.... name &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 21:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588730#M680481</guid>
      <dc:creator />
      <dc:date>2014-04-01T21:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Using lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588731#M680482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Marcin&lt;/SPAN&gt;, hi Dariusz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's also been the first thing that came to my mind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solution could look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;given this table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_112800_Pic3.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/56365_QlikCommunity_Thread_112800_Pic3.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Hierarchy prefix could create this result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_112800_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/56375_QlikCommunity_Thread_112800_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_112800_Pic2.JPG.jpg" class="jive-image" height="226" src="https://community.qlik.com/legacyfs/online/56376_QlikCommunity_Thread_112800_Pic2.JPG.jpg" style="width: 749px; height: 225.90806451612903px;" width="749" /&gt;&lt;/P&gt;&lt;P&gt;the manager_manager column in this case is an expression to extract the manager's manager out of the organization field.&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13963919848903877" jivemacro_uid="_13963919848903877"&gt;
&lt;P&gt;=if(Level&amp;gt;=3,SubField(organization, '/', Level-2), '-')&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The additional code is minimal:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13963919482273475" jivemacro_uid="_13963919482273475"&gt;
&lt;P&gt;tabOrganization:&lt;/P&gt;
&lt;P&gt;Hierarchy (employee, manager, employeeName, ParentName, employee, organization, '/', Level)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; employee,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; manager,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; employee as employeeName;&lt;/P&gt;
&lt;P&gt;LOAD * Inline [&lt;/P&gt;
&lt;P&gt;employee, manager&lt;/P&gt;
&lt;P&gt;name1,name3&lt;/P&gt;
&lt;P&gt;name3,name4&lt;/P&gt;
&lt;P&gt;name7,name4&lt;/P&gt;
&lt;P&gt;name4,CEO&lt;/P&gt;
&lt;P&gt;name9,name7&lt;/P&gt;
&lt;P&gt;name2,name3&lt;/P&gt;
&lt;P&gt;name5,name7&lt;/P&gt;
&lt;P&gt;name8,name7&lt;/P&gt;
&lt;P&gt;name6,name7&lt;/P&gt;
&lt;P&gt;name10,name1&lt;/P&gt;
&lt;P&gt;name11,name1&lt;/P&gt;
&lt;P&gt;name12,name2&lt;/P&gt;
&lt;P&gt;name13,name2&lt;/P&gt;
&lt;P&gt;name14,name6&lt;/P&gt;
&lt;P&gt;name15,name6&lt;/P&gt;
&lt;P&gt;name16,name14&lt;/P&gt;
&lt;P&gt;name17,name14&lt;/P&gt;
&lt;P&gt;name18,name15&lt;/P&gt;
&lt;P&gt;name19,name15&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 22:40:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588731#M680482</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-04-01T22:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Using lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588732#M680483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you prefer having the managers_manager as an additional field, then add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13963925127272413" jivemacro_uid="_13963925127272413"&gt;
&lt;P&gt;Left Join&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; employeeName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(Level&amp;gt;=3,SubField(organization, '/', Level-2), '-') as managers_manager&lt;/P&gt;
&lt;P&gt;Resident tabOrganization;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to your load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 22:49:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588732#M680483</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-04-01T22:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Using lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588733#M680484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Let me add&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;one&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;possibility&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;useful&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in transforming the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;hierarchical structures&lt;/SPAN&gt;. &lt;SPAN class="hps"&gt;Perhaps&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;you do not use&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;it in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;this case, but&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;keep in mind&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;about&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;its existence.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I mean&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;&lt;STRONG&gt;HierachyBelngsTo&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;function&lt;/SPAN&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;The&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;prefix&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Creates&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a table&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;containing&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;all&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;ancestor&lt;/SPAN&gt;-child &lt;SPAN class="hps"&gt;relations&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;hierarchy&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;The&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;ancestor&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;fields&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;can&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;then&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;be&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;used to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;select&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;entire&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;trees in the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;hierarchy&lt;/SPAN&gt;. &lt;/SPAN&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;The&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;output&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;table in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;most&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;cases&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;contains&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;several&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;records&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;per&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;node&lt;/SPAN&gt;. &lt;SPAN class="hps"&gt;An&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;additional&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;field&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;containing&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;depth&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;difference&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;nodes&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;can&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;be created&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN class="ita-kd-inputtools-div"&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="almost_half_cell"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;STRONG&gt;In conclusion&lt;/STRONG&gt;,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;if, as&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;you described&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in the question&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;looking for a way&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to find&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the name of one&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;manager&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;then use&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;methods such as&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;&lt;STRONG&gt;join&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;or&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;&lt;STRONG&gt;applymap&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt; &lt;BR /&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;On the other hand&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;if&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;you want to transform&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a source&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in a dynamic way&lt;/SPAN&gt;&lt;SPAN&gt;, which shows how&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the whole structure of&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the hierarchy,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;you can use the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;prefix&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;&lt;STRONG&gt;Hierarchy&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;or&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;&lt;STRONG&gt;HierarchyBelongsTo&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;, depending on&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;which model&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;will be&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;most convenient&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;for further analysis.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="almost_half_cell"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV dir="ltr"&gt;Have fun with QV!&lt;/DIV&gt;&lt;DIV dir="ltr"&gt; &lt;/DIV&gt;&lt;DIV dir="ltr"&gt;regards&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;Darek&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 08:00:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588733#M680484</guid>
      <dc:creator />
      <dc:date>2014-04-02T08:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588734#M680485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are right, this should be even better.&lt;/P&gt;&lt;P&gt;Maybe we can add this to the solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 08:41:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588734#M680485</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-04-02T08:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588735#M680486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want me to prepare or find example? Of course i can &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But maybe it is good time, that &lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/people/kwarcekkwarcek"&gt;kwarcekkwarcek&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp; tells us if she/he likes our ideas &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; or asks some detailed questions if she/he meets some problems trying to immplement solution in application. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 08:50:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588735#M680486</guid>
      <dc:creator />
      <dc:date>2014-04-02T08:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588736#M680487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes my bad... i meant to type left join. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 14:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588736#M680487</guid>
      <dc:creator />
      <dc:date>2014-04-02T14:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Using lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588737#M680488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;test data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="2px" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 210px; border-width: 2px; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;employee&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;manager&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name1&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name2&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name3&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name4&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;CEO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name5&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name6&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name7&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name8&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name9&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name10&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name11&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name12&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name13&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name14&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name15&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name16&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name17&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name18&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name19&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;name15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 23:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588737#M680488</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-04-02T23:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Using lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588738#M680489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dariusz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to combine both the Hierarchy and the HierarchyBelongsTo prefix in order to see if that leads to a more flexible solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13964826700062738" jivemacro_uid="_13964826700062738"&gt;
&lt;P&gt;tabOrganization:&lt;/P&gt;
&lt;P&gt;Hierarchy(employeeID, managerID, employee, ParentName, employee, organization, '/', Level)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; employee,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; AutoNumber(employee) as employeeID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; manager,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; AutoNumber(manager) as managerID;&lt;/P&gt;
&lt;P&gt;LOAD employee, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; manager&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2061" data-containertype="14" data-objectid="112800" data-objecttype="1" href="http://community.qlik.com/thread/112800"&gt;http://community.qlik.com/thread/112800&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabManagerLevel:&lt;/P&gt;
&lt;P&gt;HierarchyBelongsTo(employeeID, managerID, employeeName, mgrID, mgrName, mgrLevel)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; employee as employeeName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; employeeID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; managerID&lt;/P&gt;
&lt;P&gt;Resident tabOrganization;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_112800_Pic4.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/56446_QlikCommunity_Thread_112800_Pic4.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like this enhances the selection possibilities, i.e. you now can select all employees with a common manager, all employees on a specific level, all employees upwards and downwards from a specific level.&lt;/P&gt;&lt;P&gt;The list of all managers managers can also be easily created by selecting the "mgrLevel" 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_112800_Pic5.JPG.jpg" class="jive-image" height="364" src="https://community.qlik.com/legacyfs/online/56459_QlikCommunity_Thread_112800_Pic5.JPG.jpg" style="width: 749.7674418604652px; height: 364px;" width="750" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_112800_Pic6.JPG.jpg" class="jive-image" height="348" src="https://community.qlik.com/legacyfs/online/56460_QlikCommunity_Thread_112800_Pic6.JPG.jpg" style="width: 757.0526315789474px; height: 348px;" width="757" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_112800_Pic7.JPG.jpg" class="jive-image" height="293" src="https://community.qlik.com/legacyfs/online/56461_QlikCommunity_Thread_112800_Pic7.JPG.jpg" style="width: 760.0836820083682px; height: 293px;" width="760" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_112800_Pic8.JPG.jpg" class="jive-image" height="264" src="https://community.qlik.com/legacyfs/online/56462_QlikCommunity_Thread_112800_Pic8.JPG.jpg" style="width: 757.7777777777778px; height: 264px;" width="758" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your interesting suggestion, I learned a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 00:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588738#M680489</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-04-03T00:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588739#M680490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've never really implement Hierarchy list boxes to a 100% satisfactory level in an application but &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/11/11/unbalanced-n-level-hierarchies" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/11/11/unbalanced-n-level-hierarchies"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/11/11/unbalanced-n-level-hierarchies&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-5334"&gt;Hierarchies&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are two great resources.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 01:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588739#M680490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-03T01:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588740#M680491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marco,&lt;/P&gt;&lt;P&gt;You are right. Combination of Hierarchy and HierarchyBelongsTo gives a lot&lt;/P&gt;&lt;P&gt;possibilities &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I like HierarchyBelongsTo very much. It is very useful in cases, where you&lt;/P&gt;&lt;P&gt;need to transform business process data, ABC costing or supply chain, as&lt;/P&gt;&lt;P&gt;source data often includes parent-child table to represent process stages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;P&gt;03-04-2014 02:05 użytkownik "Marco Wedel" &amp;lt;qcwebmaster@qlik.com&amp;gt;&lt;/P&gt;&lt;P&gt;napisał:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;      Qlik Community &amp;lt;http://community.qlik.com/&amp;gt;   Re: Using lookup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Marco Wedel&amp;lt;http://community.qlik.com/people/MarcoWedel?et=watches.email.thread&amp;gt;in&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scripting&lt;/STRONG&gt; - View the full discussion&amp;lt;http://community.qlik.com/message/501147?et=watches.email.thread#501147&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 07:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588740#M680491</guid>
      <dc:creator />
      <dc:date>2014-04-03T07:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588741#M680492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again! I must say I am thrilled as I didn't expected so many answers! Thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was busy for the past two days and I only managed to try the first solution (right join) which worked for me (although I had to filter the results by the distance from CEO, luckily this column was in my set of data). As of now I don't understand the more complex solutions (as mentioned I am a beginner in the QlikView world), but I promise to play with them during the weekend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you once again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I might have one additional question: is it possible to count the total number of subordinates (including subordinates' subordinates)? I was thinking about creating a drill-down pie-chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 20:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588741#M680492</guid>
      <dc:creator />
      <dc:date>2014-04-03T20:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Using lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588742#M680493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in order to get the number of subordinates and the different manager levels of an employee you could extend this solution like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="_jivemacro_uid_13968232720646426 jive_text_macro jive_macro_code" jivemacro_uid="_13968232720646426"&gt;
&lt;P&gt;tabOrganization:&lt;/P&gt;
&lt;P&gt;Hierarchy(employeeID, managerID, employee, ParentName, employee, organization, '/', Level)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; employee,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; AutoNumber(employee) as employeeID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; manager,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; AutoNumber(manager) as managerID;&lt;/P&gt;
&lt;P&gt;LOAD employee,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; manager&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2061" data-containertype="14" data-objectid="112800" data-objecttype="1" href="https://community.qlik.com/thread/112800"&gt;http://community.qlik.com/thread/112800&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabManagerLevel:&lt;/P&gt;
&lt;P&gt;HierarchyBelongsTo(employeeID, managerID, employeeName, mgrID, mgrName, mgrLevel)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; employee as employeeName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; employeeID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; managerID&lt;/P&gt;
&lt;P&gt;Resident tabOrganization;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabTemp:&lt;/P&gt;
&lt;P&gt;Generic&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; employeeID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 'manager'&amp;amp;mgrLevel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; mgrName&lt;/P&gt;
&lt;P&gt;Resident tabManagerLevel;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FOR i = 0 to NoOfTables()&lt;/P&gt;
&lt;P&gt;&amp;nbsp; TableList:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LOAD TableName($(i)) as Tablename AUTOGENERATE 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; WHERE WildMatch(TableName($(i)), 'tabTemp.manager*');&lt;/P&gt;
&lt;P&gt;NEXT i&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FOR i = 1 to FieldValueCount('Tablename')&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vTable = FieldValue('Tablename', $(i));&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LEFT JOIN (tabOrganization) LOAD * RESIDENT $(vTable);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; DROP TABLE $(vTable);&lt;/P&gt;
&lt;P&gt;NEXT i&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP TABLE TableList;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (tabOrganization)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; mgrID as employeeID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Count(DISTINCT employeeID) as NumOfSubordinates&lt;/P&gt;
&lt;P&gt;Resident tabManagerLevel&lt;/P&gt;
&lt;P&gt;Where mgrLevel &amp;gt; 0&lt;/P&gt;
&lt;P&gt;Group By mgrID;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="56674" alt="QlikCommunity_Thread_112800_Pic10.JPG.jpg" class="jive-image" height="153" src="https://community.qlik.com/legacyfs/online/56674_QlikCommunity_Thread_112800_Pic10.JPG.jpg" style="width: 761px; height: 153.42741935483872px;" width="761" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="56675" alt="QlikCommunity_Thread_112800_Pic9.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/56675_QlikCommunity_Thread_112800_Pic9.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;This script uses a generic load to create the managerX fields and a technique described by &lt;/SPAN&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="2286" data-objecttype="3" href="https://community.qlik.com/people/rwunderlich" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Rob Wunderlich&lt;/A&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; to combine the generated tables into one: (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://qlikviewnotes.blogspot.de/2010/05/use-cases-for-generic-load.html" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Qlikview Notes: Use cases for Generic Load)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 22:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-lookup/m-p/588742#M680493</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-04-06T22:24:51Z</dc:date>
    </item>
  </channel>
</rss>

