<?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: Getting the sum of a grouping in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Getting-the-sum-of-a-grouping/m-p/1850227#M70271</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;If the ID and Item is same then your value should be 900 for ID 0001, Item AAA.&lt;/P&gt;
&lt;P&gt;Sum will give segregated values only if there are different Items under one ID.&lt;/P&gt;
&lt;P&gt;Your straight table should have below data:&lt;/P&gt;
&lt;P&gt;Dimensions : ID, Item&lt;/P&gt;
&lt;P&gt;Measure : Sum(Cost)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanls,&lt;/P&gt;
&lt;P&gt;Ashutosh&lt;/P&gt;</description>
    <pubDate>Thu, 21 Oct 2021 16:08:54 GMT</pubDate>
    <dc:creator>AshutoshBhumkar</dc:creator>
    <dc:date>2021-10-21T16:08:54Z</dc:date>
    <item>
      <title>Getting the sum of a grouping</title>
      <link>https://community.qlik.com/t5/App-Development/Getting-the-sum-of-a-grouping/m-p/1850199#M70267</link>
      <description>&lt;P&gt;I am having trouble with a (seemingly) simple sum issue.&lt;/P&gt;
&lt;P&gt;I have a data structure like this:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;ID&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;Item&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;Cost&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;0001&lt;/TD&gt;
&lt;TD&gt;AAA&lt;/TD&gt;
&lt;TD&gt;200&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;0001&lt;/TD&gt;
&lt;TD&gt;AAA&lt;/TD&gt;
&lt;TD&gt;400&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;0001&lt;/TD&gt;
&lt;TD&gt;AAA&lt;/TD&gt;
&lt;TD&gt;300&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;0002&lt;/TD&gt;
&lt;TD&gt;BBB&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
100&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;0002&lt;/TD&gt;
&lt;TD&gt;BBB&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;100&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;When I do a =Sum(Cost), it gives me the line item number (the same as the cost), but I need to sum by the ID so 0001 has a total cost of 900, 0002 has a total cost of 200, etc.&lt;/P&gt;
&lt;P&gt;I am sure I am overthinking something&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 16:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Getting-the-sum-of-a-grouping/m-p/1850199#M70267</guid>
      <dc:creator>Evan0211</dc:creator>
      <dc:date>2021-12-22T16:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the sum of a grouping</title>
      <link>https://community.qlik.com/t5/App-Development/Getting-the-sum-of-a-grouping/m-p/1850227#M70271</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;If the ID and Item is same then your value should be 900 for ID 0001, Item AAA.&lt;/P&gt;
&lt;P&gt;Sum will give segregated values only if there are different Items under one ID.&lt;/P&gt;
&lt;P&gt;Your straight table should have below data:&lt;/P&gt;
&lt;P&gt;Dimensions : ID, Item&lt;/P&gt;
&lt;P&gt;Measure : Sum(Cost)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanls,&lt;/P&gt;
&lt;P&gt;Ashutosh&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 16:08:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Getting-the-sum-of-a-grouping/m-p/1850227#M70271</guid>
      <dc:creator>AshutoshBhumkar</dc:creator>
      <dc:date>2021-10-21T16:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the sum of a grouping</title>
      <link>https://community.qlik.com/t5/App-Development/Getting-the-sum-of-a-grouping/m-p/1850253#M70273</link>
      <description>&lt;P&gt;If I have understood the question correctly, try:&lt;/P&gt;
&lt;P&gt;SUM(Total &amp;lt;ID&amp;gt; Cost)&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 16:26:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Getting-the-sum-of-a-grouping/m-p/1850253#M70273</guid>
      <dc:creator>jlg</dc:creator>
      <dc:date>2021-10-21T16:26:57Z</dc:date>
    </item>
  </channel>
</rss>

