<?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: Current year and previous year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175273#M895461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Checking now&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jul 2016 08:50:48 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-07-29T08:50:48Z</dc:date>
    <item>
      <title>Current year and previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175262#M895433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i have year field something like this FY stands for full year and MY stands for Mid year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Period, PeriodActual&lt;/P&gt;&lt;P&gt;FY2015,20152&lt;/P&gt;&lt;P&gt;MY2015,20151&lt;/P&gt;&lt;P&gt;FY2014,20142&lt;/P&gt;&lt;P&gt;MY2014,20141&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FY2013,20132&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MY2013,20131&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;To get current year, i use =Max({&amp;lt;Period=&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;PeriodActual&lt;/SPAN&gt;), but it gives me 20152 not period.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;i want current year and previous year calculation to show period&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;current year=fy2015 and previous year fy2014&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;help plz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175262#M895433</guid>
      <dc:creator>gauthamchilled</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Current year and previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175263#M895434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue({&amp;lt;Period&amp;gt;} Period, -PeriodActual)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;FirstSortedValue({&amp;lt;Period&amp;gt;} Period, -PeriodActual, 3)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can do something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Dual(Period, PeriodActual) as Period,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;PeriodActual&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MaxString({&amp;lt;Period&amp;gt;} Period)&lt;/STRONG&gt; to get FY2015&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;MaxString({&amp;lt;Period&amp;gt;} Period, 3)&lt;/STRONG&gt; to get FY2014&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 05:28:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175263#M895434</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-29T05:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Current year and previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175264#M895435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response. It works but however when i select any of the other year in the field, current year and previous year not changing based on the current selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want current selected year as current year, and previous year to be -1 according to the current selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if my current selection is fy2014, current year&amp;nbsp; to be fy2014 and previous year to be fy2013&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 06:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175264#M895435</guid>
      <dc:creator>gauthamchilled</dc:creator>
      <dc:date>2016-07-29T06:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Current year and previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175265#M895436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure which method you took, but I guess I carried over the logic to ignore selection in Period field. If you don't want it, remove it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FirstSortedValue(Period, -PeriodActual)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FirstSortedValue(Period, -PeriodActual, 3)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MaxString(Period)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MaxString(Period, 3)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If you notice, I removed &lt;STRONG&gt;{&amp;lt;Period&amp;gt;}&lt;/STRONG&gt; from the above expressions &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 06:15:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175265#M895436</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-29T06:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Current year and previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175266#M895437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lets say if you have selected FY2014 then try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Year = maxstring(Period)&lt;/P&gt;&lt;P&gt;Prior Year = 'FY'&amp;amp;(num(right(&lt;SPAN style="font-size: 13.3333px;"&gt;maxstring(Period),4))-1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 06:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175266#M895437</guid>
      <dc:creator>phaneendra_kunc</dc:creator>
      <dc:date>2016-07-29T06:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Current year and previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175267#M895439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I understand the concern now, may be this will also work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FirstSortedValue(Period, -PeriodActual)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FirstSortedValue({&amp;lt;PeriodActual = {"$(='&amp;lt;=' &amp;amp; Max(PeriodActual))"}, Period&amp;gt;}Period, -PeriodActual, 3)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit;"&gt;MaxString(Period)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px;"&gt;MaxString(&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;{&amp;lt;PeriodActual = {"$(='&amp;lt;=' &amp;amp; Max(PeriodActual))"}, Period&amp;gt;} &lt;/STRONG&gt;&lt;/STRONG&gt;Period, 3)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 06:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175267#M895439</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-29T06:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Current year and previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175268#M895441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gautham Prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try expressions as -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Current Year (FY2015) :&amp;nbsp; Only( {&amp;lt;PeriodActual={'$(=Max(PeriodActual))'}&amp;gt;} Period)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Previous Year (FY2014) :&amp;nbsp; 'FY'&amp;amp;(Right(Only( {&amp;lt;PeriodActual={'$(=Max(PeriodActual))'}&amp;gt;} Period),4)-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values will be changes based on selections made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help to resolve issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant P Baste&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 06:51:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175268#M895441</guid>
      <dc:creator>prashantbaste</dc:creator>
      <dc:date>2016-07-29T06:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Current year and previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175269#M895443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks sunny and phanneendra for the help...still not getting it correct solution...attached the file with explanation..appreciating your help.&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 06:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175269#M895443</guid>
      <dc:creator>gauthamchilled</dc:creator>
      <dc:date>2016-07-29T06:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Current year and previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175270#M895448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Modified &lt;A href="https://community.qlik.com/people/phaneendra.kunche"&gt;phaneendra.kunche&lt;/A&gt;‌ solution for previous year:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Left(Period, 2) &amp;amp; (num(right(maxstring(Period),4))-1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 06:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175270#M895448</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-29T06:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Current year and previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175271#M895451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And also modified my expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=FirstSortedValue({&amp;lt;PeriodActual = {"$(='&amp;lt;=' &amp;amp; Max(PeriodActual))"}, Period&amp;gt;} Period, -PeriodActual, 3)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 06:59:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175271#M895451</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-29T06:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Current year and previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175272#M895456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;hi sunny,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;one more help attached the same file with a chart, what i want is&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if i select year fy2015, the chart should show sales for fy2015,fy2014,fy2013&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if i select year my2015, the chart should show sales for my2015,my2014,my2013&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;how can i do this? thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 08:47:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175272#M895456</guid>
      <dc:creator>gauthamchilled</dc:creator>
      <dc:date>2016-07-29T08:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Current year and previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175273#M895461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Checking now&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 08:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175273#M895461</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-29T08:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Current year and previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175274#M895463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Period = {"$(=Left(Period, 2) &amp;amp; '*')"}&amp;gt;}sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 08:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-and-previous-year/m-p/1175274#M895463</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-29T08:52:08Z</dc:date>
    </item>
  </channel>
</rss>

