<?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: Storing Hierarchy Tables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Storing-Hierarchy-Tables/m-p/2468773#M99496</link>
    <description>&lt;P&gt;Try explicitly naming your table and then referring to that name.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;parent_child:

  sql
  SELECT ole.item_id AS "NodeId",
         ole.PARENT AS "ParentId",
         ole."name" AS "NodeName",
         ole.assignment_group as assignment_group,
         agd."name" as group_name 
  FROM tfm.org_logical_entity ole
  left join tfm.assignment_group_details agd
  on agd.snow_sys_id = ole.assignment_group
  ;

[FlatHierarchy]:
Hierarchy(NodeId, ParentId, NodeName, ParentName, NodeName, pathname, '\', Depth) 
load * resident parent_child;

drop table parent_child;
Store FlatHierarchy into [file.qvd](qvd);&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 08 Jul 2024 14:58:53 GMT</pubDate>
    <dc:creator>chriscammers</dc:creator>
    <dc:date>2024-07-08T14:58:53Z</dc:date>
    <item>
      <title>Storing Hierarchy Tables</title>
      <link>https://community.qlik.com/t5/App-Development/Storing-Hierarchy-Tables/m-p/2468760#M99495</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;i've got a table of parent child relationships which i use the hierarchy function on to flatten it.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;parent_child:

  sql
  SELECT ole.item_id AS "NodeId",
         ole.PARENT AS "ParentId",
         ole."name" AS "NodeName",
         ole.assignment_group as assignment_group,
         agd."name" as group_name 
  FROM tfm.org_logical_entity ole
  left join tfm.assignment_group_details agd
  on agd.snow_sys_id = ole.assignment_group
  ;

Hierarchy(NodeId, ParentId, NodeName, ParentName, NodeName, pathname, '\', Depth) 
load * resident parent_child;

drop table parent_child;&lt;/LI-CODE&gt;
&lt;P&gt;Problem is that I cant seem to find a way to refer to the columns created by that function in order to use them for script aggregations because qlik sense creates it with the "-ExpandedNodes" suffix to its name and the load script is having a hard time with the first dash on the left.&lt;/P&gt;
&lt;P&gt;Thought about storing the table first but again, for the reason specified before, qlik doesn't react to well to using that character and I'm getting the following error&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;The error occurred here:
store parent_child&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;-&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;ExpandedNodes into lib://Main_Connection/pacificlife_sr/ETL/DEV/parent_child-ExpandedNodes.qvd]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone encountered this error before? how did you overcome it?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Ori.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 14:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Storing-Hierarchy-Tables/m-p/2468760#M99495</guid>
      <dc:creator>Ori_Hait</dc:creator>
      <dc:date>2024-07-08T14:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Storing Hierarchy Tables</title>
      <link>https://community.qlik.com/t5/App-Development/Storing-Hierarchy-Tables/m-p/2468773#M99496</link>
      <description>&lt;P&gt;Try explicitly naming your table and then referring to that name.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;parent_child:

  sql
  SELECT ole.item_id AS "NodeId",
         ole.PARENT AS "ParentId",
         ole."name" AS "NodeName",
         ole.assignment_group as assignment_group,
         agd."name" as group_name 
  FROM tfm.org_logical_entity ole
  left join tfm.assignment_group_details agd
  on agd.snow_sys_id = ole.assignment_group
  ;

[FlatHierarchy]:
Hierarchy(NodeId, ParentId, NodeName, ParentName, NodeName, pathname, '\', Depth) 
load * resident parent_child;

drop table parent_child;
Store FlatHierarchy into [file.qvd](qvd);&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 08 Jul 2024 14:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Storing-Hierarchy-Tables/m-p/2468773#M99496</guid>
      <dc:creator>chriscammers</dc:creator>
      <dc:date>2024-07-08T14:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Storing Hierarchy Tables</title>
      <link>https://community.qlik.com/t5/App-Development/Storing-Hierarchy-Tables/m-p/2468781#M99498</link>
      <description>&lt;P&gt;If the table referenced in the store statement contains special characters, it should be enclosed in [] or "".&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Store [parent_child-ExpandedNodes] into ...&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 18:19:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Storing-Hierarchy-Tables/m-p/2468781#M99498</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2024-07-08T18:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Storing Hierarchy Tables</title>
      <link>https://community.qlik.com/t5/App-Development/Storing-Hierarchy-Tables/m-p/2468959#M99512</link>
      <description>&lt;P&gt;So embarrassing, thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 06:08:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Storing-Hierarchy-Tables/m-p/2468959#M99512</guid>
      <dc:creator>Ori_Hait</dc:creator>
      <dc:date>2024-07-09T06:08:50Z</dc:date>
    </item>
  </channel>
</rss>

