<?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: MonthYear average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151796#M376285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a sample and it works fine but it won't work on my real app. I guess I will just leave it here since it seems I am wasting my time on it and it is not even that important.&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;MonthYear, AccountID,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOS&lt;/P&gt;&lt;P&gt;May-2016,&amp;nbsp; Account1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;May-2016,&amp;nbsp; Account2,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P&gt;May-2016,&amp;nbsp; Account3,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;May-2016,&amp;nbsp; Account4,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;May-2016,&amp;nbsp; Account5,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;IMG alt="" class="jive-image image-1" height="286" src="https://community.qlik.com/legacyfs/online/127277_pastedImage_0.png" style="width: 418.945px; height: 286px;" width="419" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2016 15:11:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-06-08T15:11:17Z</dc:date>
    <item>
      <title>MonthYear average</title>
      <link>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151790#M376279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I am having issues getting the right average for the month for customer's length of stay. Here is the example.&lt;/SPAN&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;MonthYear&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;AccountID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;LOS&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;May-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Account1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;May-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Account2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;May-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Account3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;May-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Account4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;May-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Account5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;So the average for May-2016 should be 50/5 = 10. I am using the sum(LOS)/Count(AccountID) but it is not working right. When I use "Sum" function from Chart properties, the right number gets displayed on top of the LOS column, which in this case will be 50. Even count of AccountID displays as 5. So I don't understand why sum(LOS)/Count(AccountID) does not give me the right average. After investigating further by adding a separate straight table, I see &lt;SPAN style="color: #000000;"&gt;Count(AccountID) is giving me the right number but &lt;SPAN style="color: #000000;"&gt;sum(LOS) is a huge number. May be adding the LOS for whole period instead of just he selected month.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I am using calendar template so I pick the MonthYear from a horizontal bar on top. Example, I pick May-2016 or any other month and the average should change automatically.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 13:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151790#M376279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-08T13:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: MonthYear average</title>
      <link>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151791#M376280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would it be possible to share a sample to look at?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 13:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151791#M376280</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-08T13:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: MonthYear average</title>
      <link>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151792#M376281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can try later to get a sample but may be this can help to clarify. What may work is to get sum of LOS based on AccountID then divide by &lt;SPAN style="color: #000000;"&gt;Count(AccountID)? What I am doing right now is just doing sum of LOS not basing of the AccountID so may be it picks up all the AccountID instead of just for the selected period. Let me see if I can reproduce a sample. Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 14:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151792#M376281</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-08T14:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: MonthYear average</title>
      <link>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151793#M376282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why would it pick all the AccountID? Is the Month field not linked to the AccountID in your application? If they are linked, I would assume that the Sum(LOS) should only display based on your selection. May be talk a little about your data model?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 14:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151793#M376282</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-08T14:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: MonthYear average</title>
      <link>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151794#M376283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AccountID and LOS is linked to the month field. Here is the solution I can use for now. When I selected &lt;STRONG&gt;"Average" from chart properties,&lt;/STRONG&gt; it displays the right average on top on the LOS column.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" height="217" src="https://community.qlik.com/legacyfs/online/127264_pastedImage_1.png" style="width: 280px; height: 216.774px;" width="280" /&gt;&lt;/P&gt;&lt;P&gt;I will still try to generate a sample later when I get little free.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 14:45:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151794#M376283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-08T14:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: MonthYear average</title>
      <link>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151795#M376284</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;Clearly i am not understand your scenario. Try this. It may be help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(Avg(LOS),MonthYear)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Joyson G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 14:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151795#M376284</guid>
      <dc:creator />
      <dc:date>2016-06-08T14:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: MonthYear average</title>
      <link>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151796#M376285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a sample and it works fine but it won't work on my real app. I guess I will just leave it here since it seems I am wasting my time on it and it is not even that important.&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;MonthYear, AccountID,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOS&lt;/P&gt;&lt;P&gt;May-2016,&amp;nbsp; Account1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;May-2016,&amp;nbsp; Account2,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P&gt;May-2016,&amp;nbsp; Account3,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;May-2016,&amp;nbsp; Account4,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;May-2016,&amp;nbsp; Account5,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;IMG alt="" class="jive-image image-1" height="286" src="https://community.qlik.com/legacyfs/online/127277_pastedImage_0.png" style="width: 418.945px; height: 286px;" width="419" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 15:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151796#M376285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-08T15:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: MonthYear average</title>
      <link>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151797#M376286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works for me based on your data table at the top:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LOS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AccountID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 15:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151797#M376286</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2016-06-08T15:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: MonthYear average</title>
      <link>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151798#M376287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason!&lt;/P&gt;&lt;P&gt;This didn't work.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 15:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151798#M376287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-08T15:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: MonthYear average</title>
      <link>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151799#M376288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dmac1971!&lt;/P&gt;&lt;P&gt;This works on the sample but not on my actual app. That's alright though since I am now not using set analysis function but just setting the average from chart properties like below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" height="217" src="https://community.qlik.com/legacyfs/online/127278_pastedImage_1.png" width="280" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 15:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthYear-average/m-p/1151799#M376288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-08T15:32:34Z</dc:date>
    </item>
  </channel>
</rss>

