<?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 Current YTD vs Previous year YTD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-YTD-vs-Previous-year-YTD/m-p/626364#M1098255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are trying to compare current year YTD vs Prev year YTD.&amp;nbsp; Lets say we are in month of May 2014 so current year YTD would be Jan to May 2014 revenue. And we need to compare this with previous yr YTD revenue which should be Jan to May 2013 so how can we write and expression so that the prev year YTD will calculate only these 5 months&amp;nbsp; Jan to May 2013 and exclude rest while calculating revenue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 May 2014 07:38:54 GMT</pubDate>
    <dc:creator>rsdhavle</dc:creator>
    <dc:date>2014-05-08T07:38:54Z</dc:date>
    <item>
      <title>Current YTD vs Previous year YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Current-YTD-vs-Previous-year-YTD/m-p/626364#M1098255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are trying to compare current year YTD vs Prev year YTD.&amp;nbsp; Lets say we are in month of May 2014 so current year YTD would be Jan to May 2014 revenue. And we need to compare this with previous yr YTD revenue which should be Jan to May 2013 so how can we write and expression so that the prev year YTD will calculate only these 5 months&amp;nbsp; Jan to May 2013 and exclude rest while calculating revenue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 07:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-YTD-vs-Previous-year-YTD/m-p/626364#M1098255</guid>
      <dc:creator>rsdhavle</dc:creator>
      <dc:date>2014-05-08T07:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Current YTD vs Previous year YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Current-YTD-vs-Previous-year-YTD/m-p/626365#M1098256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Several ways are there. A better one : &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/03/03/ytd"&gt;Year Over Year Comparison&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 07:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-YTD-vs-Previous-year-YTD/m-p/626365#M1098256</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-08T07:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Current YTD vs Previous year YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Current-YTD-vs-Previous-year-YTD/m-p/626366#M1098257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Current YTD&lt;/P&gt;&lt;P&gt;=SUM({$&amp;lt;YourDateField = {'&amp;gt;=$(=YearStart(Today()))&amp;lt;=$(=MonthEnd(Today()))'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Previous YTD&lt;/P&gt;&lt;P&gt;=SUM({$&amp;lt;YoureDateField = {'&amp;gt;=$(=AddMonths( YearStart (Today()),-12))&amp;lt;=$(=AddMonths( MonthEnd (Today()),-12))'}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 07:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-YTD-vs-Previous-year-YTD/m-p/626366#M1098257</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-05-08T07:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Current YTD vs Previous year YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Current-YTD-vs-Previous-year-YTD/m-p/626367#M1098259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Current Year- Sum({&amp;lt;Date={"&amp;gt;=YearStart(Today())&amp;lt;=$(=Today())"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous Year- Sum({&amp;lt;Date={"&amp;gt;=$(=YearStart($(=MakeDate(Year(Today())-1,Month(Today()),Day(Today())))))&amp;lt;=$(=MakeDate(Year(Today())-1,Month(Today()),Day(Today())))"}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 07:52:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-YTD-vs-Previous-year-YTD/m-p/626367#M1098259</guid>
      <dc:creator>rajat2392</dc:creator>
      <dc:date>2014-05-08T07:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Current YTD vs Previous year YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Current-YTD-vs-Previous-year-YTD/m-p/626368#M1098261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello @Anand Chouhan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used your code:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;=Count({$&amp;lt;&lt;SPAN style="color: #000000;"&gt;BookingDate&lt;/SPAN&gt; = {'&amp;gt;=$(=YearStart(Today()))&amp;lt;=$(=MonthEnd(Today()))'}&amp;gt;}&lt;SPAN style="color: #000000;"&gt;AssignmentNumber&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;=Count({$&amp;lt;&lt;SPAN style="color: #000000;"&gt;BookingDate&lt;/SPAN&gt; = {'&amp;gt;=$(=AddMonths( YearStart (Today()),-12))&amp;lt;=$(=AddMonths( MonthEnd (Today()),-12))'}&amp;gt;}&lt;SPAN style="color: #000000;"&gt;AssignmentNumber&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;It works perfectly.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;Then I wanted to add another preceding year.. Following same form.. but this did not work at all.. Any idea how to make this work?&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;SPAN style="color: #454545; font-family: Helvetica; font-size: 12px;"&gt;=Count({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Helvetica; font-size: 12px; color: #000000;"&gt;BookingDate&lt;/SPAN&gt;&lt;SPAN style="color: #454545; font-family: Helvetica; font-size: 12px;"&gt; = {'&amp;gt;=$(=AddMonths( YearStart (Today()),-24))&amp;lt;=$(=AddMonths( MonthEnd (Today()),-24))’}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-family: Helvetica; font-size: 12px; color: #000000;"&gt;AssignmentNumber&lt;/SPAN&gt;&lt;SPAN style="color: #454545; font-family: Helvetica; font-size: 12px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;SPAN style="color: #454545; font-family: Helvetica; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;SPAN style="color: #454545; font-family: Helvetica; font-size: 12px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;SPAN style="color: #454545; font-family: Helvetica; font-size: 12px;"&gt;/Oskar&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 08:19:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-YTD-vs-Previous-year-YTD/m-p/626368#M1098261</guid>
      <dc:creator />
      <dc:date>2015-11-16T08:19:21Z</dc:date>
    </item>
  </channel>
</rss>

