<?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: Average per Month Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-per-Month-Issue/m-p/770150#M659974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to count both Green and Gray selections of the field = Month, use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GetSelectedCount(Month, true())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GetSelectedCount(fieldname , includeexcluded=true or false)&lt;/P&gt;&lt;P&gt;returns the number of selected values in the field named fieldname. If includeexcluded is stated as true, the &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;count will include selected values which are excluded by selections in another field.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2015 16:47:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-08T16:47:36Z</dc:date>
    <item>
      <title>Average per Month Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Average-per-Month-Issue/m-p/770143#M659967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;While updating a straight table, I noticed an issue that relates to a Monthly Average that I have not been able to figure out.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Our Month field is based on our facts table so we only have a month record if there was a dollar amount recorded for that month. &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;So if we count the months to get an average for the first quarter, it only averages based on actual recorded months instead of the selected three months.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;I have tried to use the GetSelectedCount and the GetPossibleCount to work but they also have limitations and do not work in all instances.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;I created a simple Qlikview app to demonstrate the issue.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;In the sample Jill only has two data points so when I select all three months her average(Average Possible ) is correct when we include John's data.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;As soon as we select 'Jill' the Possible count switches to 2 months and therefore does not include the average for the first quarter. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 14:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-per-Month-Issue/m-p/770143#M659967</guid>
      <dc:creator>mneidlinger</dc:creator>
      <dc:date>2015-03-23T14:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Average per Month Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Average-per-Month-Issue/m-p/770144#M659968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works correctly. You just miss the 0 (zero) value for Feb. To have a correct average value, 0 values are important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is with the consistency of the data, not interface expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 14:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-per-Month-Issue/m-p/770144#M659968</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2015-03-23T14:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Average per Month Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Average-per-Month-Issue/m-p/770145#M659969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this might work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Sales)&amp;nbsp; / Count({&amp;lt;Employee=&amp;gt;} Month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set expression ignores employee selection, but does assume that every month has at least some sales for some employee.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 14:56:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-per-Month-Issue/m-p/770145#M659969</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-03-23T14:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Average per Month Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Average-per-Month-Issue/m-p/770146#M659970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the fast response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping to avoid adding zeros since the actual data is several million rows with subcategories that would also have to be populated with zeros. &lt;/P&gt;&lt;P&gt;Any other thoughts? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 19:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-per-Month-Issue/m-p/770146#M659970</guid>
      <dc:creator>mneidlinger</dc:creator>
      <dc:date>2015-03-23T19:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Average per Month Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Average-per-Month-Issue/m-p/770147#M659971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion John, but it did not seem to work when I added the set analysis.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Average per Month.JPG" class="image-1 jive-image" src="/legacyfs/online/81613_Average per Month.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;(No Current Selections)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Other Thoughts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 19:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-per-Month-Issue/m-p/770147#M659971</guid>
      <dc:creator>mneidlinger</dc:creator>
      <dc:date>2015-03-23T19:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Average per Month Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Average-per-Month-Issue/m-p/770148#M659972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, the set analysis will not work if NAME is a dimension, it only ignores selections. In this case, use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT(Distinct TOTAL MONTH)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(MONTH) - Min(MONTH) + 1 // your months are duals, so you can do arithmetic on them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 05:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-per-Month-Issue/m-p/770148#M659972</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-03-24T05:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Average per Month Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Average-per-Month-Issue/m-p/770149#M659973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was beginning to investigate the Min/Max values yesterday, but also ran into issues with selecting a name and not having the 'zero' values to count.&amp;nbsp; Using Min/Max values would also limit the user to only be able to select consecutive months but that should be okay if I can get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I updated the data as shown...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Average per Month2.JPG" class="image-1 jive-image" src="/legacyfs/online/81685_Average per Month2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;When I select Jill in this case I only get 2 months in both expressions.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Average per Month3.JPG" class="jive-image image-2" src="/legacyfs/online/81686_Average per Month3.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 12:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-per-Month-Issue/m-p/770149#M659973</guid>
      <dc:creator>mneidlinger</dc:creator>
      <dc:date>2015-03-24T12:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Average per Month Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Average-per-Month-Issue/m-p/770150#M659974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to count both Green and Gray selections of the field = Month, use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GetSelectedCount(Month, true())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GetSelectedCount(fieldname , includeexcluded=true or false)&lt;/P&gt;&lt;P&gt;returns the number of selected values in the field named fieldname. If includeexcluded is stated as true, the &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;count will include selected values which are excluded by selections in another field.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 16:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-per-Month-Issue/m-p/770150#M659974</guid>
      <dc:creator />
      <dc:date>2015-04-08T16:47:36Z</dc:date>
    </item>
  </channel>
</rss>

