<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count/m-p/937872#M949795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count(DISTINCT SubField(Reference, '-'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2015 18:33:27 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-12-16T18:33:27Z</dc:date>
    <item>
      <title>Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/937870#M949793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;When I do a count distinct, look below field reference where they are 000123 and 000123-1, but they are actually same Reference belong to a PO. how to do a count that ignore – sign ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;STRONG style="color: #1f497d;"&gt;I tried Count(distinct primaryReference), but didn’t work.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp; also tried below but failed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;SPAN style="color: green;"&gt;COUNT(IF(Index([OMSPO#], '-')=0, OMSPO#) &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;OMSPO#&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;-={'-'}&amp;gt;}OMSPO#) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Reference&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;000123&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;000123-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;000123-2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;00045679&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;40005679-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;40005679-2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 07:52:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/937870#M949793</guid>
      <dc:creator />
      <dc:date>2015-12-16T07:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/937871#M949794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andros, maybe:&lt;/P&gt;&lt;P&gt;=Count(DISTINCT Aggr(SubField(Reference, '-', 1), Reference))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 10:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/937871#M949794</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-12-16T10:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/937872#M949795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count(DISTINCT SubField(Reference, '-'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 18:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/937872#M949795</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-12-16T18:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/937873#M949796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi maxgo &amp;amp; Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above 2 solutions gave me different results ? Thought the results are close. I confirm the result via a manual process. Any other idea ? The actual field name is OMSPO#. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(DISTINC SubField(OMSPO#,'-'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 02:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/937873#M949796</guid>
      <dc:creator />
      <dc:date>2015-12-17T02:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/937874#M949797</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;I also need to display the record in a straight table, where the record exclude "-" sign, e.g. 0001234-4 should be excluded but 0001234 included. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 03:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/937874#M949797</guid>
      <dc:creator />
      <dc:date>2015-12-17T03:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/937875#M949798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andros,&lt;/P&gt;&lt;P&gt;This:&lt;/P&gt;&lt;P&gt;=count(DISTINCT(SubField(Reference, '-',1)))&lt;/P&gt;&lt;P&gt;returns 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this dimension for your straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;=SubField(Reference, '-',1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;count(1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TD bgcolor="#f5f5f5"&gt; &lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;6 &lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;000123&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;00045679&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;40005679&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 15:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/937875#M949798</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2015-12-17T15:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/937876#M949799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry the table should be like this :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;Reference&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;EM&gt;&lt;STRONG&gt;000123&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;000123-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;000123-2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;EM&gt;&lt;STRONG&gt;00045679&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;40005679&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;40005679-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;40005679-2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;my expected result is : &lt;/SPAN&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;total 3 records (&lt;STRONG&gt;000123, 00045679, 40056790&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;those records with '-' should be excluded.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 01:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/937876#M949799</guid>
      <dc:creator />
      <dc:date>2015-12-18T01:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/937877#M949800</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;What you can do is to make a copy of the field and used PurChar to to clear out any unwanted sign(s) so the reference number is unique to count.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 11:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/937877#M949800</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-12-18T11:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/937878#M949801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;load &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;distinct SubField(Reference, '-', 1) as Reference &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Reference&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;000123&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;000123-1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;000123-2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;00045679&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;40005679&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;40005679-1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;40005679-2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109439_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 12:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/937878#M949801</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-12-18T12:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/937879#M949802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi maxgo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got it, Appreciate your help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andros Goh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Dec 2015 04:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/937879#M949802</guid>
      <dc:creator />
      <dc:date>2015-12-20T04:07:46Z</dc:date>
    </item>
  </channel>
</rss>

