<?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: Parent-child table multiplying in aggregate functions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Parent-child-table-multiplying-in-aggregate-functions/m-p/1408569#M33002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say join, do you mean you joined the tables in the script?&amp;nbsp; Or that you kept then as two separate tables linked by HouseholdID.&amp;nbsp; If you keep them as two tables (recommended) there should be no double counting. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you create one or two tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Nov 2017 22:09:53 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2017-11-16T22:09:53Z</dc:date>
    <item>
      <title>Parent-child table multiplying in aggregate functions</title>
      <link>https://community.qlik.com/t5/App-Development/Parent-child-table-multiplying-in-aggregate-functions/m-p/1408568#M33001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to QlikSense Desktop, but have significant SQL experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a parent table and a child table.&amp;nbsp; I have numeric values in the parent table that I want to be able to sum and average etc.&amp;nbsp; But when joined to the child table, those numeric values get muliplied by the number of rows in the child table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1:&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;Household&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp; HouseholdID&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp; HouseholdName&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp; NumberOfChildren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2:&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;Service&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&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; HouseholdID&lt;/P&gt;&lt;P&gt;&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; ServiceDate&lt;/P&gt;&lt;P&gt;&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; ServiceType&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example, I want to display the number of children that received certain types of services each year.&amp;nbsp; But the children should not be double (triple etc) counted.&amp;nbsp;&amp;nbsp; For example, of John and Sally's family received food assistance 4 times this year, or if they received food assistance just once this year, they should count as just 2 children either way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see how sometimes you might want it to multiply, but in our case we do not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I stop the multiplying?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 19:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Parent-child-table-multiplying-in-aggregate-functions/m-p/1408568#M33001</guid>
      <dc:creator>walkasia</dc:creator>
      <dc:date>2017-11-16T19:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Parent-child table multiplying in aggregate functions</title>
      <link>https://community.qlik.com/t5/App-Development/Parent-child-table-multiplying-in-aggregate-functions/m-p/1408569#M33002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say join, do you mean you joined the tables in the script?&amp;nbsp; Or that you kept then as two separate tables linked by HouseholdID.&amp;nbsp; If you keep them as two tables (recommended) there should be no double counting. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you create one or two tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 22:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Parent-child-table-multiplying-in-aggregate-functions/m-p/1408569#M33002</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-11-16T22:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Parent-child table multiplying in aggregate functions</title>
      <link>https://community.qlik.com/t5/App-Development/Parent-child-table-multiplying-in-aggregate-functions/m-p/1408570#M33003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree with Rob.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to Qlik too and I actually found that to be quite amazing of Qlik Sense. In regular SQL it would have been multiplied but not with Qlik associations! I still struggle getting my head around it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gwendly please put some simple sample data together and keep us posted. I'd like to see that issue you're having&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 22:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Parent-child-table-multiplying-in-aggregate-functions/m-p/1408570#M33003</guid>
      <dc:creator>luismadriz</dc:creator>
      <dc:date>2017-11-16T22:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Parent-child table multiplying in aggregate functions</title>
      <link>https://community.qlik.com/t5/App-Development/Parent-child-table-multiplying-in-aggregate-functions/m-p/1408571#M33004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems my problem is somehow in the source data in our database.&amp;nbsp; If I pull data from January 2014 onward (which is 30,000 activities), the numbers are correct.&amp;nbsp; When I pull data prior to January 2014, I am getting crazy numbers that I can't understand.&amp;nbsp; Because 2014 onward is clean, I think my QlikSense table configuration is fine.&amp;nbsp; I am still researching.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because I am so new to Qlik, your answers were still a huge help.&amp;nbsp; I was running around in circles trying different was to join and not join.&amp;nbsp; (in the SQL, in the Load script, linking in the data manager).&amp;nbsp; Your answers helped me know what my goal configuration SHOULD be, and which it now is... they are loaded as two different tables in the Load Script, with a commonly named key field, resulting in a natural linking in Qlik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am able to find out why I am having trouble with 2013 and earlier data, I will let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 19:44:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Parent-child-table-multiplying-in-aggregate-functions/m-p/1408571#M33004</guid>
      <dc:creator>walkasia</dc:creator>
      <dc:date>2017-11-17T19:44:10Z</dc:date>
    </item>
  </channel>
</rss>

