<?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 Dynamic Calculation of Previous Year Data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Calculation-of-Previous-Year-Data/m-p/272419#M1206647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I just answered my own post THANKS to Mr. John Witherspoon's reply (details below):&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/members/JohnW/default.aspx"&gt;&lt;STRONG&gt;John Witherspoon&lt;/STRONG&gt;&lt;/A&gt; &lt;A href="http://community.qlik.com/forums/p/24521/93659.aspx#93659"&gt;replied on&lt;/A&gt; 01-15-2010 7:44 PM&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Using John's reply, I modified my formula to be: sum&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;({&amp;lt;&lt;B&gt;Year&lt;/B&gt;={&lt;B&gt;&lt;I&gt;$(=Year-1)&lt;/I&gt;&lt;/B&gt;}&amp;gt;} &lt;B&gt;Sales&lt;/B&gt;)/1000 and it worked perfectly. &lt;P&gt;Thanks John.&lt;/P&gt;&lt;P&gt;Adi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Aug 2010 19:41:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-21T19:41:16Z</dc:date>
    <item>
      <title>Dynamic Calculation of Previous Year Data</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Calculation-of-Previous-Year-Data/m-p/272418#M1206646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;I am very new to Qlikview - only 2 days so please excuse a simple question....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;I have a column in the pivot table which displays the sales of the Year that was selected. E.g. if the Selection is for Year 2008, it displays data for the Sales for Year 2008 correctly using the SelYear formula: sum&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I have another column in which I want to display the previous year's data of the Year selected. E.g. If the Selected Year is 2008 then I want to display the Sales data for Year 2007 in the second colmn called PrevYear.&lt;/P&gt;({$&amp;lt;&lt;B&gt;Year&lt;/B&gt;=(&lt;B&gt;Year&lt;/B&gt;)&amp;gt;}&lt;B&gt;Sales&lt;/B&gt;)/ 1000 &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The formula for PrevYear that I am using is: &lt;B&gt;sum&lt;/B&gt;({$&amp;lt;&lt;B&gt;Year&lt;/B&gt;=(&lt;B&gt;Year&lt;/B&gt;-1)&amp;gt;}&lt;B&gt;Sales&lt;/B&gt;)/1000 which does not give me the correct results for sales of 2007. It gives me the same value as in the first column which is the Sales for Year 2008.&lt;/P&gt;&lt;P&gt;Can somebody please help me.&lt;/P&gt;&lt;P&gt;Thanks.....Adi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Aug 2010 19:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Calculation-of-Previous-Year-Data/m-p/272418#M1206646</guid>
      <dc:creator />
      <dc:date>2010-08-21T19:29:25Z</dc:date>
    </item>
    <item>
      <title>Dynamic Calculation of Previous Year Data</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Calculation-of-Previous-Year-Data/m-p/272419#M1206647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I just answered my own post THANKS to Mr. John Witherspoon's reply (details below):&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/members/JohnW/default.aspx"&gt;&lt;STRONG&gt;John Witherspoon&lt;/STRONG&gt;&lt;/A&gt; &lt;A href="http://community.qlik.com/forums/p/24521/93659.aspx#93659"&gt;replied on&lt;/A&gt; 01-15-2010 7:44 PM&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Using John's reply, I modified my formula to be: sum&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;({&amp;lt;&lt;B&gt;Year&lt;/B&gt;={&lt;B&gt;&lt;I&gt;$(=Year-1)&lt;/I&gt;&lt;/B&gt;}&amp;gt;} &lt;B&gt;Sales&lt;/B&gt;)/1000 and it worked perfectly. &lt;P&gt;Thanks John.&lt;/P&gt;&lt;P&gt;Adi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Aug 2010 19:41:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Calculation-of-Previous-Year-Data/m-p/272419#M1206647</guid>
      <dc:creator />
      <dc:date>2010-08-21T19:41:16Z</dc:date>
    </item>
  </channel>
</rss>

