<?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: Quarter average Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Quarter-average-Issue/m-p/1380236#M420858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;I'm sorry actually for current month there will be no data. So for current quarter (Q3-2017) the calculation should include (july+august)/2.&lt;/P&gt;&lt;P&gt;I have attached the new excel and qvf, i wrote a set expression to exclude '0's but it's not working&amp;nbsp; please can you help. Thank you so much&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Sep 2017 19:08:58 GMT</pubDate>
    <dc:creator>ramyasaiqv</dc:creator>
    <dc:date>2017-09-08T19:08:58Z</dc:date>
    <item>
      <title>Quarter average Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-average-Issue/m-p/1380232#M420854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;This could be a simple issue, I tried with multiple expressions but it’s still not working. So I’m here for some help please help me. &lt;/P&gt;&lt;P&gt;I’m just trying to calculate the average in quarter but not getting the correct numbers. Not sure what I’m doing wrong please can someone consider attached excel and qvf to resolve my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue:&lt;/P&gt;&lt;P&gt;In the attached qvf for example for Q1-2017 the value is 2.75 – this is wrong&lt;/P&gt;&lt;P&gt;Expected result: (10+11+12)/3 = 11&lt;/P&gt;&lt;P&gt;For Q3-2017- 4.58- wrong&lt;/P&gt;&lt;P&gt;Expected: 17.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 16:03:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-average-Issue/m-p/1380232#M420854</guid>
      <dc:creator>ramyasaiqv</dc:creator>
      <dc:date>2017-09-08T16:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter average Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-average-Issue/m-p/1380233#M420855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you get a chance please can some one help with this. Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 17:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-average-Issue/m-p/1380233#M420855</guid>
      <dc:creator>ramyasaiqv</dc:creator>
      <dc:date>2017-09-08T17:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter average Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-average-Issue/m-p/1380234#M420856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rayma, why you say the expected result for Q3 is 17.5? shouldn't it be 18,3333...?&lt;/P&gt;&lt;P&gt;(20+13+22)/3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try with this expression:&lt;/P&gt;&lt;P&gt;Avg(Aggr(Sum([Data]), Year, Month, [Level Data]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First sums the data of each Month, the does the average of those values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 17:29:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-average-Issue/m-p/1380234#M420856</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-09-08T17:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter average Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-average-Issue/m-p/1380235#M420857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&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;Sorry it was my bad, result for Q3 is 17.5? shouldn't it be 18,3333...? yes this is correct. it worked .Thank you,&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;Regards,&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;ramya&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 18:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-average-Issue/m-p/1380235#M420857</guid>
      <dc:creator>ramyasaiqv</dc:creator>
      <dc:date>2017-09-08T18:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter average Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-average-Issue/m-p/1380236#M420858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;I'm sorry actually for current month there will be no data. So for current quarter (Q3-2017) the calculation should include (july+august)/2.&lt;/P&gt;&lt;P&gt;I have attached the new excel and qvf, i wrote a set expression to exclude '0's but it's not working&amp;nbsp; please can you help. Thank you so much&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 19:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-average-Issue/m-p/1380236#M420858</guid>
      <dc:creator>ramyasaiqv</dc:creator>
      <dc:date>2017-09-08T19:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter average Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-average-Issue/m-p/1380237#M420859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya, the sum expresion needs the field to sum:&lt;/P&gt;&lt;P&gt;Avg(Aggr(Sum({&amp;lt;[Data]={'&amp;gt;0'}&amp;gt;} &lt;STRONG&gt;&lt;EM&gt;Data&lt;/EM&gt;&lt;/STRONG&gt;), Year, Month, [Level Data]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm not sure if this will be ok, in the previous months there are values as zero, if these zero's needs to be counted in the avg you can't ignore zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option can be avoid to load from excel recods without any value, to do this you can add this condition to the where clause:&lt;/P&gt;&lt;P&gt;Where YEAR(trim([Date]))&amp;amp;&amp;nbsp; Num( Month(date(trim([Date]), 'MMMM')), '00')&amp;lt;= text(date(today(),'YYYYMM'))and [Level Data] &amp;lt;&amp;gt; 'All' &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;and Len(Trim(Data))&amp;gt;0&lt;/STRONG&gt;&amp;nbsp; // &lt;SPAN style="font-size: 13.3333px;"&gt;if there is no value, it won't be counted for average&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Sep 2017 10:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-average-Issue/m-p/1380237#M420859</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-09-10T10:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter average Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-average-Issue/m-p/1380238#M420860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;Thank you, i tried the second method it worked.&lt;/P&gt;&lt;P&gt;Ramys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Sep 2017 23:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-average-Issue/m-p/1380238#M420860</guid>
      <dc:creator>ramyasaiqv</dc:creator>
      <dc:date>2017-09-10T23:38:39Z</dc:date>
    </item>
  </channel>
</rss>

