<?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 Aggregation on aggregation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggregation-on-aggregation/m-p/1860771#M71024</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a situation where I need to calculate 3 columns which I want to show as pie chart on a Geomap.&lt;/P&gt;
&lt;P&gt;eg.&lt;/P&gt;
&lt;P&gt;Sum(unitprice)*Sum(unitQty) as [Total SalesHealth],&lt;/P&gt;
&lt;P&gt;Sum(unitpriceCorp)*Sum(unitQtyCorp) as [Total SalesCorp],&lt;/P&gt;
&lt;P&gt;now after this both of these have to be included into one column in a crosstable. But the problem is when&amp;nbsp;[Total SalesHealth] and&amp;nbsp;[Total SalesCorp] are used individually in a chart in the chart where their calculations are directly written in the Expression window (fx), they show correct result but when they are included in one column and called upon as a measure, they give different value as the values get aggregated again.&lt;/P&gt;
&lt;P&gt;Please give a solution for this. Attached an excel for reference.&lt;/P&gt;
&lt;P&gt;Note - in Geomap's pie chart we don't have option to do the calculation for each column&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Nov 2021 16:25:32 GMT</pubDate>
    <dc:creator>KharansuESSPL</dc:creator>
    <dc:date>2021-11-30T16:25:32Z</dc:date>
    <item>
      <title>Aggregation on aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-on-aggregation/m-p/1860771#M71024</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a situation where I need to calculate 3 columns which I want to show as pie chart on a Geomap.&lt;/P&gt;
&lt;P&gt;eg.&lt;/P&gt;
&lt;P&gt;Sum(unitprice)*Sum(unitQty) as [Total SalesHealth],&lt;/P&gt;
&lt;P&gt;Sum(unitpriceCorp)*Sum(unitQtyCorp) as [Total SalesCorp],&lt;/P&gt;
&lt;P&gt;now after this both of these have to be included into one column in a crosstable. But the problem is when&amp;nbsp;[Total SalesHealth] and&amp;nbsp;[Total SalesCorp] are used individually in a chart in the chart where their calculations are directly written in the Expression window (fx), they show correct result but when they are included in one column and called upon as a measure, they give different value as the values get aggregated again.&lt;/P&gt;
&lt;P&gt;Please give a solution for this. Attached an excel for reference.&lt;/P&gt;
&lt;P&gt;Note - in Geomap's pie chart we don't have option to do the calculation for each column&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 16:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-on-aggregation/m-p/1860771#M71024</guid>
      <dc:creator>KharansuESSPL</dc:creator>
      <dc:date>2021-11-30T16:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-on-aggregation/m-p/1860778#M71025</link>
      <description>&lt;P&gt;Hello.&lt;BR /&gt;&lt;BR /&gt;Could you please provide some screenshots to clarify ?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Simon&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 07:06:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-on-aggregation/m-p/1860778#M71025</guid>
      <dc:creator>simonaubert</dc:creator>
      <dc:date>2021-11-18T07:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-on-aggregation/m-p/1860796#M71028</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KharansuESSPL_0-1637220818073.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/66905iE14843A3CF5E40EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KharansuESSPL_0-1637220818073.png" alt="KharansuESSPL_0-1637220818073.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KharansuESSPL_1-1637220848676.png" style="width: 126px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/66906i2B572790077A6D21/image-dimensions/126x191?v=v2" width="126" height="191" role="button" title="KharansuESSPL_1-1637220848676.png" alt="KharansuESSPL_1-1637220848676.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically I want Totals of both the above columns to be same. So the&amp;nbsp;&lt;STRONG&gt;Total SalesHealth - Calc&amp;nbsp;&lt;/STRONG&gt;is the value I get for a line chart or any other chart where I can directly calculate it in the sheet but&amp;nbsp;&lt;STRONG&gt;Sum([Total SalesHealth])&amp;nbsp;&lt;/STRONG&gt;is the one which 'am calculating in script window and again calling here as I should not calculate here but the problem is I can't call it as a dimension too&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KharansuESSPL_2-1637221170022.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/66907i835852098024581C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KharansuESSPL_2-1637221170022.png" alt="KharansuESSPL_2-1637221170022.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;to simplify - How can I put two different calculated columns in one and show on a pie chart layer on a geomap?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 07:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-on-aggregation/m-p/1860796#M71028</guid>
      <dc:creator>KharansuESSPL</dc:creator>
      <dc:date>2021-11-18T07:42:23Z</dc:date>
    </item>
  </channel>
</rss>

