<?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: Loading the Current Year and Previous Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014820#M945806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Try,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Aggr(Only({&amp;lt;Year={'$(=Max(Year))','$(=Max(Year)-1)'}&amp;gt;} Year),Year)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jan 2016 06:20:50 GMT</pubDate>
    <dc:creator>tamilarasu</dc:creator>
    <dc:date>2016-01-04T06:20:50Z</dc:date>
    <item>
      <title>Loading the Current Year and Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014818#M945804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to show Number of Products sold each year for different Categories.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110451_Capture2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Here &lt;STRONG style="color: #0000ff;"&gt;Category&lt;/STRONG&gt; will be the &lt;SPAN style="color: #0000ff;"&gt;Primary Dimension&lt;/SPAN&gt; and &lt;STRONG style=": ; color: #008000;"&gt;Year&lt;/STRONG&gt; will be the &lt;SPAN style="color: #008000;"&gt;Secondary Dimension&lt;/SPAN&gt;.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #ff9900;"&gt;&lt;STRONG style="color: #000000;"&gt;count(Products Sold)&lt;/STRONG&gt;&lt;/SPAN&gt; will be the expression.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I need to show the count only for Current and Previous Year. Current Year data will be updated monthly. For that purpose there is a field called &lt;STRONG style="color: #000000;"&gt;UpdatedDate&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume, Current Year is 2015 and Previous Year is 2014. 2014 data will be same while 2015 data changes every month. I need to the bar chart accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this as a Calculated Dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year=(max(Year)-1), Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year=max(Year) and UpdatedDate=max(UpdatedDate),Year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not working. I know I'm wrong logically somewhere. Can someone help me on how to solve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 06:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014818#M945804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-04T06:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Loading the Current Year and Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014819#M945805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Current :&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;=count({&amp;lt;Year ={"$(=max(Year))"}&amp;gt;}Products Sold)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Previous:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;=count({&amp;lt;Year ={"$(=max(Year)-1)"}&amp;gt;}Products Sold)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 06:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014819#M945805</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-01-04T06:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Loading the Current Year and Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014820#M945806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Try,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Aggr(Only({&amp;lt;Year={'$(=Max(Year))','$(=Max(Year)-1)'}&amp;gt;} Year),Year)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 06:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014820#M945806</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-01-04T06:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Loading the Current Year and Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014821#M945807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;You can use two expression for comparison it will be easy ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;Dimension :&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Category&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;Expressions&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Previous Year&lt;/STRONG&gt;&lt;/EM&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;Count({&amp;lt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Year={$(=Max(Year)-1)}&amp;gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Products Sold)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&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;&lt;EM&gt;Current year&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&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;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count({&amp;lt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Year={$(=Max(Year))}&amp;gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Products Sold)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Post your sample data if possbile.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;HTH,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;-Hirish&lt;BR /&gt;&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 06:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014821#M945807</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-01-04T06:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Loading the Current Year and Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014822#M945808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tamil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work perfectly. But I need to include the max(UpdatedDate) for the Current Year since there is new data every month. Is there a way to do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 06:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014822#M945808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-04T06:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Loading the Current Year and Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014823#M945809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis would be a better way to achieve this. Having said that, if you want to know what went wrong the way you tried and get it corrected, try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year=&lt;STRONG&gt;$(=&lt;/STRONG&gt;max(Year)-1), Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year=&lt;STRONG&gt;$(=&lt;/STRONG&gt;max(Year)) and UpdatedDate=&lt;STRONG&gt;$(=&lt;/STRONG&gt;max(UpdatedDate)),Year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 06:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014823#M945809</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-01-04T06:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Loading the Current Year and Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014824#M945810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harish and &lt;A href="https://community.qlik.com/qlik-users/57428"&gt;Kush141087&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this using two expressions. I guess I cannot make use of Legend selection. Correct me if I'm wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 06:32:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014824#M945810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-04T06:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Loading the Current Year and Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014825#M945811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Fine.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Aggr(Only({&amp;lt;Year={'$(=Max(Year)-1)'}&amp;gt;+&amp;lt;Year={'$(=Max(Year))'},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;UpdatedDate&lt;/SPAN&gt;={'$(=Date(Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;UpdatedDate&lt;/SPAN&gt;),"&lt;STRONG style="color: #ff0000;"&gt;DD/MM/YYYY&lt;/STRONG&gt;"))'}&amp;gt;} Year),Year)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Change the date format accordingly.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 06:46:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014825#M945811</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-01-04T06:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Loading the Current Year and Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014826#M945812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this App with sample data,&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="110457" alt="Prevcurryear.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110457_Prevcurryear.PNG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="text-decoration: underline;"&gt;&lt;STRONG&gt;At Back end:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14518908829501994" jivemacro_uid="_14518908829501994"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD Category,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Updated Date],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month([Updated Date]) as Month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year([Updated Date]) as Year,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Products Sold]&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[\Dataforprecurr.xlsx]&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;EM&gt;At Front end:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;EM&gt;In Chart:&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimensions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Category and Year,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expressions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Previous and current year expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH ,&lt;/P&gt;&lt;P&gt;-Hirish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 06:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014826#M945812</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-01-04T06:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Loading the Current Year and Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014827#M945813</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 something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create one variable&lt;/P&gt;&lt;P&gt;vYear=max(Year)&amp;nbsp; then&amp;nbsp; calculated dim will be like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Year&amp;gt;=($(vYear)-1) ,Year)&amp;nbsp; &lt;/STRONG&gt;and check the option Suppress Null values &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 07:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014827#M945813</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2016-01-04T07:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Loading the Current Year and Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014828#M945814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tamil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the current Year data is not getting loaded. I'm not sure why it's happening. But the solution can be obtained using the technique &lt;A href="https://community.qlik.com/qlik-users/26418"&gt;tresesco&lt;/A&gt;‌ has given here. Even he mentioned, using set analysis is the better way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 07:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014828#M945814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-04T07:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Loading the Current Year and Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014829#M945815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hirish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time. Using two expressions is good and I have tried this already. But the end users are very novice when it comes to qlikview. So the first thing they do is clicking the legend for Year selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Legends are not selected if expression is used even though they are displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 07:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014829#M945815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-04T07:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Loading the Current Year and Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014830#M945816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/26418"&gt;tresesco&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible can you tell me how to include the updated date for previous year as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say, 2015 is my Current Year and the max(UpdatedDate) should give me 2015's last Updated date.&lt;/P&gt;&lt;P&gt;Similarly 2014 is my previous year and the max(UpdateDate) should give me 2014's last updated date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Literally a sub query kind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this in a plain text box to get the last updated date for Previous Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;max({&amp;lt;Year={'$(=max(Year)-1)'}&amp;gt;}UpdatedDate)&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not Sure how to implement the same in Calculated Dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 05:39:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014830#M945816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-05T05:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Loading the Current Year and Previous Year</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014831#M945817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi Koushik,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Try,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=If(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year=$(=Max(Year)-1) and &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;UpdatedDate &lt;/STRONG&gt;&lt;/SPAN&gt;= $(=Max({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;UpdatedDate&lt;/STRONG&gt;&lt;/SPAN&gt;)), Year,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year=$(=Max(Year)) and &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;UpdatedDate &lt;/STRONG&gt;&lt;/SPAN&gt;= $(=Max(&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;UpdatedDate&lt;/STRONG&gt;&lt;/SPAN&gt;)),Year&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 06:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-the-Current-Year-and-Previous-Year/m-p/1014831#M945817</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-01-05T06:02:22Z</dc:date>
    </item>
  </channel>
</rss>

