<?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 Growth Calculation Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122284#M18673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The below expression considered for growth calculation in the report&lt;/P&gt;&lt;P&gt;(sum(sale_amount)/Before(sum({&amp;lt;Yr&amp;gt;}sale_amount))-1)&lt;/P&gt;&lt;P&gt;And &lt;/P&gt;&lt;P&gt;(sum(sale_amount)/Before(sum({&amp;lt;Yr&amp;gt;}sale_amount))-1)*avg(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Can some one tell me why to consider *avg(1)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where avg(1) returns 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. if we give in set expression as {&amp;lt;Yr=&amp;gt;} instead&amp;nbsp; {&amp;lt;Yr&amp;gt;} both does the same ??? to not get filtered year selection &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* My Intention behind this is to understand this expression clearly&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-Hope someone can help me with this&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jul 2018 10:00:21 GMT</pubDate>
    <dc:creator>kakani87</dc:creator>
    <dc:date>2018-07-09T10:00:21Z</dc:date>
    <item>
      <title>Growth Calculation Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122284#M18673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The below expression considered for growth calculation in the report&lt;/P&gt;&lt;P&gt;(sum(sale_amount)/Before(sum({&amp;lt;Yr&amp;gt;}sale_amount))-1)&lt;/P&gt;&lt;P&gt;And &lt;/P&gt;&lt;P&gt;(sum(sale_amount)/Before(sum({&amp;lt;Yr&amp;gt;}sale_amount))-1)*avg(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Can some one tell me why to consider *avg(1)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where avg(1) returns 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. if we give in set expression as {&amp;lt;Yr=&amp;gt;} instead&amp;nbsp; {&amp;lt;Yr&amp;gt;} both does the same ??? to not get filtered year selection &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* My Intention behind this is to understand this expression clearly&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-Hope someone can help me with this&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 10:00:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122284#M18673</guid>
      <dc:creator>kakani87</dc:creator>
      <dc:date>2018-07-09T10:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Growth Calculation Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122285#M18674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;Yr=&amp;gt;} is the same as&amp;nbsp; {&amp;lt;Yr&amp;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;for avg(1) i'm not sure.&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;regards,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 10:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122285#M18674</guid>
      <dc:creator>kfoudhaily</dc:creator>
      <dc:date>2018-07-09T10:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Growth Calculation Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122286#M18675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can Some one help me to understand this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/17633"&gt;mbaeyens&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/26418"&gt;tresesco&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 10:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122286#M18675</guid>
      <dc:creator>kakani87</dc:creator>
      <dc:date>2018-07-09T10:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Growth Calculation Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122287#M18676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the Avg(1) I don't know why do you have to use it, or if it is a copy-paste from another application. It does not make sense to me, unless "1" is actually a field in the data model, in which case I would instead use [1] or "1" in&lt;/P&gt;&lt;P&gt;the expressions.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For the set analysis syntax, &lt;A _jive_internal="true" href="https://community.qlik.com/people/kfoudhaily"&gt;kh fou&lt;/A&gt; replied above.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 11:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122287#M18676</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-07-09T11:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Growth Calculation Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122288#M18677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Usually this sort of vague aggregation is used along with any set analysis expression, to avoid unwanted dimension members that could come because of set analysis selection ignorance. That is, in your case, since you have used {&amp;lt;Yr&amp;gt;} to ignore the effect of this fields selection, if you have the same field in the dimension, you could see members that are not intended (beyond selection). If you add up additional aggregate function (like avg(1)) without set analysis, such repercussion could be avoided. Not sure, if that is the case with your chart or not.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 11:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122288#M18677</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-07-09T11:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Growth Calculation Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122289#M18678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with &lt;A href="https://community.qlik.com/people/mbaeyens"&gt;mbaeyens&lt;/A&gt;‌ and I don't think Avg(1) is needed here. But in general it is used in order to force an expression to be 0 for out of selection value which still honoring the Above/Below/After/Before conditions. So, in your case you are ignoring Yr field within the Before() which is telling the expression to look at 2017 value even if you have selected 2018. If this was your only selection &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Before(sum({&amp;lt;Yr&amp;gt;}sale_amount))&lt;/STRONG&gt; you would find that even though you have selected 2018, you are seeing all the years. In order to make unselected years 0, you can multiply with Avg(1) because Avg(1) = 0 for anything out of selection and Avg(1) = 1 for selections.&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;Does this make sense?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 11:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122289#M18678</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-09T11:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Growth Calculation Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122290#M18679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here in the below screen it is shown as exp with * avg(1) and with out considering &lt;/P&gt;&lt;P&gt;then on dynamic filter of year data looks like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how to express this technically, but I'm clear about what it dose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="growth_jpeg.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/207341_growth_jpeg.jpg" style="height: 349px; width: 620px;" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 12:02:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122290#M18679</guid>
      <dc:creator>kakani87</dc:creator>
      <dc:date>2018-07-09T12:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Growth Calculation Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122291#M18680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Happy to hear from you people &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/26418"&gt;tresesco&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually trying to understand this from your &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt; previous thread answered to some other mates , one thread among them.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/270791" title="https://community.qlik.com/thread/270791"&gt;https://community.qlik.com/thread/270791&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kakani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 12:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122291#M18680</guid>
      <dc:creator>kakani87</dc:creator>
      <dc:date>2018-07-09T12:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Growth Calculation Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122292#M18681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the answer might also be in your data, when testing the two expressions do you detect any differences?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 12:23:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122292#M18681</guid>
      <dc:creator>kfoudhaily</dc:creator>
      <dc:date>2018-07-09T12:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Growth Calculation Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122293#M18682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No ... the o/p is similar for both the expressions, but on dynamic filter the display of chart varies&lt;/P&gt;&lt;P&gt;Now I'm Clear with this as &lt;STRONG&gt;Sunny&lt;/STRONG&gt; explained very clearly what happens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 12:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122293#M18682</guid>
      <dc:creator>kakani87</dc:creator>
      <dc:date>2018-07-09T12:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Growth Calculation Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122294#M18683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Super &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 12:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-Calculation-Expression/m-p/122294#M18683</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-09T12:31:41Z</dc:date>
    </item>
  </channel>
</rss>

