<?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 incorrect in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204377#M625398</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the requirement is met, you can go ahead and remove your attachment &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, 19 Oct 2016 03:32:22 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-10-19T03:32:22Z</dc:date>
    <item>
      <title>Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204370#M625391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I;ve managed to get a list of new records based on script.&amp;nbsp; but i dunno what is missing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(DISTINCT {&amp;lt;risk_item_id = e({&amp;lt;risk_item_id = {"=Count({&amp;lt;batch_year = {'&amp;lt;$(=Max(batch_year))'}&amp;gt;} risk_item_id) &amp;gt; 0"}&amp;gt;})&amp;gt;} risk_item_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the above script - i manage to get the correct new records - which is 67.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when select filter&amp;nbsp; risk1 'low and risk2 'low' then i got the wrong figure, 104. is wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result should be 49, after i have filtered with risk1 and risk 2. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="screenshot1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/141121_screenshot1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="screenshot2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/141128_screenshot2.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 00:14:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204370#M625391</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2016-10-19T00:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204371#M625392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to start providing sample Jim. Here look at these threads which will tell you why we need a sample and will help guide you in preparing a sample and loading it here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-2380"&gt;QlikCommunity Tip: How to get answers to your post?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help us help you better and faster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 02:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204371#M625392</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-19T02:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204372#M625393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bro, is not that i dowan to provide.&amp;nbsp; i can reduce i can scramble. but how to hide the data model? i can upload the qvw here, but i need to hide the datamodel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 03:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204372#M625393</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2016-10-19T03:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204373#M625394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have heard about confidential data, but never heard about confidential data model &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, 19 Oct 2016 03:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204373#M625394</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-19T03:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204374#M625395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ookokkkkkkk....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the sample bro. it is using your expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 03:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204374#M625395</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2016-10-19T03:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204375#M625396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you expecting to see with and without selections?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 03:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204375#M625396</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-19T03:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204376#M625397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this is what you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT {&amp;lt;risk_item_id = e({&amp;lt;risk_item_id = {"=Count({&lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;&amp;lt;batch_year = {'&amp;lt;$(=Max(batch_year))'}&amp;gt;} risk_item_id) &amp;gt; 0"}&amp;gt;})&amp;gt;} risk_item_id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="141136" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/141136_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOFEYT selected&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="141137" alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/141137_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APOMRPY Selected&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="141138" alt="Capture.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/141138_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;CQBNSGZQ&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="141139" alt="Capture.PNG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/141139_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 03:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204376#M625397</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-19T03:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204377#M625398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the requirement is met, you can go ahead and remove your attachment &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, 19 Oct 2016 03:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204377#M625398</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-19T03:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204378#M625399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to remove it bro ? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 03:46:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204378#M625399</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2016-10-19T03:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204379#M625400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌You can go into Editing your response and from there you can remove your attachment by clicking on the x next to your attachment file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="IMG_0190.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/141143_IMG_0190.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 03:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204379#M625400</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-19T03:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204380#M625401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on this script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count(DISTINCT {&amp;lt;risk_item_id = e({&amp;lt;risk_item_id = {"=Count({&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;1&lt;/SPAN&gt;&amp;lt;batch_year = {'&amp;lt;$(=Max(batch_year))'}&amp;gt;} risk_item_id) &amp;gt; 0"}&amp;gt;})&amp;gt;} risk_item_id)&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: #3d3d3d;"&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: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;What to change if i want compare it instead of by year , compare it by quarterly. ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the field called - batch_type : with data 1ST HALF , 2ND HALF. can max(batch_type) , but is not a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 12:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204380#M625401</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2017-01-21T12:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204381#M625402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its been three months now... It would be nice if you can share a sample again &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 14:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204381#M625402</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-21T14:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204382#M625403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max() won't work on text values, but maybe MaxString() function can be helpful here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 15:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204382#M625403</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-21T15:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204383#M625404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bro, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is the one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have scramble it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 15:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204383#M625404</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2017-01-21T15:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204384#M625405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you mean just need to change the batch year to batch_type will do..?? like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit;"&gt;=Count(DISTINCT {&amp;lt;risk_item_id = e({&amp;lt;item_id = {"=Count({&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;1&lt;/SPAN&gt;&amp;lt;batch_type = {'&amp;lt;$(=Maxstring(batch_type))'}&amp;gt;} risk_item_id) &amp;gt; 0"}&amp;gt;})&amp;gt;} item_id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 15:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204384#M625405</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2017-01-21T15:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204385#M625406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No idea if this is enough without knowing your data model, data and expression context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just saying that there are a lot other aggregation functions you can use &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 15:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204385#M625406</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-21T15:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204386#M625407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting 3967... is that the right number?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 15:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204386#M625407</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-21T15:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204387#M625408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can the expression be modified to calculate by quarterly, instead of max year?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I change the max year to maxstring(batch_type)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 15:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204387#M625408</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2017-01-21T15:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204388#M625409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is what I tried doing... is 3967 the number you are hoping to get?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 15:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204388#M625409</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-21T15:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204389#M625410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have re-create a new sample.qvw file as per attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this exmaple my records data for year 2015 and 2016 is loaded into 1 table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are few scenario i wanted to achieve. But i am not getting it from this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;record_id = e({&amp;lt;record_id = {"=Count({&amp;lt;year = {'&amp;lt;$(=Max(year))'}&amp;gt;} record_id) &amp;gt; 0"}&amp;gt;})&amp;gt;} record_id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;By using the above expression for the New Risk - it gives me 3 new risks from 2015-2016. But that's not what i need now.&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If the user select year 2016, 2nd Half, version 4 - it should display 1 Risk only&lt;STRONG style="font-size: 13.3333px;"&gt;, when it compares to year 2016 1st half version 3&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If the user select year 2016, 1st half, version 3 - it should display 2 Risks only, when it compares to year 2015 2nd half version 2&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those expected result i have already written in qvw file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Expected result for NEW RISK.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If &lt;/SPAN&gt;i&lt;SPAN style="font-size: 10pt;"&gt; click on &lt;/SPAN&gt;year&lt;SPAN style="font-size: 10pt;"&gt; 2016 2nd Half version:4 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;New Risk found = 1, record id = 98071 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;compare to 2016 1st half version 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;- Expected result for DELETED RISK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If i click on year 2016 2nd Half version:4&lt;/P&gt;&lt;P&gt;Deleted Risk = 2 , record id: 56748 &amp;amp; 98596&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help Sunny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 19:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-incorrect/m-p/1204389#M625410</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2017-02-03T19:03:27Z</dc:date>
    </item>
  </channel>
</rss>

