<?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 Handling % in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Handling/m-p/748516#M267089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;How do i achieve this? I created&amp;nbsp; a drill down control having Year and Month&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;IF (dimension = Year)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //do this&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Actual)/12&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;else&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (dimension = Month)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Actual)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;How do i write this in Qlikview&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Find attached&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Dec 2014 18:14:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-16T18:14:45Z</dc:date>
    <item>
      <title>Handling %</title>
      <link>https://community.qlik.com/t5/QlikView/Handling/m-p/748516#M267089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;How do i achieve this? I created&amp;nbsp; a drill down control having Year and Month&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;IF (dimension = Year)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //do this&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Actual)/12&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;else&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (dimension = Month)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Actual)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;How do i write this in Qlikview&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Find attached&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 18:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling/m-p/748516#M267089</guid>
      <dc:creator />
      <dc:date>2014-12-16T18:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Handling %</title>
      <link>https://community.qlik.com/t5/QlikView/Handling/m-p/748517#M267090</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;In the expression for the Actual expression write following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(Year)=1,sum(Actual)/12,sum(Actual))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in conditional write &lt;/P&gt;&lt;P&gt;GetSelectedCount(Year)=1&lt;/P&gt;&lt;P&gt;&lt;IMG alt="condition.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/73625_condition.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 18:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling/m-p/748517#M267090</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-16T18:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Handling %</title>
      <link>https://community.qlik.com/t5/QlikView/Handling/m-p/748518#M267091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Emac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find the attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 18:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling/m-p/748518#M267091</guid>
      <dc:creator />
      <dc:date>2014-12-16T18:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Handling %</title>
      <link>https://community.qlik.com/t5/QlikView/Handling/m-p/748519#M267092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=IF($(=GetCurrentField(mYear))='Year',SUM(Actual)/12,SUM(Actual))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 19:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling/m-p/748519#M267092</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-12-16T19:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Handling %</title>
      <link>https://community.qlik.com/t5/QlikView/Handling/m-p/748520#M267093</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;as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(Actual)/12&lt;/SPAN&gt;&amp;nbsp; actually calculates the monthly average &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;for the year dimension&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;, you might as well change your expression to simply&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14187639486066421" jivemacro_uid="_14187639486066421"&gt;
&lt;P&gt;Avg(Actual)&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regardless of the selected drill down dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing so would also enable your users to focus e.g. on specific quarters or months and still get correct averages for the selected/selectable months:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="73632" alt="QlikCommunity_Thread_146006_Pic1.JPG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/73632_QlikCommunity_Thread_146006_Pic1.JPG" style="height: 420px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="73633" alt="QlikCommunity_Thread_146006_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/73633_QlikCommunity_Thread_146006_Pic2.JPG" style="height: 420px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="73634" alt="QlikCommunity_Thread_146006_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/73634_QlikCommunity_Thread_146006_Pic3.JPG" style="height: 427px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="73635" alt="QlikCommunity_Thread_146006_Pic4.JPG" class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/73635_QlikCommunity_Thread_146006_Pic4.JPG" style="height: 421px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="73636" alt="QlikCommunity_Thread_146006_Pic5.JPG" class="jive-image image-5" src="https://community.qlik.com/legacyfs/online/73636_QlikCommunity_Thread_146006_Pic5.JPG" style="height: 551px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 21:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling/m-p/748520#M267093</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-12-16T21:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Handling %</title>
      <link>https://community.qlik.com/t5/QlikView/Handling/m-p/748521#M267094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you need an if() test. Just write your expression as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Actual) / Count(DISTINCT Month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When your group is at the Year level, DISTINCT Month will be 12. When you are at the Month level, the value will be 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 21:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling/m-p/748521#M267094</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-12-16T21:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Handling %</title>
      <link>https://community.qlik.com/t5/QlikView/Handling/m-p/748522#M267095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marco, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the avg() technique only works when there is a single value for the month. The distinction is whether the user wants an average of all values, or the avg monthly sum. For example, if there are two values for August 2014:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10&lt;/P&gt;&lt;P&gt;20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(Value) = 15. &lt;/P&gt;&lt;P&gt;sum(Value) / count(DISTINCT Month)&amp;nbsp; = 30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I notice in the OP's data, there was only one value per month. But I thought I would point out the pitfall in case he had provided a simple example)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 22:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling/m-p/748522#M267095</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-12-16T22:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Handling %</title>
      <link>https://community.qlik.com/t5/QlikView/Handling/m-p/748523#M267096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that's true. There is a difference between this two expressions and it depends on the requirements which one of them fulfills the needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 22:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling/m-p/748523#M267096</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-12-16T22:15:26Z</dc:date>
    </item>
  </channel>
</rss>

