<?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 vs Previous year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803771#M283763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to eliminate the year selection if you use set analysis&amp;gt; Just add year =&amp;nbsp; to your set analysis&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;sum({&amp;lt;PayRollYear = "$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PayRollYear &lt;/SPAN&gt;))"}&lt;STRONG&gt;, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PayRollYear &lt;/SPAN&gt;=&lt;/STRONG&gt;&amp;gt;}EMPNO)&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;sum({&amp;lt;PayRollYear =&lt;/SPAN&gt; = {"$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PayRollYear &lt;/SPAN&gt;) -1)"}&lt;STRONG&gt;, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PayRollYear &lt;/SPAN&gt;=&lt;/STRONG&gt;&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EMPNO)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Feb 2015 14:12:45 GMT</pubDate>
    <dc:creator>Michiel_QV_Fan</dc:creator>
    <dc:date>2015-02-13T14:12:45Z</dc:date>
    <item>
      <title>Current year vs Previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803766#M283758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have these fields in my database, PayRollYear and PayRollMonth and EMPNO.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I want to create a combo chart, that shows the count of employees in the present year vs the previous year. Present year would be a bar chart, and previous year would be a line chart, month being the dimension. Any ideas????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 13:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803766#M283758</guid>
      <dc:creator />
      <dc:date>2015-02-13T13:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Current year vs Previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803767#M283759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create 2 expressions for the count:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;PayRollYear = {'2015'}&amp;gt;}EMPNO)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;sum({&amp;lt;PayRollYear = {'2014'}&amp;gt;}EMPNO)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;add month to the bar and set the 2 expressions as desired to line or bar.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;also consider to use max(year) and max(year)-1 to make the year dependent on your year selection&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 14:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803767#M283759</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2015-02-13T14:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Current year vs Previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803768#M283760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works fine, but if I use, year and year-1, it does not work. Gives the same value for both. &lt;A href="https://community.qlik.com/qlik-users/6975"&gt;MichielvandeGoor&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 14:07:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803768#M283760</guid>
      <dc:creator />
      <dc:date>2015-02-13T14:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Current year vs Previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803769#M283761</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;Try to use with Max and Max - 1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Current Year&lt;/P&gt;&lt;P&gt;sum({&amp;lt;PayRollYear = {'$(Max(PayRollYear))'}&amp;gt;}EMPNO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Previous Year&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;sum({&amp;lt;PayRollYear = {'$(Max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;PayRollYear&lt;/SPAN&gt;)-1)'}&amp;gt;}EMPNO)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;sum({&amp;lt;PayRollYear = {'$(Year(Date(Max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;PayRollYear&lt;/SPAN&gt;)-1)))'}&amp;gt;}EMPNO)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Anand&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 14:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803769#M283761</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2015-02-13T14:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Current year vs Previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803770#M283762</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;Create a graph with dimension Month and two expressions:&lt;/P&gt;&lt;P&gt;First expression in bar chart:&lt;/P&gt;&lt;P&gt;count(distinct {&amp;lt;PayRollYear =&lt;SPAN style="font-size: 8pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(=Max(&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;PayRollYear&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&lt;/SPAN&gt;&amp;gt;}EMPNO)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;Second expression in line chart:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;count(distinct {&amp;lt;PayRollYear =&lt;SPAN style="font-size: 8pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(=(Max(&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;PayRollYear&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;)-1))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&lt;/SPAN&gt;&amp;gt;}EMPNO)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 14:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803770#M283762</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-13T14:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Current year vs Previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803771#M283763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to eliminate the year selection if you use set analysis&amp;gt; Just add year =&amp;nbsp; to your set analysis&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;sum({&amp;lt;PayRollYear = "$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PayRollYear &lt;/SPAN&gt;))"}&lt;STRONG&gt;, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PayRollYear &lt;/SPAN&gt;=&lt;/STRONG&gt;&amp;gt;}EMPNO)&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;sum({&amp;lt;PayRollYear =&lt;/SPAN&gt; = {"$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PayRollYear &lt;/SPAN&gt;) -1)"}&lt;STRONG&gt;, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PayRollYear &lt;/SPAN&gt;=&lt;/STRONG&gt;&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EMPNO)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 14:12:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803771#M283763</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2015-02-13T14:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Current year vs Previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803772#M283764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot! Much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 14:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803772#M283764</guid>
      <dc:creator />
      <dc:date>2015-02-13T14:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Current year vs Previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803773#M283765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a ton! It works! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 14:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803773#M283765</guid>
      <dc:creator />
      <dc:date>2015-02-13T14:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Current year vs Previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803774#M283766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please give points to express your thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 14:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803774#M283766</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2015-02-13T14:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Current year vs Previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803775#M283767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that's great &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;please mark the discussion as solved if the question is solved for you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 14:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-year-vs-Previous-year/m-p/803775#M283767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-13T14:21:29Z</dc:date>
    </item>
  </channel>
</rss>

