<?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: Analyzing Current and Previous Year data (See description) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Analyzing-Current-and-Previous-Year-data-See-description/m-p/926596#M962946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you upload file qvw or an example with your data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Oct 2015 06:30:29 GMT</pubDate>
    <dc:creator>ecolomer</dc:creator>
    <dc:date>2015-10-20T06:30:29Z</dc:date>
    <item>
      <title>Analyzing Current and Previous Year data (See description)</title>
      <link>https://community.qlik.com/t5/QlikView/Analyzing-Current-and-Previous-Year-data-See-description/m-p/926592#M962942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the data set where it has Year as a dimension. It has data for the last 10 years. Say from 2005 to 2015.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My client always wants to analyse the current year's data and previous year data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say, I have a Bar Chart which shows the Sales of each Product for 2014 and 2015. For Time being I just used a simple Calculated dimension =If(Year = 2014 or Year=2015,Year) so that other data will be suppressed as NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not just the above scenario. I have used {&amp;lt;Year=2015&amp;gt;} in various expression which I need to convert to current available Year data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The least, I could think of is max(Year) and max(Year)-1. Is there any alternatives available for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one throw a light on this about how to proceed with this problem? so that when I do incremental load, the current data and previous year will be taken.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 06:17:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Analyzing-Current-and-Previous-Year-data-See-description/m-p/926592#M962942</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-20T06:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing Current and Previous Year data (See description)</title>
      <link>https://community.qlik.com/t5/QlikView/Analyzing-Current-and-Previous-Year-data-See-description/m-p/926593#M962943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a variable with value = Max(Year)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 06:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Analyzing-Current-and-Previous-Year-data-See-description/m-p/926593#M962943</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2015-10-20T06:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing Current and Previous Year data (See description)</title>
      <link>https://community.qlik.com/t5/QlikView/Analyzing-Current-and-Previous-Year-data-See-description/m-p/926594#M962944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Yes. I thought about that and also added that to my question. But is there any other way? Like using variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 06:20:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Analyzing-Current-and-Previous-Year-data-See-description/m-p/926594#M962944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-20T06:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing Current and Previous Year data (See description)</title>
      <link>https://community.qlik.com/t5/QlikView/Analyzing-Current-and-Previous-Year-data-See-description/m-p/926595#M962945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also. When I use max(Year) inside set, there is some error in my set expression. How to overcome that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 06:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Analyzing-Current-and-Previous-Year-data-See-description/m-p/926595#M962945</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-20T06:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing Current and Previous Year data (See description)</title>
      <link>https://community.qlik.com/t5/QlikView/Analyzing-Current-and-Previous-Year-data-See-description/m-p/926596#M962946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you upload file qvw or an example with your data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 06:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Analyzing-Current-and-Previous-Year-data-See-description/m-p/926596#M962946</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2015-10-20T06:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing Current and Previous Year data (See description)</title>
      <link>https://community.qlik.com/t5/QlikView/Analyzing-Current-and-Previous-Year-data-See-description/m-p/926597#M962947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may do this with Set Analysis and variables. You need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Variable var_CurrentYear = GetFieldSelections(Year,True())&lt;/P&gt;&lt;P&gt;- Variable var_LastYear = &lt;SPAN style="font-size: 13.3333px;"&gt;GetFieldSelections(Year,True())-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;- Expression for this year (Example): =SUM({$&amp;lt;Año={'$(var_CurrentYear)'}&amp;gt;}[Sales])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;- Expression for previous year (Example): &lt;SPAN style="font-size: 13.3333px;"&gt;SUM({$&amp;lt;Año={'$(var_LastYear)'}&amp;gt;}[Sales])&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- Set the Calculation Condition of the objects using this Set Analysis to 'if(GetSelectedCount(Year,True())=1,1,0)' so it won't 'crash' when more than one year is selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 09:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Analyzing-Current-and-Previous-Year-data-See-description/m-p/926597#M962947</guid>
      <dc:creator />
      <dc:date>2015-10-20T09:38:15Z</dc:date>
    </item>
  </channel>
</rss>

