<?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: Script Customer Table Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34770#M5855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you have to use &lt;STRONG&gt;hierarchy&lt;/STRONG&gt; and &lt;STRONG&gt;hierarchy belong to&lt;/STRONG&gt; functions&lt;/P&gt;&lt;P&gt;Please take a look at qlik help about those two functions.&lt;/P&gt;&lt;P&gt;Meanwhile I keep on working on it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2018 14:07:54 GMT</pubDate>
    <dc:creator>bc-thebruuu</dc:creator>
    <dc:date>2018-05-16T14:07:54Z</dc:date>
    <item>
      <title>Script Customer Table Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34765#M5850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! I need your HELP please!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a table in QLIK-VIEW with 2 columns. One is name of customer, two his group-leader (if &lt;SPAN lang="en"&gt;exists).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The group-leader is in turn a customer present in the first column.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Immagine1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/202414_Immagine1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;In this case exists 3 groups of customers:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;YELLOW&lt;/SPAN&gt; group with customers C1, C3, C7, C5, C8, C9.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;BLUE&lt;/SPAN&gt; group with customers C4, C6&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;WHITE&lt;/SPAN&gt; group with a customer C2 without group leader.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I create a Multiple Box filter named CUSTOMER_SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select C1 I'd like to come out the customer table with C1, C3, C7, C5, C8, C9. And the same if I select C3, C5, C7, etc&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If I select C4 I'd like to come out the customer table with C4. And the same if I select C6.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If I select C2 I'd like to come out C2 only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Examples:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;IMG alt="Immagine2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/202461_Immagine2.jpg" style="height: auto;" /&gt; &lt;IMG alt="Immagine3.jpg" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/202462_Immagine3.jpg" style="height: auto;" /&gt; &lt;IMG alt="Immagine4.jpg" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/202463_Immagine4.jpg" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;IMG alt="Immagine5.jpg" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/202464_Immagine5.jpg" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN lang="en"&gt;How can the script be created?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN lang="en"&gt;Thank you!!!!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN lang="en"&gt;Marco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 14:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34765#M5850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-15T14:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script Customer Table Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34766#M5851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I added another column, called "Class" as to the group colors you mentioned (YELLOW,BLUE and WHITE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_152647116463325" jivemacro_uid="_152647116463325"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;load * Inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;Group,Leader,Class&lt;/P&gt;
&lt;P&gt;C1,,YELLOW&lt;/P&gt;
&lt;P&gt;C2,,WHITE&lt;/P&gt;
&lt;P&gt;C3,C7,YELLOW&lt;/P&gt;
&lt;P&gt;C4,C6,BLUE&lt;/P&gt;
&lt;P&gt;C5,C8,YELLOW&lt;/P&gt;
&lt;P&gt;C6,,BLUE&lt;/P&gt;
&lt;P&gt;C7,C8,YELLOW&lt;/P&gt;
&lt;P&gt;C8,C9,YELLOW&lt;/P&gt;
&lt;P&gt;C9,C1,YELLOW&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this data, I created a filter with the following expression:&lt;/P&gt;&lt;P&gt;=aggr(only({&amp;lt;Class=P(Class),Group=P({&amp;lt;Group&amp;gt;}Group)&amp;gt;}Group),Group)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The aggr will return a table, with the possible values for Groups where the class (YELLOW,WHITE or BLUE) is equal to the selected.&lt;/P&gt;&lt;P&gt;So, if I select C1, which has the YELLOW Class, it will bring all group values of this Class, as seen bellow:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="202538" alt="sample.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/202538_sample.png" style="height: 496px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached the QVW I used.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Felipe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 11:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34766#M5851</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2018-05-16T11:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Script Customer Table Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34767#M5852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Felipe, thank's for your kindness but I can't added another column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The customers are 6'000 and the "Class" must be found &lt;SPAN lang="en"&gt;automatically.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;If I select C1, the table have to &lt;SPAN lang="en"&gt;display C1, C3, C5, C7, C8, C9 because these customer are related. I select a customer and the table have to display his group of customers.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 12:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34767#M5852</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-16T12:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script Customer Table Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34768#M5853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ciao Marco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share a test app, pls?&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 13:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34768#M5853</guid>
      <dc:creator>bc-thebruuu</dc:creator>
      <dc:date>2018-05-16T13:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script Customer Table Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34769#M5854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, but that's contain the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example, if&amp;nbsp; I choose CUSTOMER_TEMP=C4, result is a table with C4, C6... it's ok. &lt;SPAN style="font-size: 10pt;"&gt;The same if I choose &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER_TEMP=C6. (C6 is leader of C4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Also if I chose &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER_TEMP=C2, appear only C2 because this customer have no leader.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For "groups" of 1 or 2 customer it's ok.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;But if I choose &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER_TEMP=C5 I'd like to find all the customer related, so:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;C3 and his leader C7.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;C7 and his leader C8, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;which in turn is a leader of C5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;C8 and his leader C9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;C9 and his leader C1... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Recap, a table with C1, C3, C5, C7, C8 and C9&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 13:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34769#M5854</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-16T13:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script Customer Table Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34770#M5855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you have to use &lt;STRONG&gt;hierarchy&lt;/STRONG&gt; and &lt;STRONG&gt;hierarchy belong to&lt;/STRONG&gt; functions&lt;/P&gt;&lt;P&gt;Please take a look at qlik help about those two functions.&lt;/P&gt;&lt;P&gt;Meanwhile I keep on working on it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 14:07:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34770#M5855</guid>
      <dc:creator>bc-thebruuu</dc:creator>
      <dc:date>2018-05-16T14:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script Customer Table Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34771#M5856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank's Bruno! &lt;SPAN style="font-size: 10pt;"&gt;It's a step forward! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now I'm here, look the attached app...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I need that if I select a single CUSTOMER, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;the table is filtered for the whole GROUP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;How can I do?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 07:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34771#M5856</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-17T07:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script Customer Table Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34772#M5857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ciao Marco&lt;/P&gt;&lt;P&gt;First,&lt;/P&gt;&lt;P&gt;the hierarchy was not aligned with the description you provided:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the good one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hierarchy(NodeID, ParentID, NodeName, NodeParent, NodeName, NodePath, '/', NodeDepth) LOAD * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;NodeID, ParentID, NodeName&lt;/P&gt;&lt;P&gt;C1,root,C1 &lt;/P&gt;&lt;P&gt;C2,root,C2&lt;/P&gt;&lt;P&gt;C6,root,C6&lt;/P&gt;&lt;P&gt;C3,C7,C3&amp;nbsp; &lt;/P&gt;&lt;P&gt;C4,C6,C4&amp;nbsp; &lt;/P&gt;&lt;P&gt;C5,C8,C5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;C7,C8,C7&amp;nbsp; &lt;/P&gt;&lt;P&gt;C8,C9,C8&amp;nbsp; &lt;/P&gt;&lt;P&gt;C9,C1,C9 &lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NodeName was containing a copy of ParentID in the version you provided&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 12:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34772#M5857</guid>
      <dc:creator>bc-thebruuu</dc:creator>
      <dc:date>2018-05-17T12:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script Customer Table Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34773#M5858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ciao Bruno!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grazie!...&lt;/P&gt;&lt;P&gt;Now how can I make sure that if I select a single CUSTOMER I get all the group in the right table?&lt;/P&gt;&lt;P&gt;Example... I select C3 in the left filter and obtain a list of C1,C3,C5,C7,C8, C9 on the right table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 10:21:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Customer-Table-Help/m-p/34773#M5858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-22T10:21:20Z</dc:date>
    </item>
  </channel>
</rss>

