<?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: Creating hierarchy in data column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-hierarchy-in-data-column/m-p/1036402#M928360</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Find attachment! !&lt;/P&gt;&lt;P&gt;It's hierarchy and pivot table, but I'm not sure that it is possible to do vertical pivot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Mar 2016 14:30:51 GMT</pubDate>
    <dc:creator>t_chetirbok</dc:creator>
    <dc:date>2016-03-21T14:30:51Z</dc:date>
    <item>
      <title>Creating hierarchy in data column</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-hierarchy-in-data-column/m-p/1036401#M928359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My client wants to view a table with a hierarchy (Region-&amp;gt; Sub-Region -&amp;gt; Country).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Table.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/118775_Table.PNG" style="height: 283px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But they all come in a single column, "Country".&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Data.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/118776_Data.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Please find attached sample data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question would be, what is the best approach to create the hierarchy while&lt;SPAN style="font-size: 13.3333px;"&gt;/after &lt;/SPAN&gt;loading the data? And how should I create the table in desired format (with proper spacing, parent-&amp;gt;child like Nordics-&amp;gt; Norway)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ahammad Shafi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-hierarchy-in-data-column/m-p/1036401#M928359</guid>
      <dc:creator>ahammadshafi</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating hierarchy in data column</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-hierarchy-in-data-column/m-p/1036402#M928360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Find attachment! !&lt;/P&gt;&lt;P&gt;It's hierarchy and pivot table, but I'm not sure that it is possible to do vertical pivot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 14:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-hierarchy-in-data-column/m-p/1036402#M928360</guid>
      <dc:creator>t_chetirbok</dc:creator>
      <dc:date>2016-03-21T14:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating hierarchy in data column</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-hierarchy-in-data-column/m-p/1036403#M928361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahammad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, you need to add the ID for the Node and the Parent. I attach the Excel file with the example.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Parent.png" class="jive-image image-1" height="344" src="https://community.qlik.com/legacyfs/online/118822_Parent.png" style="height: 343.535483870968px; width: 416px;" width="416" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use the Hierarchy Logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14585745531288092 jive_text_macro" jivemacro_uid="_14585745531288092" modifiedtitle="true"&gt;
&lt;P&gt;Aux:&lt;/P&gt;
&lt;P&gt;LOAD Geo_Level,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ParentID, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CountryID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[Sample Data.xlsx]&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Data);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;Hierarchy(CountryID, ParentID, Country) &lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp; CountryID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ParentID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Country&lt;/P&gt;
&lt;P&gt;Resident Aux;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;LOAD Geo_Level,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CountryID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[Sample Data.xlsx]&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Data);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;drop Table Aux;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;EXIT Script;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result is something like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-03-21_12-40-47.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/118829_2016-03-21_12-40-47.png" style="height: auto;" /&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;Agustin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 15:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-hierarchy-in-data-column/m-p/1036403#M928361</guid>
      <dc:creator>agustinbobba</dc:creator>
      <dc:date>2016-03-21T15:42:21Z</dc:date>
    </item>
  </channel>
</rss>

