<?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 extract string with INDEX function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/extract-string-with-INDEX-function/m-p/204398#M61328</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;STRONG&gt;=Subfield(Lower(mid(DocumentPath,Index(DocumentPath,':\',1)+11)),'\',1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;try this.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Sridhar&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Sep 2010 13:17:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-16T13:17:56Z</dc:date>
    <item>
      <title>extract string with INDEX function</title>
      <link>https://community.qlik.com/t5/QlikView/extract-string-with-INDEX-function/m-p/204397#M61327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;does anyone know what expression i could use to extract the first part of a document path&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;e.g. i want the following document paths returned as&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Document Paths&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="height: 303px;" width="562"&gt;&lt;TBODY&gt;&lt;TR height="17"&gt;&lt;TD class="xl22" height="17" style="height: 12.75pt; width: 422pt;" width="562"&gt;&lt;UL&gt;&lt;LI&gt;e:\&lt;I&gt;qlikview-corporate&lt;/I&gt;\finance\finance - budget reports 2010-11.qvw&lt;/LI&gt;&lt;LI&gt;e:\&lt;I&gt;qlikview-finance&lt;/I&gt;\finance reports.qvw&lt;/LI&gt;&lt;/UL&gt;&lt;P style="font-weight: bold"&gt;To be returned as&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;I&gt;corporate&lt;/I&gt;&lt;/LI&gt;&lt;LI&gt;&lt;I&gt;finance&lt;/I&gt;&lt;/LI&gt;&lt;/UL&gt;------------------------------------------------------------------------------------------------------------------------ &lt;P&gt;The closest expression i have created to do this is&lt;/P&gt;&lt;P&gt;&lt;B&gt;=Lower(mid(DocumentPath,Index(DocumentPath,':',1)+11))&lt;/B&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;This returns&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;B&gt;corporate&lt;/B&gt;\finance\finance - budget reports 2010-11.qvw&lt;/LI&gt;&lt;LI&gt;&lt;B&gt;finance&lt;/B&gt;\finance reports.qvw&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This is close but i only want the expression to return the bold part (corporate / finance).&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 13:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-string-with-INDEX-function/m-p/204397#M61327</guid>
      <dc:creator />
      <dc:date>2010-09-16T13:05:59Z</dc:date>
    </item>
    <item>
      <title>extract string with INDEX function</title>
      <link>https://community.qlik.com/t5/QlikView/extract-string-with-INDEX-function/m-p/204398#M61328</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;STRONG&gt;=Subfield(Lower(mid(DocumentPath,Index(DocumentPath,':\',1)+11)),'\',1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;try this.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Sridhar&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 13:17:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-string-with-INDEX-function/m-p/204398#M61328</guid>
      <dc:creator />
      <dc:date>2010-09-16T13:17:56Z</dc:date>
    </item>
    <item>
      <title>extract string with INDEX function</title>
      <link>https://community.qlik.com/t5/QlikView/extract-string-with-INDEX-function/m-p/204399#M61329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A few more. I like the textbetween() approach, which I think is the clearest. You can stick lower() in any of them if you want to be certain it's in lower case.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;textbetween(DocumentPath,':\qlikview-','\')&lt;BR /&gt;subfield(mid(DocumentPath,13),'\',1)&lt;BR /&gt;subfield(subfield(DocumentPath,':\qlikview-',2),'\',1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 23:55:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-string-with-INDEX-function/m-p/204399#M61329</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-09-16T23:55:33Z</dc:date>
    </item>
  </channel>
</rss>

