<?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 Building a treeview/hierarchy with the mapping/applymapping function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Building-a-treeview-hierarchy-with-the-mapping-applymapping/m-p/315814#M1181177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to build a treeview/hierarchy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my data set I have 10 departments and I can group my departments into sales zones and those sales zone into sales regions. The only data point I can select in my tree view is the actual department number. I cannot select zones (e.g. US) nor region (e.g. North America); as depicted in the attach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I am constructing my hierarchy:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Department are sourced from a DB&lt;/LI&gt;&lt;LI&gt;Hierarchies are built with the help of inline tables.&lt;/LI&gt;&lt;/OL&gt;&lt;P style="padding-left: 22px;"&gt;2.1 step 1 is to define the mapping: e.g.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Mapping&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Dept, DeptMap&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;1,&amp;nbsp;&amp;nbsp; "North America.US.East"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;2,&amp;nbsp;&amp;nbsp; "North America.US.West"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;3,&amp;nbsp;&amp;nbsp; "North America.Canada.East"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 22px;"&gt;Etc… (in this case, East is department 1, West department 2, etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 22px;"&gt;2.2 step 2 is to apply this mapping to my original department filed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;applymap&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;('depttree',&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Dpt&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;dept_tree,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Since this didn’t work for me I tried mapping each department to each level of the hierarchy separately and then apply those to the original field. Didn’t work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing to get each level of the hierarchy selectable and actionable?&lt;/P&gt;&lt;P&gt;Many thanks!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2011 22:14:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-20T22:14:06Z</dc:date>
    <item>
      <title>Building a treeview/hierarchy with the mapping/applymapping function</title>
      <link>https://community.qlik.com/t5/QlikView/Building-a-treeview-hierarchy-with-the-mapping-applymapping/m-p/315814#M1181177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to build a treeview/hierarchy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my data set I have 10 departments and I can group my departments into sales zones and those sales zone into sales regions. The only data point I can select in my tree view is the actual department number. I cannot select zones (e.g. US) nor region (e.g. North America); as depicted in the attach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I am constructing my hierarchy:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Department are sourced from a DB&lt;/LI&gt;&lt;LI&gt;Hierarchies are built with the help of inline tables.&lt;/LI&gt;&lt;/OL&gt;&lt;P style="padding-left: 22px;"&gt;2.1 step 1 is to define the mapping: e.g.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Mapping&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Dept, DeptMap&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;1,&amp;nbsp;&amp;nbsp; "North America.US.East"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;2,&amp;nbsp;&amp;nbsp; "North America.US.West"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;3,&amp;nbsp;&amp;nbsp; "North America.Canada.East"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 22px;"&gt;Etc… (in this case, East is department 1, West department 2, etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 22px;"&gt;2.2 step 2 is to apply this mapping to my original department filed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;applymap&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;('depttree',&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Dpt&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;dept_tree,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Since this didn’t work for me I tried mapping each department to each level of the hierarchy separately and then apply those to the original field. Didn’t work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing to get each level of the hierarchy selectable and actionable?&lt;/P&gt;&lt;P&gt;Many thanks!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 22:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-a-treeview-hierarchy-with-the-mapping-applymapping/m-p/315814#M1181177</guid>
      <dc:creator />
      <dc:date>2011-12-20T22:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Building a treeview/hierarchy with the mapping/applymapping function</title>
      <link>https://community.qlik.com/t5/QlikView/Building-a-treeview-hierarchy-with-the-mapping-applymapping/m-p/315815#M1181181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mister_mapko, did you solve this problem? I think the reason you can only select the bottom rows in the hierarchy is that the upper levels don't have a row in your data. The list view feature expects that every level in the hierarchy will be represented by a row in the underlying data structure. The upper levels will have a 'parent' that points to nowhere because they are at the top level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somehow you would need to insert rows into your data for North America, Canada, Asia, China, etc, with the appropriate hierarchy on each one. Then your tree view should be selectable from top to bottom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 13:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-a-treeview-hierarchy-with-the-mapping-applymapping/m-p/315815#M1181181</guid>
      <dc:creator>jcarpenter9</dc:creator>
      <dc:date>2012-08-07T13:29:06Z</dc:date>
    </item>
  </channel>
</rss>

