<?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: TextBetween()  first occurrence and last occurrence in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/TextBetween-first-occurrence-and-last-occurrence/m-p/1290715#M620864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked perfectly.&amp;nbsp; I decided to use your code so the last ')&amp;nbsp; did not show in the text&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2017 17:04:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-02-03T17:04:16Z</dc:date>
    <item>
      <title>TextBetween()  first occurrence and last occurrence</title>
      <link>https://community.qlik.com/t5/QlikView/TextBetween-first-occurrence-and-last-occurrence/m-p/1290712#M620861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I set the text between to find the first occurrence of a value and the last occurrence of another value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TextBetween(FIELD,'(',')')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is what I am needing but I want it to get all the text between the first occurrence of the open parenthesis ( and the last occurrence of the closed parenthesis because the user could input&amp;nbsp; open and closed parenthesis in the text input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TextBetween(FIELD,'(',')',SUBSTRINGCOUNT)&amp;nbsp; I tried using a substring count here but it relates to the first criteria for the open parenthesis not the last close parenthesis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 15:52:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TextBetween-first-occurrence-and-last-occurrence/m-p/1290712#M620861</guid>
      <dc:creator />
      <dc:date>2017-02-03T15:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: TextBetween()  first occurance and last occurance</title>
      <link>https://community.qlik.com/t5/QlikView/TextBetween-first-occurrence-and-last-occurrence/m-p/1290713#M620862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Mid(FieldName, Index(&lt;SPAN style="font-size: 13.3333px;"&gt;FieldName&lt;/SPAN&gt;, '(', 1) + 1, Index(&lt;SPAN style="font-size: 13.3333px;"&gt;FieldName&lt;/SPAN&gt;, ')', -1) - Index(&lt;SPAN style="font-size: 13.3333px;"&gt;FieldName&lt;/SPAN&gt;, '(', 1)-1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 15:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TextBetween-first-occurrence-and-last-occurrence/m-p/1290713#M620862</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-03T15:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: TextBetween()  first occurance and last occurance</title>
      <link>https://community.qlik.com/t5/QlikView/TextBetween-first-occurrence-and-last-occurrence/m-p/1290714#M620863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&amp;nbsp; This would probably work.&amp;nbsp; I will test it out. But after digging into the data of the model (built by another developer) I found that they did not need to use the closed Parenthesis as there is NO data after the final ')'.&amp;nbsp; I removed it and now get all the data:&amp;nbsp; TextBetween(FIELD,'(','')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 16:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TextBetween-first-occurrence-and-last-occurrence/m-p/1290714#M620863</guid>
      <dc:creator />
      <dc:date>2017-02-03T16:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: TextBetween()  first occurrence and last occurrence</title>
      <link>https://community.qlik.com/t5/QlikView/TextBetween-first-occurrence-and-last-occurrence/m-p/1290715#M620864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked perfectly.&amp;nbsp; I decided to use your code so the last ')&amp;nbsp; did not show in the text&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 17:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TextBetween-first-occurrence-and-last-occurrence/m-p/1290715#M620864</guid>
      <dc:creator />
      <dc:date>2017-02-03T17:04:16Z</dc:date>
    </item>
  </channel>
</rss>

