<?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: Count expression for current &amp; previous year in Text box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-expression-for-current-previous-year-in-Text-box/m-p/1055280#M353832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Term_Yr = {"$(=Max(Term_Yr))"}&amp;gt;} Emp_No)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Count({&amp;lt;Term_Yr = {"$(=Max(Term_Yr)-1)"}&amp;gt;} Emp_No)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2016 11:43:24 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-03-23T11:43:24Z</dc:date>
    <item>
      <title>Count expression for current &amp; previous year in Text box</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-for-current-previous-year-in-Text-box/m-p/1055279#M353831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use a text box to show the number of employees terminated in the current year and then another text box to show the number of employees terminated in the previous year.&amp;nbsp; I'm using the expressions below but it's coming up blank.&amp;nbsp; What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119110_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/119126_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 10:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-for-current-previous-year-in-Text-box/m-p/1055279#M353831</guid>
      <dc:creator />
      <dc:date>2016-03-23T10:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression for current &amp; previous year in Text box</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-for-current-previous-year-in-Text-box/m-p/1055280#M353832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Term_Yr = {"$(=Max(Term_Yr))"}&amp;gt;} Emp_No)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Count({&amp;lt;Term_Yr = {"$(=Max(Term_Yr)-1)"}&amp;gt;} Emp_No)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 11:43:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-for-current-previous-year-in-Text-box/m-p/1055280#M353832</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-23T11:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression for current &amp; previous year in Text box</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-for-current-previous-year-in-Text-box/m-p/1055281#M353833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be try with Total keyword&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(if(&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Term_Yr = max(Total &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Term_Yr ),&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Emp_No))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;=Count(if(&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Term_Yr = max(Total &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Term_Yr )-1,&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Emp_No))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 11:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-for-current-previous-year-in-Text-box/m-p/1055281#M353833</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-03-23T11:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression for current &amp; previous year in Text box</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-for-current-previous-year-in-Text-box/m-p/1055282#M353834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Worked perfectly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still don't know how to mark these posts as "Answered"???&amp;nbsp; I only have one option to select under my "Action" tab.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119146_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 12:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-for-current-previous-year-in-Text-box/m-p/1055282#M353834</guid>
      <dc:creator />
      <dc:date>2016-03-23T12:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression for current &amp; previous year in Text box</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-for-current-previous-year-in-Text-box/m-p/1055283#M353835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check here to see if it helps:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 15:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-for-current-previous-year-in-Text-box/m-p/1055283#M353835</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-23T15:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression for current &amp; previous year in Text box</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-for-current-previous-year-in-Text-box/m-p/1055284#M353836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It all seems so obvious but I don't see any "Correct Answer" button anywhere??? And I've had this problem for months, no one seems to be able to help me. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 07:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-for-current-previous-year-in-Text-box/m-p/1055284#M353836</guid>
      <dc:creator />
      <dc:date>2016-03-24T07:56:09Z</dc:date>
    </item>
  </channel>
</rss>

