<?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 YTD /Current Previous Year Data Display in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-Current-Previous-Year-Data-Display/m-p/141937#M21519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all for ur help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the tricks did work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2009 18:05:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-04-21T18:05:03Z</dc:date>
    <item>
      <title>YTD /Current Previous Year Data Display</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Current-Previous-Year-Data-Display/m-p/141931#M21513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to show pivot table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User Selects Any one year from Transaction date and based o that selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my pivot table should show me below output&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;ItemName PreviousYearSale Value CurrentYear Sale Value&lt;/P&gt;&lt;P&gt;X 10 5&lt;/P&gt;&lt;P&gt;Y 20 10&lt;/P&gt;&lt;P&gt;Z 30 18&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone halp me!!!!!!!!!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 15:22:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Current-Previous-Year-Data-Display/m-p/141931#M21513</guid>
      <dc:creator />
      <dc:date>2009-04-21T15:22:35Z</dc:date>
    </item>
    <item>
      <title>YTD /Current Previous Year Data Display</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Current-Previous-Year-Data-Display/m-p/141932#M21514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Which version of QlikView are you using? You can use the SetAnalysis functionality but this is only available from QV 8.5&amp;gt; (at least, in an easy to apply way).. The Annual Comparison sheet in the "What's New in QV 8.5" application (located in your local &lt;EM&gt;&lt;STRONG&gt;Program Files/QlikView/Examples/Documents&lt;/STRONG&gt;&lt;/EM&gt; shows exactly how to do this..&lt;/P&gt;&lt;P&gt;Regards, Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 15:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Current-Previous-Year-Data-Display/m-p/141932#M21514</guid>
      <dc:creator />
      <dc:date>2009-04-21T15:52:40Z</dc:date>
    </item>
    <item>
      <title>YTD /Current Previous Year Data Display</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Current-Previous-Year-Data-Display/m-p/141933#M21515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats relatively easy. I suppose for the first scenario you have a linkage between year of sales and sales value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;Previous Year Sales value:&lt;/P&gt;&lt;P&gt;sum(if(YearOfSales=&lt;B&gt;(year(today())-1)&lt;/B&gt;,SaleValue))&lt;/P&gt;&lt;P style="font-style: italic"&gt;Current Year Sales Value:&lt;/P&gt;&lt;P&gt;sum(if(YearOfSales=year(today()),SaleValue))&lt;/P&gt;&lt;P&gt;Important:&lt;/P&gt;&lt;P&gt;If you do calculations with DateTime-Functions like adding or subtracting (see bold text in the first formular), you have to enclose the whole term in brackets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rolf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 16:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Current-Previous-Year-Data-Display/m-p/141933#M21515</guid>
      <dc:creator />
      <dc:date>2009-04-21T16:30:45Z</dc:date>
    </item>
    <item>
      <title>YTD /Current Previous Year Data Display</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Current-Previous-Year-Data-Display/m-p/141934#M21516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rolf,&lt;/P&gt;&lt;P&gt;That was also my first idea but the only problem with this solution is that when the user filters on a year other than the current year (as being the year which must be compared to the previous year), for example 2008-2007 the expressions don't work anymore. That is exactly what SetAnalysis solves, using the selected year as a variable for the current year and the previous year as selected year minus 1.&lt;/P&gt;&lt;P&gt;In essence it does the same as your solution but the variables make the expressions dynamic.&lt;/P&gt;&lt;P&gt;Regards, Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 16:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Current-Previous-Year-Data-Display/m-p/141934#M21516</guid>
      <dc:creator />
      <dc:date>2009-04-21T16:39:38Z</dc:date>
    </item>
    <item>
      <title>YTD /Current Previous Year Data Display</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Current-Previous-Year-Data-Display/m-p/141935#M21517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With QV versions below 8.5 you can do the same by using &lt;B&gt;&lt;I&gt;num(GetFieldSelections(YearofSales))&lt;/I&gt;&lt;/B&gt; as a replacement for the current year.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rolf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 16:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Current-Previous-Year-Data-Display/m-p/141935#M21517</guid>
      <dc:creator />
      <dc:date>2009-04-21T16:49:38Z</dc:date>
    </item>
    <item>
      <title>YTD /Current Previous Year Data Display</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Current-Previous-Year-Data-Display/m-p/141936#M21518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;By assigning the Max of the date field to the variable, i.e. Var1 = year(max(YearOfSales)) and using the same variable with '&lt;B&gt;ALL'&lt;/B&gt; Function in the expression will do the trick.&lt;/P&gt;&lt;P style="font-style: italic"&gt;Previous Year Sales value:&lt;/P&gt;&lt;P&gt;sum(All if(YearOfSales=&lt;B&gt;(Var1-1)&lt;/B&gt;,SaleValue))&lt;/P&gt;&lt;P style="font-style: italic"&gt;Current Year Sales Value:&lt;/P&gt;&lt;P&gt;sum(if(YearOfSales=(Var1),SaleValue))&lt;/P&gt;&lt;P&gt;Hope this will help you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;IMG alt="Yes" src="http://community.qlik.com/emoticons/emotion-21.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 17:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Current-Previous-Year-Data-Display/m-p/141936#M21518</guid>
      <dc:creator />
      <dc:date>2009-04-21T17:05:14Z</dc:date>
    </item>
    <item>
      <title>YTD /Current Previous Year Data Display</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Current-Previous-Year-Data-Display/m-p/141937#M21519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all for ur help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the tricks did work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 18:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Current-Previous-Year-Data-Display/m-p/141937#M21519</guid>
      <dc:creator />
      <dc:date>2009-04-21T18:05:03Z</dc:date>
    </item>
  </channel>
</rss>

