<?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: Get a value one year back based on the current value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-a-value-one-year-back-based-on-the-current-value/m-p/773071#M661112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dateofservice and DATE are 2 dates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Month= , YEAR=, Rolling12=, QUARTER=, DATE=, DateofService=&lt;/SPAN&gt;{'$(=date(addmonths(max(DATE),-12),'DD/MM/YYYY'))'}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6666669845581px;"&gt;Bonus_Amt&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Mar 2015 19:03:38 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-03-23T19:03:38Z</dc:date>
    <item>
      <title>Get a value one year back based on the current value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-value-one-year-back-based-on-the-current-value/m-p/773068#M661109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Current date = 201503&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I am trying to get the Bonus Amt and MM one year back based on the current date. I tried the formula below but its not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Rolling12&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;QUARTER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateofService&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,-12)&amp;gt;}Bonus_Amt)&lt;BR /&gt; /&lt;BR /&gt; =sum({$&amp;lt;Month= ,YEAR= ,Rolling12= ,QUARTER= ,DateofService=AddMonths(DATE,-12)&amp;gt;}MM) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 17:51:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-value-one-year-back-based-on-the-current-value/m-p/773068#M661109</guid>
      <dc:creator>kpatelacmm</dc:creator>
      <dc:date>2015-03-23T17:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get a value one year back based on the current value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-value-one-year-back-based-on-the-current-value/m-p/773069#M661110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not entirely sure if the formula is correct or not, but the syntax is definitely something which I can help you fix:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;=S&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;um({$&amp;lt;Month= , YEAR= , Rolling12= , QUARTER= , DateofService= &lt;STRONG&gt;{'$(=AddMonths(DATE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;,-12))'}&lt;/STRONG&gt;&amp;gt;} Bonus_Amt)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;=Sum({$&amp;lt;Month= , YEAR= , Rolling12= , QUARTER= , DateofService=&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;{'$(=AddMonths(DATE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;,-12))'}&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;gt;} MM)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Sunny&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 18:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-value-one-year-back-based-on-the-current-value/m-p/773069#M661110</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-23T18:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get a value one year back based on the current value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-value-one-year-back-based-on-the-current-value/m-p/773070#M661111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you attach an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 18:39:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-value-one-year-back-based-on-the-current-value/m-p/773070#M661111</guid>
      <dc:creator />
      <dc:date>2015-03-23T18:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get a value one year back based on the current value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-value-one-year-back-based-on-the-current-value/m-p/773071#M661112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dateofservice and DATE are 2 dates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Month= , YEAR=, Rolling12=, QUARTER=, DATE=, DateofService=&lt;/SPAN&gt;{'$(=date(addmonths(max(DATE),-12),'DD/MM/YYYY'))'}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6666669845581px;"&gt;Bonus_Amt&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 19:03:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-value-one-year-back-based-on-the-current-value/m-p/773071#M661112</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-23T19:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get a value one year back based on the current value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-value-one-year-back-based-on-the-current-value/m-p/773072#M661113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both are the same date just different format.&lt;/P&gt;&lt;P&gt;DateofService is yyyymm format. DATE is in mm/dd/yyyy format so I was converting the date format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 19:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-value-one-year-back-based-on-the-current-value/m-p/773072#M661113</guid>
      <dc:creator>kpatelacmm</dc:creator>
      <dc:date>2015-03-23T19:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get a value one year back based on the current value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-value-one-year-back-based-on-the-current-value/m-p/773073#M661114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I have months going across. If you look at the PCP Bonus 201407 to Current is zero. What I want to do is be able to look back one year so for example for 201407 look back one year to 201406 and see the PMPM or 1.55 then use that 1.55 and multiply that by 2622(201407 MM). But it needs to look back one year for each of the column where the PCP Bonus is zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 21:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-value-one-year-back-based-on-the-current-value/m-p/773073#M661114</guid>
      <dc:creator>kpatelacmm</dc:creator>
      <dc:date>2015-03-23T21:10:33Z</dc:date>
    </item>
  </channel>
</rss>

