<?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 count vs Previous year count in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788168#M10982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Qlikview, and if I do as you said, it's giving the same value for both, current and previous.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Feb 2015 16:37:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-11T16:37:28Z</dc:date>
    <item>
      <title>Current year count vs Previous year count</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788162#M10976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have these fields in my database, PayRollYear and PayRollMonth and EMPNO.&lt;/P&gt;&lt;P&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>Wed, 11 Feb 2015 15:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788162#M10976</guid>
      <dc:creator />
      <dc:date>2015-02-11T15:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Current year count vs Previous year count</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788163#M10977</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;- Create a variable something like vMaxYear=max(Year). &lt;/P&gt;&lt;P&gt;- Another variable, PrevYear = vMaxYear-1&lt;/P&gt;&lt;P&gt;- Comcbo chart. 1 Dimension, Month; 2 Expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year='$(vMaxYear)'&amp;gt;}Expression1)&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year='$(vPrevYear)'&amp;gt;}Expression1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Serhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 15:42:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788163#M10977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-11T15:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Current year count vs Previous year count</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788164#M10978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you mean, vMaxYear = max(PayRollYear)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 15:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788164#M10978</guid>
      <dc:creator />
      <dc:date>2015-02-11T15:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Current year count vs Previous year count</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788165#M10979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And also, where dao I create these variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 15:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788165#M10979</guid>
      <dc:creator />
      <dc:date>2015-02-11T15:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Current year count vs Previous year count</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788166#M10980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry this is Qlik Sense though. You cannot create variables as in Sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={'$(=max(PayRollYear))'}&amp;gt;}Expression1)&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={'$(=max(PayRollYear)-1)'}&amp;gt;}Expression1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Serhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 15:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788166#M10980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-11T15:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Current year count vs Previous year count</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788167#M10981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 16:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788167#M10981</guid>
      <dc:creator />
      <dc:date>2015-02-11T16:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Current year count vs Previous year count</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788168#M10982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Qlikview, and if I do as you said, it's giving the same value for both, current and previous.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 16:37:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788168#M10982</guid>
      <dc:creator />
      <dc:date>2015-02-11T16:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Current year count vs Previous year count</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788169#M10983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here we go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Serhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 20:34:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788169#M10983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-11T20:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Current year count vs Previous year count</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788170#M10984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 13:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788170#M10984</guid>
      <dc:creator />
      <dc:date>2015-02-13T13:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Current year count vs Previous year count</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788171#M10985</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;Open it in QlikView and just copy the formula. That's all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Serhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 13:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788171#M10985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-13T13:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Current year count vs Previous year count</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788172#M10986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry, but what am I suppose to open? There isn't any file attached, in you reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shreya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 13:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788172#M10986</guid>
      <dc:creator />
      <dc:date>2015-02-13T13:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Current year count vs Previous year count</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788173#M10987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can'see this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/78052_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 13:43:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788173#M10987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-13T13:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Current year count vs Previous year count</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788174#M10988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope!!!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pic1.jpg" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/78059_pic1.jpg" style="height: 388px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 13:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788174#M10988</guid>
      <dc:creator />
      <dc:date>2015-02-13T13:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Current year count vs Previous year count</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788175#M10989</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;No need to create variable in your case.&lt;/P&gt;&lt;P&gt;Create a graph with dimension Month and two expressions:&lt;/P&gt;&lt;P&gt;&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;/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:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-count-vs-Previous-year-count/m-p/788175#M10989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-13T14:25:39Z</dc:date>
    </item>
  </channel>
</rss>

