<?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 String count based on similar names in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/String-count-based-on-similar-names/m-p/576160#M214382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have a particular requirement where I need to count sales&amp;nbsp; persons in different states. If for a particular product, same sales person is available in multiple states, count should be 1 for that product. If there are multiple sales persons for a product in multiple states, count should differ accordingly. Below is the example I have given. If you have any easy way to implement, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 357px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;Prod A&lt;/TD&gt;&lt;TD class="xl63" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="101"&gt;Dave Alaska&lt;/TD&gt;&lt;TD class="xl64" colspan="3" rowspan="3" width="192"&gt;Total count&lt;BR /&gt;&amp;nbsp; for Prod A=1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Prod A&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Dave Chicago&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Prod A&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Dave Florida&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Prod B&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;John NY&lt;/TD&gt;&lt;TD class="xl64" colspan="3" rowspan="4"&gt;Total Count for Prod B=3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Prod B&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;John NJ&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Prod B&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Merry Texas&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Prod B&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Lisa LA&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2014 00:54:24 GMT</pubDate>
    <dc:creator>montubhardwaj</dc:creator>
    <dc:date>2014-04-15T00:54:24Z</dc:date>
    <item>
      <title>String count based on similar names</title>
      <link>https://community.qlik.com/t5/QlikView/String-count-based-on-similar-names/m-p/576160#M214382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have a particular requirement where I need to count sales&amp;nbsp; persons in different states. If for a particular product, same sales person is available in multiple states, count should be 1 for that product. If there are multiple sales persons for a product in multiple states, count should differ accordingly. Below is the example I have given. If you have any easy way to implement, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 357px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;Prod A&lt;/TD&gt;&lt;TD class="xl63" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="101"&gt;Dave Alaska&lt;/TD&gt;&lt;TD class="xl64" colspan="3" rowspan="3" width="192"&gt;Total count&lt;BR /&gt;&amp;nbsp; for Prod A=1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Prod A&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Dave Chicago&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Prod A&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Dave Florida&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Prod B&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;John NY&lt;/TD&gt;&lt;TD class="xl64" colspan="3" rowspan="4"&gt;Total Count for Prod B=3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Prod B&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;John NJ&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Prod B&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Merry Texas&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Prod B&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Lisa LA&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 00:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-count-based-on-similar-names/m-p/576160#M214382</guid>
      <dc:creator>montubhardwaj</dc:creator>
      <dc:date>2014-04-15T00:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: String count based on similar names</title>
      <link>https://community.qlik.com/t5/QlikView/String-count-based-on-similar-names/m-p/576161#M214383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 01:00:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-count-based-on-similar-names/m-p/576161#M214383</guid>
      <dc:creator />
      <dc:date>2014-04-15T01:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: String count based on similar names</title>
      <link>https://community.qlik.com/t5/QlikView/String-count-based-on-similar-names/m-p/576162#M214384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello RR, thanks for your time.&lt;/P&gt;&lt;P&gt;The above is just an example I gave. You can not separate states from their names. Moreover there are like 1000,s of records in the database. I am looking for a process/method where I can compare the names under any product and if the names are similar (lets say first 10 chars), the will count as 1 else count will change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 01:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-count-based-on-similar-names/m-p/576162#M214384</guid>
      <dc:creator>montubhardwaj</dc:creator>
      <dc:date>2014-04-15T01:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: String count based on similar names</title>
      <link>https://community.qlik.com/t5/QlikView/String-count-based-on-similar-names/m-p/576163#M214385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dinesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there is any seperator between sales person and state in this combined "sales person-state" field, then you could do like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13975250719453394" jivemacro_uid="_13975250719453394"&gt;
&lt;P&gt;tabSales:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; @1 as Product,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SubField(@2, ' ', 1) as SalesPerson,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SubField(@2, ' ', 2) as State&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="114322" data-objecttype="1" href="http://community.qlik.com/thread/114322"&gt;http://community.qlik.com/thread/114322&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;(html, codepage is 1252, no labels, table is @1);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_114322_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/57269_QlikCommunity_Thread_114322_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no seperator and the lengths of the sales persons names is not fixed, then there is no algorithm to solve this problem and you should probably work on your data quality instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 01:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-count-based-on-similar-names/m-p/576163#M214385</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-04-15T01:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: String count based on similar names</title>
      <link>https://community.qlik.com/t5/QlikView/String-count-based-on-similar-names/m-p/576164#M214386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes you are right. Lengths of sales persons names are not fixed so I have to look at this problem from data quality standpoint. Thanks for your time though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 01:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-count-based-on-similar-names/m-p/576164#M214386</guid>
      <dc:creator>montubhardwaj</dc:creator>
      <dc:date>2014-04-15T01:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: String count based on similar names</title>
      <link>https://community.qlik.com/t5/QlikView/String-count-based-on-similar-names/m-p/576165#M214387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Frd ,&lt;/P&gt;&lt;P&gt;I try This Script&lt;/P&gt;&lt;P&gt;LOAD PRODUCT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAME,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber(SubField(NAME,' ',1))as COUNT_NUM&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Excel.xls&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is [Sheet1$]);&lt;/P&gt;&lt;P&gt;My Out Put Like That is it Ok For You..&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="57278" alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/57278_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard By ArjunKrish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 05:22:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-count-based-on-similar-names/m-p/576165#M214387</guid>
      <dc:creator>arjunkrishnan</dc:creator>
      <dc:date>2014-04-15T05:22:49Z</dc:date>
    </item>
  </channel>
</rss>

