<?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 Calculated Dimension for HierarchyBelongsTo in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculated-Dimension-for-HierarchyBelongsTo/m-p/1888869#M73229</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have used the&amp;nbsp;HierarchyBelongsTo function to create a table that lists each node, together with all the possible ancestors&lt;BR /&gt;&lt;BR /&gt;I would like to create a calculated dimension that returns the parent node fields for the selected nodes parents (Ancestor.Level=-1).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have managed to solve this problem in a number of ways...&lt;/P&gt;
&lt;P&gt;=aggr(nodistinct only(if(Ancestor.Type='$(=Only({&amp;lt;"=Num([Ancestor.Level])"={'-1'}&amp;gt;} Ancestor.Type))',Ancestor)),Node)&lt;BR /&gt;&lt;BR /&gt;However, I am struggling using the Only function when there are multiple parents - I would like to return all possible parents if that is possible.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Does anyone have any ideas?&lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2022 18:22:46 GMT</pubDate>
    <dc:creator>HonestToad</dc:creator>
    <dc:date>2022-02-03T18:22:46Z</dc:date>
    <item>
      <title>Calculated Dimension for HierarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/App-Development/Calculated-Dimension-for-HierarchyBelongsTo/m-p/1888869#M73229</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have used the&amp;nbsp;HierarchyBelongsTo function to create a table that lists each node, together with all the possible ancestors&lt;BR /&gt;&lt;BR /&gt;I would like to create a calculated dimension that returns the parent node fields for the selected nodes parents (Ancestor.Level=-1).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have managed to solve this problem in a number of ways...&lt;/P&gt;
&lt;P&gt;=aggr(nodistinct only(if(Ancestor.Type='$(=Only({&amp;lt;"=Num([Ancestor.Level])"={'-1'}&amp;gt;} Ancestor.Type))',Ancestor)),Node)&lt;BR /&gt;&lt;BR /&gt;However, I am struggling using the Only function when there are multiple parents - I would like to return all possible parents if that is possible.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Does anyone have any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 18:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculated-Dimension-for-HierarchyBelongsTo/m-p/1888869#M73229</guid>
      <dc:creator>HonestToad</dc:creator>
      <dc:date>2022-02-03T18:22:46Z</dc:date>
    </item>
  </channel>
</rss>

