<?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 with len() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-with-len/m-p/1445414#M797342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a typo above, try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;ID = {"=Len(ID) = 9 and IsText(Left(ID, 2)) and IsNum(Mid(ID, 3, 6)) and IsText(Right(ID, 1))"}&amp;gt;}ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186046_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Dec 2017 12:26:44 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-12-07T12:26:44Z</dc:date>
    <item>
      <title>Count with len()</title>
      <link>https://community.qlik.com/t5/QlikView/Count-with-len/m-p/1445412#M797339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one please help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In have to count the ID is not in the specified format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ID should contain the 9 digits. First 2 digits is letters,next 6 digits is numbers,last 1 digit is letter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 72px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="72"&gt;ID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;BC123456Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;HC456789Z&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;YU345679D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;D15656Y23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;12485H6KL&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above ID D15656Y23 and 12485H6KL are not on the specified format so need to get the count as 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-with-len/m-p/1445412#M797339</guid>
      <dc:creator>bhavvibudagam</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count with len()</title>
      <link>https://community.qlik.com/t5/QlikView/Count-with-len/m-p/1445413#M797341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;ID = {"=Len(ID) = 9 and IsText(Left(ID, 2) and IsNum(Mid(ID, 3, 6)) and IsText(Right(ID, 1))"}&amp;gt;}ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 12:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-with-len/m-p/1445413#M797341</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-07T12:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Count with len()</title>
      <link>https://community.qlik.com/t5/QlikView/Count-with-len/m-p/1445414#M797342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a typo above, try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;ID = {"=Len(ID) = 9 and IsText(Left(ID, 2)) and IsNum(Mid(ID, 3, 6)) and IsText(Right(ID, 1))"}&amp;gt;}ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186046_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 12:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-with-len/m-p/1445414#M797342</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-07T12:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count with len()</title>
      <link>https://community.qlik.com/t5/QlikView/Count-with-len/m-p/1445415#M797343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(trim(ID))=9 AND isText(right(ID,1)) AND isText(left(ID,2)) AND isNum(mid(ID,3,6)), 0,1) as CountWrongID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in Frontend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if(len(trim(ID))=9 AND isText(right(ID,1)) AND isText(left(ID,2)) AND isNum(mid(ID,3,6)), 0,1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 12:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-with-len/m-p/1445415#M797343</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2017-12-07T12:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count with len()</title>
      <link>https://community.qlik.com/t5/QlikView/Count-with-len/m-p/1445416#M797344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess the requirement is to count the ID which don't meet the criteria... in the case, just add not() around the whole check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({&amp;lt;ID = {"=&lt;SPAN style="color: #ff0000;"&gt;not(&lt;/SPAN&gt;Len(ID) = 9 and IsText(Left(ID, 2)) and IsNum(Mid(ID, 3, 6)) and IsText(Right(ID, 1))&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;"}&amp;gt;}ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 12:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-with-len/m-p/1445416#M797344</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-07T12:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count with len()</title>
      <link>https://community.qlik.com/t5/QlikView/Count-with-len/m-p/1445417#M797345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load another filed on model this ways&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace(if(IsText(Left(ID,2)),1,0) and if(IsText(Right(ID,1)),1,0),-1,1) as Correct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then count with SET =Count( {&amp;lt;Correct = {1} &amp;gt;}&amp;nbsp; ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 12:39:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-with-len/m-p/1445417#M797345</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-12-07T12:39:24Z</dc:date>
    </item>
  </channel>
</rss>

