<?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 AVG? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AVG/m-p/822383#M1017593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum({&amp;lt;Y=,Monthnum=&amp;gt;}Sales)/Count( DISTINCT Monthnum)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i am trying calculate it is not giving avg &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Count( DISTINCT Monthnum)&amp;nbsp; is 06&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;if i give manually 06 then it is giving avg&amp;nbsp;&amp;nbsp;&amp;nbsp; if i write&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Count( DISTINCT Monthnum)&amp;nbsp; its not giving avg &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its giving only&amp;nbsp;&amp;nbsp; sum(sales)&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the mistake here ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2015 18:15:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-03-30T18:15:20Z</dc:date>
    <item>
      <title>AVG?</title>
      <link>https://community.qlik.com/t5/QlikView/AVG/m-p/822383#M1017593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum({&amp;lt;Y=,Monthnum=&amp;gt;}Sales)/Count( DISTINCT Monthnum)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i am trying calculate it is not giving avg &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Count( DISTINCT Monthnum)&amp;nbsp; is 06&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;if i give manually 06 then it is giving avg&amp;nbsp;&amp;nbsp;&amp;nbsp; if i write&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Count( DISTINCT Monthnum)&amp;nbsp; its not giving avg &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its giving only&amp;nbsp;&amp;nbsp; sum(sales)&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the mistake here ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 18:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG/m-p/822383#M1017593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-30T18:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: AVG?</title>
      <link>https://community.qlik.com/t5/QlikView/AVG/m-p/822384#M1017594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it most likely related with the fact that you are ignoring the MonthNum in you first set analysis,&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;trying creating this in a variable&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 19:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG/m-p/822384#M1017594</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-03-30T19:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: AVG?</title>
      <link>https://community.qlik.com/t5/QlikView/AVG/m-p/822385#M1017595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is Monthnum a correct field name?&amp;nbsp; What if you try this in a text box:&lt;/P&gt;&lt;P&gt;Count( DISTINCT Monthnum)&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 19:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG/m-p/822385#M1017595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-30T19:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: AVG?</title>
      <link>https://community.qlik.com/t5/QlikView/AVG/m-p/822386#M1017596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;A href="https://community.qlik.com/qlik-users/160027"&gt;COMMONQLIK&lt;/A&gt;&lt;/P&gt;&lt;P&gt;cAN YOU SHARE YOUR SAMPLE FILE?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 06:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG/m-p/822386#M1017596</guid>
      <dc:creator />
      <dc:date>2015-03-31T06:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: AVG?</title>
      <link>https://community.qlik.com/t5/QlikView/AVG/m-p/822387#M1017597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({&amp;lt;Y=,Monthnum=&amp;gt;}Sales)/Count( DISTINCT Monthnum) gives you &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({&amp;lt;Y=,Monthnum=&amp;gt;}Sales) its because &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count( DISTINCT Monthnum) = 1.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count( DISTINCT Monthnum)=1 its because you have only one monthnum.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Have you selected a month ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Is Monthnum the correct field ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Maybe have you forgotten the set analysis in the second aggregation. Try this :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;Y=,Monthnum=&amp;gt;}Sales)/Count(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;Y=,Monthnum=&amp;gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;DISTINCT Monthnum) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 08:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG/m-p/822387#M1017597</guid>
      <dc:creator />
      <dc:date>2015-03-31T08:06:00Z</dc:date>
    </item>
  </channel>
</rss>

