<?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: Problem with aggregate function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-aggregate-function/m-p/1202790#M1251591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression. You overally complicated your expression before&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Total {&amp;lt;Item&amp;gt;} GP)/Sum(Total {&amp;lt;Item&amp;gt;} Sales) * Sum(Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139687_Capture.PNG" style="height: 154px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Oct 2016 12:29:28 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-10-05T12:29:28Z</dc:date>
    <item>
      <title>Problem with aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggregate-function/m-p/1202787#M1251587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with AGGREGATE function. I am getting the GP value wrong when an item is selected. For example when an item &lt;STRONG&gt;a&lt;/STRONG&gt; is selected the GP value should be 2571.429 but it is showing 9000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached QVW for your information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggregate-function/m-p/1202787#M1251587</guid>
      <dc:creator>pkpandey</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggregate-function/m-p/1202788#M1251588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the logic behind getting 2571.429 here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 12:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggregate-function/m-p/1202788#M1251588</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-05T12:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggregate-function/m-p/1202789#M1251590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total GP for the month divided by total sales for the month and multiplied by the sales of that Item for the month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 12:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggregate-function/m-p/1202789#M1251590</guid>
      <dc:creator>pkpandey</dc:creator>
      <dc:date>2016-10-05T12:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggregate-function/m-p/1202790#M1251591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression. You overally complicated your expression before&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Total {&amp;lt;Item&amp;gt;} GP)/Sum(Total {&amp;lt;Item&amp;gt;} Sales) * Sum(Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139687_Capture.PNG" style="height: 154px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 12:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggregate-function/m-p/1202790#M1251591</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-05T12:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggregate-function/m-p/1202791#M1251593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Sum(Total {1} GP)/Sum(Total {1} Sales) * Sum(Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 12:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggregate-function/m-p/1202791#M1251593</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-05T12:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggregate-function/m-p/1202792#M1251595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 12:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggregate-function/m-p/1202792#M1251595</guid>
      <dc:creator>pkpandey</dc:creator>
      <dc:date>2016-10-05T12:35:41Z</dc:date>
    </item>
  </channel>
</rss>

