<?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: substringcount in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415113#M427594</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;Have you tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/StringFunctions/string-functions.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/StringFunctions/string-functions.htm"&gt;String functions ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="MCDropDownHead dropDownHead" style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;&lt;A class="dropDownHotspot dropDownHotspotstatement MCDropDownHotSpot MCDropDownHotSpot_" style="color: #008fe3; padding-left: 2px;"&gt;SubStringCount&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 10px 0;"&gt;&lt;SPAN class="statement" style="font-weight: bold;"&gt;SubstringCount()&lt;/SPAN&gt; returns the number of occurrences of the specified substring in the input string text. If there is no match, 0 is returned.&lt;/P&gt;&lt;P class="syntax" data-mc-conditions="Primary.NotToTranslate" style="font-size: 16px; margin: 10px 0; background-color: #f4f4f4; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;"&gt;&lt;A class="xref xrefFilename_noextension Filename_noextension MCXref" href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/StringFunctions/SubStringCount.htm" style="color: #007fca;"&gt;&lt;STRONG&gt;SubStringCount&lt;/STRONG&gt;&lt;/A&gt;( text , substring)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Oct 2017 18:45:46 GMT</pubDate>
    <dc:creator>vvira1316</dc:creator>
    <dc:date>2017-10-08T18:45:46Z</dc:date>
    <item>
      <title>substringcount</title>
      <link>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415111#M427592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to find out this substring&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'abc'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;from a text which is like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'qwe','wer','abc'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible using substringcount?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am asking becasue the there are single quotes in the main text &lt;STRONG style="font-size: 13.3333px;"&gt;'qwe','wer','abc' &lt;/STRONG&gt;so substringcount does not recognize it as a single text in its 1st param.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Oct 2017 18:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415111#M427592</guid>
      <dc:creator>jduluc12</dc:creator>
      <dc:date>2017-10-08T18:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: substringcount</title>
      <link>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415112#M427593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this way by replace comma with blanks just for finding the "abc" string in column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,If(NewStrData &amp;gt; 0,'Found','NotFound') as abcFoundflag;&lt;/P&gt;&lt;P&gt;LOAD *,FindOneOf(replace(StrData,chr(39),''),'abc') as NewStrData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;StrData&lt;/P&gt;&lt;P&gt;"'qwe','wer','abc'"&lt;/P&gt;&lt;P&gt;"'qwe','ret'"&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Oct 2017 18:32:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415112#M427593</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-10-08T18:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: substringcount</title>
      <link>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415113#M427594</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;Have you tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/StringFunctions/string-functions.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/StringFunctions/string-functions.htm"&gt;String functions ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="MCDropDownHead dropDownHead" style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;&lt;A class="dropDownHotspot dropDownHotspotstatement MCDropDownHotSpot MCDropDownHotSpot_" style="color: #008fe3; padding-left: 2px;"&gt;SubStringCount&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 10px 0;"&gt;&lt;SPAN class="statement" style="font-weight: bold;"&gt;SubstringCount()&lt;/SPAN&gt; returns the number of occurrences of the specified substring in the input string text. If there is no match, 0 is returned.&lt;/P&gt;&lt;P class="syntax" data-mc-conditions="Primary.NotToTranslate" style="font-size: 16px; margin: 10px 0; background-color: #f4f4f4; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;"&gt;&lt;A class="xref xrefFilename_noextension Filename_noextension MCXref" href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/StringFunctions/SubStringCount.htm" style="color: #007fca;"&gt;&lt;STRONG&gt;SubStringCount&lt;/STRONG&gt;&lt;/A&gt;( text , substring)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Oct 2017 18:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415113#M427594</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-08T18:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: substringcount</title>
      <link>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415114#M427595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;SubStringCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(Field,Chr(39)&amp;amp;'abc'&amp;amp;Chr(39)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Oct 2017 20:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415114#M427595</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-10-08T20:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: substringcount</title>
      <link>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415115#M427596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please post some more examples and your expected result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&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>Sun, 08 Oct 2017 20:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415115#M427596</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-10-08T20:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: substringcount</title>
      <link>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415116#M427597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternatively, you may decide to remove/replace the single quotation marks from the Source string (but leave the comma).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 00:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415116#M427597</guid>
      <dc:creator>shawn-qv</dc:creator>
      <dc:date>2017-10-09T00:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: substringcount</title>
      <link>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415117#M427598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for this try subfield function to get a part of text from a string&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement" style="font-weight: bold; color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 16px;"&gt;SubField(&lt;/SPAN&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 16px; background-color: #f4f4f4;"&gt;text, delimiter[, field_no ]&lt;/SPAN&gt;&lt;SPAN class="statement" style="font-weight: bold; color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 16px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement" style="font-weight: bold; color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 16px;"&gt;subfield(&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'qwe','wer','abc',',',3&lt;/STRONG&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 02:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415117#M427598</guid>
      <dc:creator>manoj217</dc:creator>
      <dc:date>2017-10-09T02:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: substringcount</title>
      <link>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415118#M427599</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;maybe this example helps you to describe what different result you would expect of the &lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/StringFunctions/SubStringCount.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/StringFunctions/SubStringCount.htm"&gt;SubStringCount()&lt;/A&gt; &lt;SPAN style="font-size: 10pt;"&gt;function:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_277281_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/179075_QlikCommunity_Thread_277281_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15075799929392920" jivemacro_uid="_15075799929392920"&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubStringCount(text,substring) as SubstrCnt&lt;/P&gt;
&lt;P&gt;Inline [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text, substring&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "'qwe','wer','abc'"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp; "'abc'"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "'qwe','wer','abc'"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp; abc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "'qwe','wer', abc"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp; "'abc'"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "'qwe','wer', abc"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp; abc&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "'qwe','abc','wer','abc'"&amp;nbsp; ,&amp;nbsp; "'abc'"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "'qwe','abc','wer','abc'"&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp; abc&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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>Mon, 09 Oct 2017 20:19:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415118#M427599</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-10-09T20:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: substringcount</title>
      <link>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415119#M427600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have found answer to your question then please close the thread.&lt;/P&gt;&lt;P&gt;&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>Tue, 10 Oct 2017 18:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415119#M427600</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-10T18:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: substringcount</title>
      <link>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415120#M427601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to do it in the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 11:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/substringcount/m-p/1415120#M427601</guid>
      <dc:creator>jduluc12</dc:creator>
      <dc:date>2017-10-12T11:32:41Z</dc:date>
    </item>
  </channel>
</rss>

