<?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 Using index() to trace multiple  Strings? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-index-to-trace-multiple-Strings/m-p/842645#M296114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell , how can i find number of occurrences of particular string by using Index(), here i need to take the place where it is occurred as well. in the below example Transfer occurred two times. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: &lt;SPAN style="font-size: 13.3333330154419px;"&gt;00:00:00-03:30:00|Transfer|schedTransfe|00:00:00-02:51:30|Break|03:23:00-04:30:00|Transfer|schedTransfe|00:00:00-05:30:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Ganesh.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2015 11:32:42 GMT</pubDate>
    <dc:creator>ganeshreddy</dc:creator>
    <dc:date>2015-05-12T11:32:42Z</dc:date>
    <item>
      <title>Using index() to trace multiple  Strings?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-index-to-trace-multiple-Strings/m-p/842645#M296114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell , how can i find number of occurrences of particular string by using Index(), here i need to take the place where it is occurred as well. in the below example Transfer occurred two times. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: &lt;SPAN style="font-size: 13.3333330154419px;"&gt;00:00:00-03:30:00|Transfer|schedTransfe|00:00:00-02:51:30|Break|03:23:00-04:30:00|Transfer|schedTransfe|00:00:00-05:30:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Ganesh.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 11:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-index-to-trace-multiple-Strings/m-p/842645#M296114</guid>
      <dc:creator>ganeshreddy</dc:creator>
      <dc:date>2015-05-12T11:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using index() to trace multiple  Strings?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-index-to-trace-multiple-Strings/m-p/842646#M296115</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;you will need to use two different functions to do this:&lt;/P&gt;&lt;P&gt;- The INDEX() function will return the starting position of either the first or any one occurence of the searched_for string&lt;BR /&gt;&amp;nbsp; within the total string, but you will have to enter the occurence_nr. (2 for the 2nd one) as a parameter.&lt;/P&gt;&lt;P&gt;- The Subfieldcount() function will return the nr. of occurences of your searched_for string in the total string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; You will probably have to use Subfieldcount() first and then build some kind of loop to step through the nr. of occurences and return the starting_position of every one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 11:46:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-index-to-trace-multiple-Strings/m-p/842646#M296115</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-05-12T11:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using index() to trace multiple  Strings?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-index-to-trace-multiple-Strings/m-p/842647#M296116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ganesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Substringcount. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SubStringCount(F1,'Transfer')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;F1 = field where your are searching the field count.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Transfer = String what you are searching&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 12:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-index-to-trace-multiple-Strings/m-p/842647#M296116</guid>
      <dc:creator>ashwanin</dc:creator>
      <dc:date>2015-05-12T12:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using index() to trace multiple  Strings?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-index-to-trace-multiple-Strings/m-p/842648#M296117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you need character position or field position (Transfer present in 2nd and 7th field)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 12:10:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-index-to-trace-multiple-Strings/m-p/842648#M296117</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-05-12T12:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using index() to trace multiple  Strings?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-index-to-trace-multiple-Strings/m-p/842649#M296118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your replay, here the reason why i am asking for index function is to calculate the meal times. For example take 'Break' from above given string , there is only one break so i can take left instance as out-time and right instance as In time. To calculate Second&amp;nbsp; meal i need to track where is the second 'Break' occurred. Here i a can use subfield function to get the desired result but it is complex because we don't know the exact sequence of the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ganesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 13:01:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-index-to-trace-multiple-Strings/m-p/842649#M296118</guid>
      <dc:creator>ganeshreddy</dc:creator>
      <dc:date>2015-05-12T13:01:40Z</dc:date>
    </item>
  </channel>
</rss>

