<?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 Year On Year Comparison in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-On-Year-Comparison/m-p/201118#M59367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;we have sales, Cost and Profit data for 3 years 2008, 2009 and 2010. For year 2010 the data is available only until May'10 (5 months). When I do a Year on Year comparison for the Year 2010, we need to show data also for 5 months of 2009 for comparision. For example the expression I am using is for Current year is&lt;/P&gt;&lt;P&gt;=num(((Sum({&amp;lt;Year={$(=Max(Year))} &amp;gt;} AAmount )))) if year 2010 is select it will show data for 5 months (jan to May)&lt;/P&gt;&lt;P&gt;for Previous year YTD I am using the expression&lt;/P&gt;&lt;P&gt;num(((Sum({&amp;lt;Year={$(=Max(Year)-1)} &amp;gt;} AAmount ))) this will show the data for the whole of year.&lt;/P&gt;&lt;P&gt;The requirement is if year 2010 is selected the the previous year data for 2009 should also be selected for first 5 months.&lt;/P&gt;&lt;P&gt;How can this be achieved.&lt;/P&gt;&lt;P&gt;Can somebody please help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jun 2010 15:34:24 GMT</pubDate>
    <dc:creator>raghavsurya</dc:creator>
    <dc:date>2010-06-24T15:34:24Z</dc:date>
    <item>
      <title>Year On Year Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Year-On-Year-Comparison/m-p/201118#M59367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;we have sales, Cost and Profit data for 3 years 2008, 2009 and 2010. For year 2010 the data is available only until May'10 (5 months). When I do a Year on Year comparison for the Year 2010, we need to show data also for 5 months of 2009 for comparision. For example the expression I am using is for Current year is&lt;/P&gt;&lt;P&gt;=num(((Sum({&amp;lt;Year={$(=Max(Year))} &amp;gt;} AAmount )))) if year 2010 is select it will show data for 5 months (jan to May)&lt;/P&gt;&lt;P&gt;for Previous year YTD I am using the expression&lt;/P&gt;&lt;P&gt;num(((Sum({&amp;lt;Year={$(=Max(Year)-1)} &amp;gt;} AAmount ))) this will show the data for the whole of year.&lt;/P&gt;&lt;P&gt;The requirement is if year 2010 is selected the the previous year data for 2009 should also be selected for first 5 months.&lt;/P&gt;&lt;P&gt;How can this be achieved.&lt;/P&gt;&lt;P&gt;Can somebody please help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 15:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-On-Year-Comparison/m-p/201118#M59367</guid>
      <dc:creator>raghavsurya</dc:creator>
      <dc:date>2010-06-24T15:34:24Z</dc:date>
    </item>
    <item>
      <title>Year On Year Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Year-On-Year-Comparison/m-p/201119#M59368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Since u need the previous year Amount also i.e suppose if u consider today's date which is Jun-28th u will get the sales happened in this year till that date.but when u consider previous year salesamount u will get all tha sales of that entire year......So what i suggest in the set expression which u had written earlier try to pass the month as well current day so it will be like&lt;/P&gt;&lt;P&gt;year-1=2009,Month&amp;lt;=Month(Today()) ,Day= &amp;lt;=Day(Today())&lt;/P&gt;&lt;P&gt;Like this try to pass the parameters mean while i will try to send the exact expression....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 09:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-On-Year-Comparison/m-p/201119#M59368</guid>
      <dc:creator>spsrk_84</dc:creator>
      <dc:date>2010-06-28T09:53:21Z</dc:date>
    </item>
    <item>
      <title>Year On Year Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Year-On-Year-Comparison/m-p/201120#M59369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this way&lt;/P&gt;&lt;P&gt;Variable=max(month(today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Previous year =sum(if(year='2008' and month&amp;lt;=Variable,amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;current year =sum(if(year='2009' and month&amp;lt;=Variable,amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i pass the year directly you please change as per your scenario&lt;/P&gt;&lt;P&gt;try this in set analysis as well ,&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 13:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-On-Year-Comparison/m-p/201120#M59369</guid>
      <dc:creator />
      <dc:date>2010-06-29T13:43:22Z</dc:date>
    </item>
    <item>
      <title>Year On Year Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Year-On-Year-Comparison/m-p/201121#M59370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using InYearToDate() function. This function is specially made for this purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2010 05:16:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-On-Year-Comparison/m-p/201121#M59370</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-06-30T05:16:30Z</dc:date>
    </item>
  </channel>
</rss>

