<?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: different aggregations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/different-aggregations/m-p/405988#M558661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sales all shops: sum({&amp;lt;ShopID= &amp;gt;} Sales)&lt;/SPAN&gt; - i dont need sales of &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;all&lt;/STRONG&gt;&lt;/SPAN&gt; shops. I need total sales of shops, where this is product was sold, for example, in 20 shops have been sold many products, but product A have been sold only in 5 shops of 20, and I need total sales of these 5 shops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm willing to give more explanation if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in their attempts to solve this problem I settled on two non-working solutions&lt;/P&gt;&lt;P&gt;1. sum({&amp;lt;[product]=, shop = {"=sum({&amp;lt;shop=&amp;gt;} sales)&amp;lt;&amp;gt;0"}&amp;gt;} total [sales])&lt;/P&gt;&lt;P&gt;2. sum({&amp;lt;[product]=, shop = p({&amp;lt;[product]= p({$}[product])&amp;gt;})&amp;gt;} [sales])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 May 2013 09:50:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-05-25T09:50:45Z</dc:date>
    <item>
      <title>different aggregations</title>
      <link>https://community.qlik.com/t5/QlikView/different-aggregations/m-p/405986#M558659</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;I have sales details table with products and a quantity of sales points where these products have been sold. I would like to calculate the percentage of sold products in total sales of shops, where these products have been sold. i.e.&lt;/P&gt;&lt;P&gt;I have a product A and it have been sold in 5 shops of 20. Sales sum of product A = 10, total sales of 5 shops (B) is 1 000. I want to do 10/1 000 and show the result in table with columns: products; sales of products, total sales of my selected 5 shops, percentage;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 13:51:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/different-aggregations/m-p/405986#M558659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-24T13:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: different aggregations</title>
      <link>https://community.qlik.com/t5/QlikView/different-aggregations/m-p/405987#M558660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not quite I understand you correctly. But try creating a straight table with product as dimension and three expressions:&lt;/P&gt;&lt;P&gt;Sales of selected shops: sum(Sales)&lt;/P&gt;&lt;P&gt;Sales all shops: sum({&amp;lt;ShopID= &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;Percentage: Column(1)/Column(2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 13:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/different-aggregations/m-p/405987#M558660</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-24T13:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: different aggregations</title>
      <link>https://community.qlik.com/t5/QlikView/different-aggregations/m-p/405988#M558661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sales all shops: sum({&amp;lt;ShopID= &amp;gt;} Sales)&lt;/SPAN&gt; - i dont need sales of &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;all&lt;/STRONG&gt;&lt;/SPAN&gt; shops. I need total sales of shops, where this is product was sold, for example, in 20 shops have been sold many products, but product A have been sold only in 5 shops of 20, and I need total sales of these 5 shops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm willing to give more explanation if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in their attempts to solve this problem I settled on two non-working solutions&lt;/P&gt;&lt;P&gt;1. sum({&amp;lt;[product]=, shop = {"=sum({&amp;lt;shop=&amp;gt;} sales)&amp;lt;&amp;gt;0"}&amp;gt;} total [sales])&lt;/P&gt;&lt;P&gt;2. sum({&amp;lt;[product]=, shop = p({&amp;lt;[product]= p({$}[product])&amp;gt;})&amp;gt;} [sales])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 May 2013 09:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/different-aggregations/m-p/405988#M558661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-25T09:50:45Z</dc:date>
    </item>
  </channel>
</rss>

