<?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 Probably a Set Anlysis solution in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Probably-a-Set-Anlysis-solution/m-p/1072515#M358123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's assume I have 3 sales rep selling shoes, socks and trousers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales rep 1 has sold&lt;/P&gt;&lt;P&gt;10 shoes&lt;/P&gt;&lt;P&gt;10 socks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Sales rep 2 has sold&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;10 shoes&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;10 trousers&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Sales rep 3 has sold&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;20 shoes&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;20 trousers&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;My data is something like :&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt; Sales Rep&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Shoes sold&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Socks sold&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Trousers Sold&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to represent this in a basic stacked bar chart representing the average number of each item sold by my sales reps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this:&lt;/P&gt;&lt;P&gt;Dimension : Item Sold&lt;/P&gt;&lt;P&gt;Expression : sum(nbr items sold)/count(distinct sales rep)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will get for the trousers part : 15 trousers (sold on average by the sales rep). This 15 represents the average number of trousers sold by my sales rep who actually sell trousers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, some of my clients would like a different number : the number of trousers sold on average by my sales rep including those who don't actully sell trousers (in this case it would be 10 + 20 / 3 (sales rep) i.e. 10 (instead of 15).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I manage to do that in my bar chart? (it means dividing sum(nbr items sold) by the total number of sales rep including those who have sold an amount of 0)&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, 20 Apr 2016 16:53:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-20T16:53:24Z</dc:date>
    <item>
      <title>Probably a Set Anlysis solution</title>
      <link>https://community.qlik.com/t5/QlikView/Probably-a-Set-Anlysis-solution/m-p/1072515#M358123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's assume I have 3 sales rep selling shoes, socks and trousers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales rep 1 has sold&lt;/P&gt;&lt;P&gt;10 shoes&lt;/P&gt;&lt;P&gt;10 socks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Sales rep 2 has sold&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;10 shoes&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;10 trousers&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Sales rep 3 has sold&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;20 shoes&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;20 trousers&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;My data is something like :&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt; Sales Rep&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Shoes sold&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Socks sold&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Trousers Sold&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to represent this in a basic stacked bar chart representing the average number of each item sold by my sales reps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this:&lt;/P&gt;&lt;P&gt;Dimension : Item Sold&lt;/P&gt;&lt;P&gt;Expression : sum(nbr items sold)/count(distinct sales rep)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will get for the trousers part : 15 trousers (sold on average by the sales rep). This 15 represents the average number of trousers sold by my sales rep who actually sell trousers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, some of my clients would like a different number : the number of trousers sold on average by my sales rep including those who don't actully sell trousers (in this case it would be 10 + 20 / 3 (sales rep) i.e. 10 (instead of 15).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I manage to do that in my bar chart? (it means dividing sum(nbr items sold) by the total number of sales rep including those who have sold an amount of 0)&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, 20 Apr 2016 16:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Probably-a-Set-Anlysis-solution/m-p/1072515#M358123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-20T16:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Probably a Set Anlysis solution</title>
      <link>https://community.qlik.com/t5/QlikView/Probably-a-Set-Anlysis-solution/m-p/1072516#M358124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your dimension name and expression don't seem to match with the data you have provided. Are you sure your data looks like the way it is displayed above?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 17:11:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Probably-a-Set-Anlysis-solution/m-p/1072516#M358124</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-20T17:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Probably a Set Anlysis solution</title>
      <link>https://community.qlik.com/t5/QlikView/Probably-a-Set-Anlysis-solution/m-p/1072517#M358125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe just like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Qty) / Count(DISTINCT &lt;STRONG&gt;TOTAL&lt;/STRONG&gt; [Sales Rep])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(having used a crosstable LOAD to get your data into a straight table format)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SalesRep.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/122200_SalesRep.png" style="height: 230px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;Or create a variable vSalesRepTotal&lt;/P&gt;&lt;P&gt;=Count(DISTINCT [Sales Rep])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Sum(Qty) / vSalesRepTotal&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 17:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Probably-a-Set-Anlysis-solution/m-p/1072517#M358125</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-20T17:16:14Z</dc:date>
    </item>
  </channel>
</rss>

