<?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: Combine Parent Child values in chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Combine-Parent-Child-values-in-chart/m-p/1748209#M720543</link>
    <description>&lt;P&gt;this may be a modeling exercise.&lt;BR /&gt;assuming your transaction file has CODE field that stores both parent and child code, you just need a lookup table that has the parent child relationship,&amp;nbsp; this lookup must also have the parent code (see comment)&lt;/P&gt;&lt;P&gt;the chart will just be a simple dim=Parent, exp=sum(values)&amp;nbsp; nothing fancy&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;load * inline [
code,type,value
1000, Installation job,5000
1000.1, Warranty job,300
1000.2, Rectification job,600
1000.3, Variation job,100
];

load * inline [
parent, code
1000, 1000      //this is the parent code 
                 //so that the parent links back to the transaction file
1000, 1000.1
1000, 1000.2
1000, 1000.3
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 17:07:46 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2020-09-29T17:07:46Z</dc:date>
    <item>
      <title>Combine Parent Child values in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-Parent-Child-values-in-chart/m-p/1747906#M720542</link>
      <description>&lt;P&gt;Hi...hopefully a quick and easy solution.&lt;/P&gt;&lt;P&gt;In a straight table, I'm displaying a summary view of parent jobs. Each parent job however has 3 child jobs and I need to include the child job values as a sum total on the parent job row.&amp;nbsp; The child jobs are not to be displayed. The dimension is the parent record. As an example...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Parent record (code: 1000, type: Installation job) - value $5,000&lt;/LI&gt;&lt;LI&gt;Child record&lt;SPAN&gt; (code: 1000.1, type: Warranty job) - value $300&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Child record (code: 1000.2, type: Rectification job) - value $600&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Child record (code: 1000.3, type: Variation job) - value $100&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The invoice total for this row in my chart I'd want to see is $6,000.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The table back-end is a Transaction table containing all the job invoices and another Job table containing all the Job masterfiles where I also do a Lookup in the load script to find the records parent (storing it as [Job Parent]). The construct of the parent/child jobs above doesn't change across thousands of jobs. Every parent 'Installation' job will have its own 3 'Warranty, Rectification and Variation' child jobs.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried numerous methods using Set Analysis and Aggr but I'm missing something fundamental I feel.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help appreciated. Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-Parent-Child-values-in-chart/m-p/1747906#M720542</guid>
      <dc:creator>markaddax</dc:creator>
      <dc:date>2024-11-15T23:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Parent Child values in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-Parent-Child-values-in-chart/m-p/1748209#M720543</link>
      <description>&lt;P&gt;this may be a modeling exercise.&lt;BR /&gt;assuming your transaction file has CODE field that stores both parent and child code, you just need a lookup table that has the parent child relationship,&amp;nbsp; this lookup must also have the parent code (see comment)&lt;/P&gt;&lt;P&gt;the chart will just be a simple dim=Parent, exp=sum(values)&amp;nbsp; nothing fancy&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;load * inline [
code,type,value
1000, Installation job,5000
1000.1, Warranty job,300
1000.2, Rectification job,600
1000.3, Variation job,100
];

load * inline [
parent, code
1000, 1000      //this is the parent code 
                 //so that the parent links back to the transaction file
1000, 1000.1
1000, 1000.2
1000, 1000.3
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-Parent-Child-values-in-chart/m-p/1748209#M720543</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-09-29T17:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Parent Child values in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-Parent-Child-values-in-chart/m-p/1748333#M720544</link>
      <description>&lt;P&gt;Hi Edwin, you are indeed correct and I like the solution. Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 07:00:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-Parent-Child-values-in-chart/m-p/1748333#M720544</guid>
      <dc:creator>markaddax</dc:creator>
      <dc:date>2020-09-30T07:00:36Z</dc:date>
    </item>
  </channel>
</rss>

