<?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: Overlapping sums and hierarchy in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Overlapping-sums-and-hierarchy/m-p/1788429#M61557</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for providing this solution. It seems to tackle the problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Mar 2021 16:01:31 GMT</pubDate>
    <dc:creator>John321</dc:creator>
    <dc:date>2021-03-04T16:01:31Z</dc:date>
    <item>
      <title>Overlapping sums and hierarchy</title>
      <link>https://community.qlik.com/t5/App-Development/Overlapping-sums-and-hierarchy/m-p/1787376#M61435</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm pretty new to Qlik Sense and I'm having trouble solving this kind of problem.&lt;/P&gt;&lt;P&gt;So lets say here is the data...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Codename&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sums&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Code1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;/P&gt;&lt;P&gt;Code2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&lt;/P&gt;&lt;P&gt;Code3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;30&lt;/P&gt;&lt;P&gt;Code4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;/P&gt;&lt;P&gt;and I would need to transform it into this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum of Hierarchy1&amp;nbsp; &amp;nbsp;30&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Code1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Code2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20&lt;/P&gt;&lt;P&gt;Sum of Hierarchy2&amp;nbsp; &amp;nbsp; 70&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Code3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;30&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Code4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So codes 1 and 2 belong to a certain hierarchy and so do codes 3 and 4. The thing is that the subtotal of codes 3 and 4 need to take the other subtotal into account.&lt;/P&gt;&lt;P&gt;I've run out of ideas how should I do this. Could you help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 09:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Overlapping-sums-and-hierarchy/m-p/1787376#M61435</guid>
      <dc:creator>John321</dc:creator>
      <dc:date>2021-03-02T09:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping sums and hierarchy</title>
      <link>https://community.qlik.com/t5/App-Development/Overlapping-sums-and-hierarchy/m-p/1787399#M61441</link>
      <description>&lt;P&gt;So, are you saying that Code 1 and Code 2 belong to Hierarchy1 and Hierarchy 2, whereas Code3 and Code 4 only belong to Hierarchy 2? Also, does the data have to be displayed in a table exactly as you have shown with codes then sub-total?&amp;nbsp; It will be more complicated to show only the additional codes under Hierarchy 2 rather than alll of the codes.&lt;/P&gt;&lt;P&gt;Do you have an app you can post to save me time having to create one?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 10:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Overlapping-sums-and-hierarchy/m-p/1787399#M61441</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2021-03-02T10:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping sums and hierarchy</title>
      <link>https://community.qlik.com/t5/App-Development/Overlapping-sums-and-hierarchy/m-p/1787411#M61443</link>
      <description>&lt;P&gt;Hi Rbartley,&lt;/P&gt;&lt;P&gt;Yes. So what I need to do is to have the Hierarchy1 total included in Hierarchy2 total. So all in all Hierarchy2 has all the codes included.&lt;/P&gt;&lt;P&gt;Unfortunately I don't have the possibility to send an app... This is due to my company.&lt;/P&gt;&lt;P&gt;I wonder if this is possible to do with parent child hierarchy or some sort of?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 10:16:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Overlapping-sums-and-hierarchy/m-p/1787411#M61443</guid>
      <dc:creator>John321</dc:creator>
      <dc:date>2021-03-02T10:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping sums and hierarchy</title>
      <link>https://community.qlik.com/t5/App-Development/Overlapping-sums-and-hierarchy/m-p/1788008#M61505</link>
      <description>&lt;P&gt;The only way that I can think of achieving what you are asking for would be to edit your data model to create the hierarchy sub totals as though they were codes and then create a sort order field to achieve the correct ordering.&amp;nbsp; The problem for a standard pivot table is the fact that you have codes belonging to multiple hierarchies.&lt;/P&gt;&lt;P&gt;So, you would start with the initial data load, which gives you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Codename&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sums&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Code1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;/P&gt;&lt;P&gt;Code2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&lt;/P&gt;&lt;P&gt;Code3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;30&lt;/P&gt;&lt;P&gt;Code4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then create a further load statement with Code 'Sum Hierarchy 1' summing the sums field for the codes in hierarchy 1 concatenated with the first table, then another load statement with Code 'Sum Hierarchy 2' summing the sum field for the codes in hierarchy 2. You would also need to add a sort field with 'Sum Hierarchy 1' with value 1, Code 2 with sort value 2,...'Sum of Hierarchy 2' with value 4, etc.....&lt;/P&gt;&lt;P&gt;Take a look at the attached qvf file, but bear in mind that this has been designed to fit the specific case you mentioned above; you might need to adapt it further to meet your full requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 16:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Overlapping-sums-and-hierarchy/m-p/1788008#M61505</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2021-03-03T16:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping sums and hierarchy</title>
      <link>https://community.qlik.com/t5/App-Development/Overlapping-sums-and-hierarchy/m-p/1788429#M61557</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for providing this solution. It seems to tackle the problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 16:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Overlapping-sums-and-hierarchy/m-p/1788429#M61557</guid>
      <dc:creator>John321</dc:creator>
      <dc:date>2021-03-04T16:01:31Z</dc:date>
    </item>
  </channel>
</rss>

