<?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 Hierarchy problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177879#M45284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alfredo I just sent you an email.....you might be able to use pieces of it.&lt;/P&gt;&lt;P&gt;Thom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2011 19:12:45 GMT</pubDate>
    <dc:creator>tmumaw</dc:creator>
    <dc:date>2011-03-23T19:12:45Z</dc:date>
    <item>
      <title>Hierarchy problem</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177874#M45279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone i have a problem and i want to now if someone can help me.&lt;/P&gt;&lt;P&gt;i have a table with this fields: SonID and ParentID these are production parts and i want to know how many sons a parent can have so i used Hierarchy and at first seems to work fine but only worked for some ParentID numbers but not for all of them, heres an example of the data i get from an SQL table&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3916_sourceID:3916" /&gt;&lt;/P&gt;&lt;P&gt;so, what im trying to do is if a SonID shows also as ParetID get that ParentID's SonID and put it as a new level like this&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3917_sourceID:3917" /&gt;&lt;/P&gt;&lt;P&gt;as you can see i found the SonID(9) in the ParentID column and create a new leve with that Parent's SonID, and also a SonID can at a time convert into a Parent and give place to multiple levels like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3918_sourceID:3918" /&gt;&lt;/P&gt;&lt;P&gt;you can have any number of sons and any number of levels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i apreciate your help in advance and hope that theres a way to do this, also i have the general idea of how to do this with For sentence but i find it hard to realize how to use it in QlikView if anyone knows how can i do this with For sentence ill apreciate as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 17:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177874#M45279</guid>
      <dc:creator />
      <dc:date>2011-03-23T17:53:51Z</dc:date>
    </item>
    <item>
      <title>Hierarchy problem</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177875#M45280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;without understanding your requirement accurately, - if you are only bothered about the number of sons one parent is having, you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Load ParentID, COUNT(SonID) as NumberOfSons From ... GROUP BY ParentID.;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 18:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177875#M45280</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2011-03-23T18:33:32Z</dc:date>
    </item>
    <item>
      <title>Hierarchy problem</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177876#M45281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to work with the SAP Hierarchy from FI?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 18:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177876#M45281</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2011-03-23T18:39:59Z</dc:date>
    </item>
    <item>
      <title>Hierarchy problem</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177877#M45282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Thom im extracting a table qith both fields from an SQL database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 19:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177877#M45282</guid>
      <dc:creator />
      <dc:date>2011-03-23T19:00:24Z</dc:date>
    </item>
    <item>
      <title>Hierarchy problem</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177878#M45283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Tresesco but no what i want at the end its a table with al the parents and their respective sons&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 19:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177878#M45283</guid>
      <dc:creator />
      <dc:date>2011-03-23T19:01:28Z</dc:date>
    </item>
    <item>
      <title>Hierarchy problem</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177879#M45284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alfredo I just sent you an email.....you might be able to use pieces of it.&lt;/P&gt;&lt;P&gt;Thom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 19:12:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177879#M45284</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2011-03-23T19:12:45Z</dc:date>
    </item>
    <item>
      <title>Hierarchy problem</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177880#M45285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Than yo very much Thome ill check it out&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 19:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177880#M45285</guid>
      <dc:creator />
      <dc:date>2011-03-23T19:30:57Z</dc:date>
    </item>
    <item>
      <title>Hierarchy problem</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177881#M45286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to use HIERARCHY, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;BR /&gt;HIERARCHY(SonID, ParentID,Level)&lt;BR /&gt;LOAD ParentID,&lt;BR /&gt; SonID,&lt;BR /&gt; SonID as Level&lt;BR /&gt;&lt;BR /&gt;FROM........;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/0211.table-view.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/0211.table-view.png" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 19:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177881#M45286</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2011-03-23T19:42:36Z</dc:date>
    </item>
    <item>
      <title>Hierarchy problem</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177882#M45287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tresesco that is actually what im doing but for some reason only works for some Parents not for all of them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 19:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-problem/m-p/177882#M45287</guid>
      <dc:creator />
      <dc:date>2011-03-23T19:52:21Z</dc:date>
    </item>
  </channel>
</rss>

