<?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 qlikview  tree representation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/qlikview-tree-representation/m-p/362280#M705073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;which structure I must to use to represente in QLIKVIEW &lt;/P&gt;&lt;P&gt;dynamic tree ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt; do not&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;know&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in advance&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;how many levels&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of the trees.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;Should I use&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;load statement the hierachy load ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;If I use &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;hierachy I have this error&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIERARCHY parameter NodeName&amp;nbsp; is not a valid field....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me?&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;Oronzo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2012 11:44:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-21T11:44:50Z</dc:date>
    <item>
      <title>qlikview  tree representation</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-tree-representation/m-p/362280#M705073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;which structure I must to use to represente in QLIKVIEW &lt;/P&gt;&lt;P&gt;dynamic tree ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt; do not&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;know&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in advance&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;how many levels&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of the trees.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;Should I use&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;load statement the hierachy load ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;If I use &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;hierachy I have this error&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIERARCHY parameter NodeName&amp;nbsp; is not a valid field....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me?&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;Oronzo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 11:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-tree-representation/m-p/362280#M705073</guid>
      <dc:creator />
      <dc:date>2012-03-21T11:44:50Z</dc:date>
    </item>
    <item>
      <title>qlikview  tree representation</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-tree-representation/m-p/362281#M705074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oronzo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Others would be better able to help you if you posted the complete load statement, or a qvw file containing the load in question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 12:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-tree-representation/m-p/362281#M705074</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-03-21T12:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: qlikview  tree representation</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-tree-representation/m-p/362282#M705075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have right. The Load&amp;nbsp; Statement is from mysql database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I don't understand how to use correctly the statement Hierarchy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;Hierarchy(GDO_cli, GDO_sup, GDO_des ) Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GDO_cli as l_cdc,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GDO_sup as l_sup,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GDO_des as l_des&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;resident gdoret;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Oronzo&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 12:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-tree-representation/m-p/362282#M705075</guid>
      <dc:creator />
      <dc:date>2012-03-21T12:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: qlikview  tree representation</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-tree-representation/m-p/362283#M705076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oronzo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Minimum paramaters for Hierarchy are&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Node ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Parent Node ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Node Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you have?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should get a table containing all the fields in you LOAD statement, plus the Node ID, Node Name, and a set of field named [Node Name1], [Node Name2], ... [Node NameN] which represent the succesive parents to the top of the tree (Node Name1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&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"&gt;&lt;P&gt;&lt;EM&gt;tmpDimDealClass:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;LOAD CD AS DealClass.ID,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // node ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAME AS DealClass.Name,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // node name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUP_CD AS DealClass.Parent;&amp;nbsp;&amp;nbsp; // parent node ID&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM OUTPUT.DIM_DEAL_CLASS;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DealClassRollup:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Hierarchy(DealClass.ID, DealClass.Parent, DealClass.Name)&lt;/P&gt;&lt;P&gt;LOAD Distinct * Resident tmpDimDealClass;&lt;/P&gt;&lt;P&gt;DROP Table tmpDimDealClass;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Produces:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="101"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="101"&gt;DealClass.ID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;DealClass.Name&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;DealClass.Name1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;DealClass.Name2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;DealClass.Name3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;DealClass.Name4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;DealClass.Name5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;DealClass.Name6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;&lt;P&gt;DealClass.Parent&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 12:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-tree-representation/m-p/362283#M705076</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-03-21T12:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: qlikview  tree representation</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-tree-representation/m-p/362284#M705077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Jonathan your answer was very helpful&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;Oronzo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 16:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-tree-representation/m-p/362284#M705077</guid>
      <dc:creator />
      <dc:date>2012-03-21T16:30:02Z</dc:date>
    </item>
  </channel>
</rss>

