<?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 expression over time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-over-Year-expression-over-time/m-p/1514355#M436823</link>
    <description>&lt;P&gt;Can you try this&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;RangeSum(&lt;/FONT&gt;
Sum({[Trending]&amp;lt;KEY = {'ESTH'}&amp;gt;} Value),
-Above(Sum({[Trending]&amp;lt;KEY = {'ESTH'}&lt;FONT color="#FF0000"&gt;, [Month Year field]&lt;/FONT&gt;&amp;gt;} Value), 12)
&lt;FONT color="#FF0000"&gt;) * Avg({[Trending]&amp;lt;KEY = {'ESTH'}&amp;gt;} 1)&lt;/FONT&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 29 Nov 2018 15:36:47 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-11-29T15:36:47Z</dc:date>
    <item>
      <title>Year over Year expression over time</title>
      <link>https://community.qlik.com/t5/QlikView/Year-over-Year-expression-over-time/m-p/1514354#M436822</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to calculate the YoY change of a metric over time in a straight table. The table trends the metric over time using a Month Year field (MMM YYYY). I'm using the following expression to calculate the difference between two months (i.e. Oct 2018 vs Oct 2017):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({[Trending]&amp;lt;KEY={'ESTH'}&amp;gt;}Value)- &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;above(sum({[Trending]&amp;lt;KEY={'ESTH'}&amp;gt;}Value),12)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This formula is giving me the result I expect. However, it only does so when I have all data points between Oct 2017 and Oct 2018 selected and only brings back results for Oct 2018.&amp;nbsp;I'm guessing this has to do with how the above function works but am hoping there is an alternative to get this metric to display without selecting the previous year's data point.&lt;/P&gt;&lt;P&gt;I'm trying to create a view that just show's the current year's months and their YoY change. Any help on how to accomplish this would be great!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 15:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-over-Year-expression-over-time/m-p/1514354#M436822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-29T15:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Year over Year expression over time</title>
      <link>https://community.qlik.com/t5/QlikView/Year-over-Year-expression-over-time/m-p/1514355#M436823</link>
      <description>&lt;P&gt;Can you try this&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;RangeSum(&lt;/FONT&gt;
Sum({[Trending]&amp;lt;KEY = {'ESTH'}&amp;gt;} Value),
-Above(Sum({[Trending]&amp;lt;KEY = {'ESTH'}&lt;FONT color="#FF0000"&gt;, [Month Year field]&lt;/FONT&gt;&amp;gt;} Value), 12)
&lt;FONT color="#FF0000"&gt;) * Avg({[Trending]&amp;lt;KEY = {'ESTH'}&amp;gt;} 1)&lt;/FONT&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Nov 2018 15:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-over-Year-expression-over-time/m-p/1514355#M436823</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-29T15:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Year over Year expression over time</title>
      <link>https://community.qlik.com/t5/QlikView/Year-over-Year-expression-over-time/m-p/1514362#M436824</link>
      <description>&lt;P&gt;Thank you for such a quick response. This appears to be working!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a follow-up question on how I can modify this to show a rolling 12 month view based on the Month Year selected. I am doing this in other expressions by defining the Month Year field in the set analysis as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Month Year]={"&amp;gt;=$(=date(addmonths(max([Month Year]),-11),'MMM YYYY'))&amp;lt;=$(=max([Month Year]))"}&lt;/P&gt;&lt;P&gt;Is there a way to modify the solution you provided me to include this so it shows the YoY for the past 12 months?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 15:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-over-Year-expression-over-time/m-p/1514362#M436824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-29T15:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Year over Year expression over time</title>
      <link>https://community.qlik.com/t5/QlikView/Year-over-Year-expression-over-time/m-p/1514367#M436826</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;RangeSum(
Sum({[Trending]&amp;lt;KEY = {'ESTH'}&lt;FONT color="#FF0000"&gt;, [Month Year]={"&amp;gt;=$(=date(addmonths(max([Month Year]),-11),'MMM YYYY'))&amp;lt;=$(=max([Month Year]))"}&lt;/FONT&gt;&amp;gt;} Value),
-Above(Sum({[Trending]&amp;lt;KEY = {'ESTH'}, [Month Year]&amp;gt;} Value), 12)
) * Avg({[Trending]&amp;lt;KEY = {'ESTH'}&lt;FONT color="#FF0000"&gt;, [Month Year]={"&amp;gt;=$(=date(addmonths(max([Month Year]),-11),'MMM YYYY'))&amp;lt;=$(=max([Month Year]))"}&lt;/FONT&gt;&amp;gt;} 1)&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Nov 2018 15:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-over-Year-expression-over-time/m-p/1514367#M436826</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-29T15:55:20Z</dc:date>
    </item>
  </channel>
</rss>

