<?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: A count divided by an Average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/A-count-divided-by-an-Average/m-p/662234#M1062295</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide sample data and expected result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Sep 2014 12:52:01 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2014-09-22T12:52:01Z</dc:date>
    <item>
      <title>A count divided by an Average</title>
      <link>https://community.qlik.com/t5/QlikView/A-count-divided-by-an-Average/m-p/662233#M1062294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp; I have two datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One is individual sales volumes for a group of customers in a month (so multiple sales per customers)&lt;/P&gt;&lt;P&gt;The second is the number of customers we had in a month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate the average number of sales per customer, is it possible as I have individual sales by day but customers as a monthly total??&amp;nbsp; Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 12:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-count-divided-by-an-Average/m-p/662233#M1062294</guid>
      <dc:creator>bazzaonline</dc:creator>
      <dc:date>2014-09-22T12:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: A count divided by an Average</title>
      <link>https://community.qlik.com/t5/QlikView/A-count-divided-by-an-Average/m-p/662234#M1062295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide sample data and expected result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 12:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-count-divided-by-an-Average/m-p/662234#M1062295</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-09-22T12:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: A count divided by an Average</title>
      <link>https://community.qlik.com/t5/QlikView/A-count-divided-by-an-Average/m-p/662235#M1062296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if you sold to 2 customers&amp;nbsp;&amp;nbsp; in a month and made 4 sales to one and 6 sales to another you want the average # of sales ... ie:&amp;nbsp;&amp;nbsp; 4+6&amp;nbsp; / 2&amp;nbsp; = 5 right ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would introduce a&amp;nbsp; key in your main table with the individual sales. in this example recno() is the unqiue identifier. If you do a count(distinct identifier) in a table it will give you the number of individual sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; recno() as identifier&lt;/P&gt;&lt;P&gt;from &amp;lt;source&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so your expression will be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(distinct identifier)&amp;nbsp;&amp;nbsp; -&amp;gt; # individual sales&lt;/P&gt;&lt;P&gt;/.&lt;/P&gt;&lt;P&gt;[#customers]&amp;nbsp;&amp;nbsp; -&amp;gt; # of customers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll be able to analyze it by month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 12:54:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-count-divided-by-an-Average/m-p/662235#M1062296</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-22T12:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: A count divided by an Average</title>
      <link>https://community.qlik.com/t5/QlikView/A-count-divided-by-an-Average/m-p/662236#M1062297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I had customers Jan 10, Feb 15 and Mar 14&lt;/P&gt;&lt;P&gt;sales Jan 20, Feb 45 and Mar 28&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like a graph Jan 2, Feb 3 and Mar 2.&amp;nbsp; Does that make sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My datasets show Jan sale 1, 2, 3 4 etc&lt;/P&gt;&lt;P&gt;Customers Jan 10&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 13:00:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-count-divided-by-an-Average/m-p/662236#M1062297</guid>
      <dc:creator>bazzaonline</dc:creator>
      <dc:date>2014-09-22T13:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: A count divided by an Average</title>
      <link>https://community.qlik.com/t5/QlikView/A-count-divided-by-an-Average/m-p/662237#M1062298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are saying that you want&amp;nbsp; the total sale $ (per month) /&amp;nbsp; total customers ( per month).&amp;nbsp; That is different to my example above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your chart (bar , line etc..)&amp;nbsp; add month as your dimension. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Sale) /&amp;nbsp; [#customers] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...where Sale is the field that reports an individual Sale$ for a month, and #customers is the field that reports the # customers for that month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the explanation is not helping please post your QVW file. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 13:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-count-divided-by-an-Average/m-p/662237#M1062298</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-22T13:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: A count divided by an Average</title>
      <link>https://community.qlik.com/t5/QlikView/A-count-divided-by-an-Average/m-p/662238#M1062299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you AGAIN, looks that that is another one you've resolved!&amp;nbsp; Brilliant, have an enjoyable evening,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 14:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-count-divided-by-an-Average/m-p/662238#M1062299</guid>
      <dc:creator>bazzaonline</dc:creator>
      <dc:date>2014-09-22T14:14:58Z</dc:date>
    </item>
  </channel>
</rss>

