<?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: Year over year comparison when multiple years are calculated in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-over-year-comparison-when-multiple-years-are-calculated/m-p/57504#M606503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to calculate in a Text Box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need anything&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sree..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 May 2018 18:48:57 GMT</pubDate>
    <dc:creator>shree909</dc:creator>
    <dc:date>2018-05-04T18:48:57Z</dc:date>
    <item>
      <title>Year over year comparison when multiple years are calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Year-over-year-comparison-when-multiple-years-are-calculated/m-p/57502#M606501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlikusers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need help in calculating the&amp;nbsp; YOY comparison for multiple years :&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #ff0000;"&gt;This is one for our KPIwhich need to be calculated in a Text box.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When user selects two years its straight forward, if more than 2 are selected we need to follow below calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using qlivkiew 12 version&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way that we can do in minimal steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario 1:&lt;/P&gt;&lt;P&gt;if three years of selected data (2015 + 2016 + 2017)&lt;/P&gt;&lt;P&gt;= Average of the % Change between 2015 and 2016 &amp;amp; 2016 and 2017&lt;/P&gt;&lt;P&gt;If % change from 2015 to 2016 = 2%&lt;/P&gt;&lt;P&gt;if % change from 2016 to 2017 = 4%&lt;/P&gt;&lt;P&gt;Then Average % Change = [2 + 4] / 2 = 3%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario 2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if Four years of selected data (2015 + 2016 + 2017+2018)&lt;/P&gt;&lt;P&gt;= Average of the % Change between 2015 and 2016 &amp;amp; 2016 and 2017&lt;/P&gt;&lt;P&gt;If % change from 2015 to 2016 = 2%&lt;/P&gt;&lt;P&gt;if % change from 2016 to 2017 = 4%&lt;/P&gt;&lt;P&gt;&amp;nbsp; if % change from 2017 to 2018 = 6%&lt;/P&gt;&lt;P&gt;Then Average % Change = [2 + 4+6] / 3= 4%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what if user selects 8 years?&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Beginning value = $100,000&lt;/P&gt;&lt;P&gt;End of year one value = $120,000&lt;/P&gt;&lt;P&gt;End of year two value = $135,000&lt;/P&gt;&lt;P&gt;End of year three value = $160,000&lt;/P&gt;&lt;P&gt;End of year four value = $200,000&lt;/P&gt;&lt;P&gt;The formula to determine the percentage growth for the year is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Percentage growth = (Ending value / Beginning value) -1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, the growth rates for each of the years is as follows:&lt;/P&gt;&lt;P&gt;Year one growth = $120,000 / $100,000 - 1 = 20%&lt;/P&gt;&lt;P&gt;Year two growth = $135,000 / $120,000 - 1 = 12.5%&lt;/P&gt;&lt;P&gt;Year three growth = $160,000 / $135,000 - 1 = 18.5%&lt;/P&gt;&lt;P&gt;Year four growth = $200,000 / $160,000 - 1 = 25%&lt;/P&gt;&lt;P&gt;To find the AAGR, and &lt;A href="https://www.investopedia.com/terms/a/analyst.asp"&gt;analyst&lt;/A&gt; simply needs to find the average of these growth rates:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AAGR = (20% + 12.5% + 18.5% + 25%) / 4 = 19%&lt;/P&gt;&lt;P style="color: #000000; text-align: left;"&gt;&lt;BR /&gt;Read more: &lt;A href="https://www.investopedia.com/terms/a/aagr.asp#ixzz5EYefHcbg" style="color: #003399;"&gt;Average Annual Growth Rate (AAGR)&lt;/A&gt; &lt;A href="https://www.investopedia.com/terms/a/aagr.asp#ixzz5EYefHcbg" style="color: #003399;"&gt;https://www.investopedia.com/terms/a/aagr.asp#ixzz5EYefHcbg&lt;/A&gt; &lt;BR /&gt;Follow us: &lt;A href="https://ec.tynt.com/b/rf?id=arwjQmCEqr4l6Cadbi-bnq&amp;amp;u=Investopedia" target="_blank"&gt;Investopedia on Facebook&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helpful answers are appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 18:07:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-over-year-comparison-when-multiple-years-are-calculated/m-p/57502#M606501</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2018-05-04T18:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Year over year comparison when multiple years are calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Year-over-year-comparison-when-multiple-years-are-calculated/m-p/57503#M606502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Avg(Aggr(Sum(Measure)/Above(Sum(Measure)), Year))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Avg(Aggr(Sum(Measure)/Above(Sum(Measure)), (Year, (NUMERIC))))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 18:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-over-year-comparison-when-multiple-years-are-calculated/m-p/57503#M606502</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-04T18:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Year over year comparison when multiple years are calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Year-over-year-comparison-when-multiple-years-are-calculated/m-p/57504#M606503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to calculate in a Text Box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need anything&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sree..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 18:48:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-over-year-comparison-when-multiple-years-are-calculated/m-p/57504#M606503</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2018-05-04T18:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Year over year comparison when multiple years are calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Year-over-year-comparison-when-multiple-years-are-calculated/m-p/57505#M606504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sree - this should work in the text box object... is it not working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 18:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-over-year-comparison-when-multiple-years-are-calculated/m-p/57505#M606504</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-04T18:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Year over year comparison when multiple years are calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Year-over-year-comparison-when-multiple-years-are-calculated/m-p/57506#M606505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad, I missed the -1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Avg(Aggr(Sum(Measure)/Above(Sum(Measure))-1, Year))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Avg(Aggr(Sum(Measure)/Above(Sum(Measure))-1, (Year, (NUMERIC))))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 18:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-over-year-comparison-when-multiple-years-are-calculated/m-p/57506#M606505</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-04T18:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Year over year comparison when multiple years are calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Year-over-year-comparison-when-multiple-years-are-calculated/m-p/57507#M606506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample attached with the image&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201558_Capture.PNG" style="height: 199px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 18:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-over-year-comparison-when-multiple-years-are-calculated/m-p/57507#M606506</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-04T18:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Year over year comparison when multiple years are calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Year-over-year-comparison-when-multiple-years-are-calculated/m-p/57508#M606507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny,&lt;/P&gt;&lt;P&gt;Its working in the text box, it works but if we select only year&amp;nbsp; from the list box then it fails, as above function is not able to get the values from previous year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 22:11:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-over-year-comparison-when-multiple-years-are-calculated/m-p/57508#M606507</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2018-05-04T22:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Year over year comparison when multiple years are calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Year-over-year-comparison-when-multiple-years-are-calculated/m-p/57509#M606508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignore selection in Year field for your Above() expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;Avg(Aggr(Sum(Measure)/Above(Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;Year&amp;gt;}&lt;/SPAN&gt;Measure))-1, (Year, (NUMERIC))))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 May 2018 00:29:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-over-year-comparison-when-multiple-years-are-calculated/m-p/57509#M606508</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-05T00:29:51Z</dc:date>
    </item>
  </channel>
</rss>

