<?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: Previous Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-Year/m-p/1246396#M865220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;&lt;STRONG style="font-style: inherit;"&gt;FYearStart&lt;/STRONG&gt;= {"$(=Date(AddYears(Max(&lt;STRONG style="font-style: inherit;"&gt;FYearStart&lt;/STRONG&gt;), -1)))"}, &lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;IHIDAT&lt;/SPAN&gt;&amp;gt;}Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure to ignore selections in other date related fields where you plan to make selections. I have added IHIDAT, you can add others the same way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Dec 2016 02:25:22 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-12-29T02:25:22Z</dc:date>
    <item>
      <title>Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year/m-p/1246389#M865213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried all ways to produce a straight table for a previous year using a fiscal Calendar. I have been able to create a current year table with the help of the Qlikview community which works perfectly. Can someone show me what i'm doing wrong.&lt;/P&gt;&lt;P&gt;Thank you in advance.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;P&gt;Here is my Fiscal Calendar and load script for the file driving the calendar&amp;nbsp; All i need is a set analysis expression to retrieve the previous year amount.&lt;IMG alt="C1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147866_C1.PNG" style="height: auto;" /&gt; &lt;IMG alt="C1.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/147867_C1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the expression i'm using to select the previous data&lt;/P&gt;&lt;P&gt;sum({&amp;lt;IHIDAT = {"&amp;gt;=$(AddYears(FYearStart,-1)&amp;lt;=$(FYearStart)"}&amp;gt;}Amount)&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/Previous-Year/m-p/1246389#M865213</guid>
      <dc:creator>jjking58</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year/m-p/1246390#M865214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is FYearStart a variable? How is it defined? May be try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;IHIDAT = {"&amp;gt;=$(=Date(AddYears(FYearStart,-1), 'M/D/YYYY'))&amp;lt;=$(=Date(FYearStart, 'M/D/YYYY'))"}&amp;gt;}Amount)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 20:49:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year/m-p/1246390#M865214</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-28T20:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year/m-p/1246391#M865215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried your suggestion and show no data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYearStart comes from the Fiscal Calendar script. Should I be comparing IHIDAT which is the invoice date from the table and the field used to create the Fiscal Calendar. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 20:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year/m-p/1246391#M865215</guid>
      <dc:creator>jjking58</dc:creator>
      <dc:date>2016-12-28T20:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year/m-p/1246392#M865216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you just do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FYearStart&lt;/STRONG&gt;= {"$(=Date(Max(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FYearStart&lt;/STRONG&gt;)))"}&amp;gt;}Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 22:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year/m-p/1246392#M865216</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-28T22:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year/m-p/1246393#M865217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;these are the variable I use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="420"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="127"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;sLYear&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid silver 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="293"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;=sTYear-1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="127"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;sTYear&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: solid silver 1.0pt; border-bottom: none; border-right: solid silver 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="293"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: black;"&gt;=Year&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="127"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid silver 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="293"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="1248"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="background: #DAEEF3; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="324"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri Light','sans-serif'; color: black;"&gt;mTYSalesVal&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="background: #DAEEF3; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="924"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri Light','sans-serif'; color: black;"&gt;Num(Sum(SalesValue * $(vIncludeTrailers))/vRound,'$#,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="background: #DAEEF3; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="324"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri Light','sans-serif'; color: black;"&gt;mLYSalesVal&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="background: #DAEEF3; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="924"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri Light','sans-serif'; color: black;"&gt;Num(Sum({$&amp;lt;Year={$(sLYear)}&amp;gt;} SalesValue * $(vIncludeTrailers))/vRound,'$#,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 22:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year/m-p/1246393#M865217</guid>
      <dc:creator>alan_richmond</dc:creator>
      <dc:date>2016-12-28T22:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year/m-p/1246394#M865218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That gives me the current year.&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 23:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year/m-p/1246394#M865218</guid>
      <dc:creator>jjking58</dc:creator>
      <dc:date>2016-12-28T23:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year/m-p/1246395#M865219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i display the contents of IHIDAT it only shows the dates from the selection made ex.(2014/2015) excludes all 2016 data. Would this cause the previous or current years data from be processed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 23:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year/m-p/1246395#M865219</guid>
      <dc:creator>jjking58</dc:creator>
      <dc:date>2016-12-28T23:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year/m-p/1246396#M865220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;&lt;STRONG style="font-style: inherit;"&gt;FYearStart&lt;/STRONG&gt;= {"$(=Date(AddYears(Max(&lt;STRONG style="font-style: inherit;"&gt;FYearStart&lt;/STRONG&gt;), -1)))"}, &lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;IHIDAT&lt;/SPAN&gt;&amp;gt;}Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure to ignore selections in other date related fields where you plan to make selections. I have added IHIDAT, you can add others the same way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 02:25:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year/m-p/1246396#M865220</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-29T02:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year/m-p/1246397#M865221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;Still no luck. Displays no data. I've included a screen shot showing the selection of 2015/2016 the IHIDAT only includes dates 20150401- 20160331 (April is the start of fiscal period). There are no records in IHIDAT&amp;nbsp; for 20140401- 2015331. Could this be why the above statement does not work? Is there a way around this and include all records between 2013-2017&lt;/P&gt;&lt;P&gt;Thanks for spending so much time on this.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="C1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147871_C1.PNG" style="height: auto;" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 03:11:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year/m-p/1246397#M865221</guid>
      <dc:creator>jjking58</dc:creator>
      <dc:date>2016-12-29T03:11:27Z</dc:date>
    </item>
  </channel>
</rss>

