<?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: Calculating Market Share in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Market-Share/m-p/930579#M321768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool..&lt;/P&gt;&lt;P&gt;I got your point. Thank you very much Simen for explaining this point. It's really very helpful. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Sep 2015 09:13:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-24T09:13:08Z</dc:date>
    <item>
      <title>Calculating Market Share</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Market-Share/m-p/930575#M321764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have below table in market share I want total of Year. its working fine but value is showing in 1st row of every year.&lt;/P&gt;&lt;P&gt;I have used aggr function =aggr(sum(Sale),Year).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show total of 2012 of every row of 2012 and total of 2013 in every row of 2013 and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Maksood Alam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 08:19:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Market-Share/m-p/930575#M321764</guid>
      <dc:creator />
      <dc:date>2015-09-24T08:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Market Share</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Market-Share/m-p/930576#M321765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum(Total &amp;lt;Year&amp;gt; Sale)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 08:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Market-Share/m-p/930576#M321765</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2015-09-24T08:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Market Share</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Market-Share/m-p/930577#M321766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Simen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 08:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Market-Share/m-p/930577#M321766</guid>
      <dc:creator />
      <dc:date>2015-09-24T08:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Market Share</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Market-Share/m-p/930578#M321767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing you actually asked about is the reason why your expression only gives you the value in the first row. This is because the Aggr function is distinct by default, meaning it will only populate one of the lines. So to specifically answer your question, you can use the function &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt; =aggr(NODISTINCT sum(Sale),Year).&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;However, the reason I replied with the above expression is because its performance is much better and in this case will yield the right answer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;SKG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 09:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Market-Share/m-p/930578#M321767</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2015-09-24T09:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Market Share</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Market-Share/m-p/930579#M321768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool..&lt;/P&gt;&lt;P&gt;I got your point. Thank you very much Simen for explaining this point. It's really very helpful. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 09:13:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Market-Share/m-p/930579#M321768</guid>
      <dc:creator />
      <dc:date>2015-09-24T09:13:08Z</dc:date>
    </item>
  </channel>
</rss>

