<?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 Total Sales by Group (Product Share over specific total) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-Sales-by-Group-Product-Share-over-specific-total/m-p/1162204#M378785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table where I need to calculate each Product's Share over it's Relevan Market.&lt;/P&gt;&lt;P&gt;A Product can be a part of one or more Relevant Markets, or Groups.&lt;/P&gt;&lt;P&gt;It's share is the sales / total sales of the groups it participates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Product A sold $50 for Group1 and $100 for Group2.&lt;/P&gt;&lt;P&gt;Group1 total is $1,000 and Group2 total is $500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product A Share is:&lt;/P&gt;&lt;P&gt;$150 / $1,500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to use Sum (TOTAL &amp;lt;Group&amp;gt; Sales), Aggr(Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;Sales&lt;/SPAN&gt;), Group), Aggr(NODISTINCT), etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Till now, no go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a sample file with the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2016 03:35:44 GMT</pubDate>
    <dc:creator>kira_whopper</dc:creator>
    <dc:date>2016-08-10T03:35:44Z</dc:date>
    <item>
      <title>Total Sales by Group (Product Share over specific total)</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Sales-by-Group-Product-Share-over-specific-total/m-p/1162204#M378785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table where I need to calculate each Product's Share over it's Relevan Market.&lt;/P&gt;&lt;P&gt;A Product can be a part of one or more Relevant Markets, or Groups.&lt;/P&gt;&lt;P&gt;It's share is the sales / total sales of the groups it participates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Product A sold $50 for Group1 and $100 for Group2.&lt;/P&gt;&lt;P&gt;Group1 total is $1,000 and Group2 total is $500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product A Share is:&lt;/P&gt;&lt;P&gt;$150 / $1,500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to use Sum (TOTAL &amp;lt;Group&amp;gt; Sales), Aggr(Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;Sales&lt;/SPAN&gt;), Group), Aggr(NODISTINCT), etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Till now, no go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a sample file with the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 03:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Sales-by-Group-Product-Share-over-specific-total/m-p/1162204#M378785</guid>
      <dc:creator>kira_whopper</dc:creator>
      <dc:date>2016-08-10T03:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sales by Group (Product Share over specific total)</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Sales-by-Group-Product-Share-over-specific-total/m-p/1162205#M378786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this one?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/134154_Untitled.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 04:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Sales-by-Group-Product-Share-over-specific-total/m-p/1162205#M378786</guid>
      <dc:creator>arulsettu</dc:creator>
      <dc:date>2016-08-10T04:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sales by Group (Product Share over specific total)</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Sales-by-Group-Product-Share-over-specific-total/m-p/1162206#M378787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope... &lt;BR /&gt;That's just the Product Sales / Group Sales Column... &lt;BR /&gt;But Group Sales Column is wrong... &lt;BR /&gt;For ProdA, should be Product Sales / Sum of Group1 and Group2 Sales&lt;/P&gt;&lt;P&gt;What I need is the right total for each row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a new straight table with the right result for ProdA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 05:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Sales-by-Group-Product-Share-over-specific-total/m-p/1162206#M378787</guid>
      <dc:creator>kira_whopper</dc:creator>
      <dc:date>2016-08-10T05:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sales by Group (Product Share over specific total)</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Sales-by-Group-Product-Share-over-specific-total/m-p/1162207#M378788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend,&lt;/P&gt;&lt;P&gt;Try This Below Expression , &lt;/P&gt;&lt;P&gt;Num(Sum(Sales)/Sum(Total &amp;lt;Product&amp;gt;Sales),'#,##0.0 %')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/134155_Untitled.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 05:25:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Sales-by-Group-Product-Share-over-specific-total/m-p/1162207#M378788</guid>
      <dc:creator>arjunkrishnan</dc:creator>
      <dc:date>2016-08-10T05:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sales by Group (Product Share over specific total)</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Sales-by-Group-Product-Share-over-specific-total/m-p/1162208#M378789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression to calculate the Group Sales:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(Sum(TOTAL &amp;lt;ProdGroup&amp;gt; Sales), Product, ProdGroup))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/134167_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 08:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Sales-by-Group-Product-Share-over-specific-total/m-p/1162208#M378789</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-10T08:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sales by Group (Product Share over specific total)</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Sales-by-Group-Product-Share-over-specific-total/m-p/1162209#M378790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's exactly it!&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 11:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Sales-by-Group-Product-Share-over-specific-total/m-p/1162209#M378790</guid>
      <dc:creator>kira_whopper</dc:creator>
      <dc:date>2016-08-10T11:23:15Z</dc:date>
    </item>
  </channel>
</rss>

