<?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: Search String in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Search-String/m-p/288629#M1189701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Angus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the above issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the following to find each of the ',' , now I would like the text either side&lt;/P&gt;&lt;P&gt;index([Rejection Reasons], ',', -1 ) &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can you offer guidence please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2012 17:11:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-18T17:11:45Z</dc:date>
    <item>
      <title>Search String</title>
      <link>https://community.qlik.com/t5/QlikView/Search-String/m-p/288625#M1189697</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;How are you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple question this time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to search the following strings from the right to find the price. The price value is concatenated with the item id in this manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item_Price:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;40637_123ABC_400&lt;/P&gt;&lt;P&gt;40644_1457_2300&lt;/P&gt;&lt;P&gt;40651_12_23005&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So all values after the second "_" (underscore) is the price. And all the value before the first underscore "_" is the Julian date&lt;/P&gt;&lt;P&gt;So please suggest how to use the "Right" or Trim function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 23:20:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-String/m-p/288625#M1189697</guid>
      <dc:creator />
      <dc:date>2011-07-18T23:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Search String</title>
      <link>https://community.qlik.com/t5/QlikView/Search-String/m-p/288626#M1189698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bikash,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;the answer is that you don't want to use either function!  Instead, use&lt;/P&gt;&lt;P&gt;subfield(str,'delimiter',n).  This breaks-up the string str into&lt;/P&gt;&lt;P&gt;substrings at every occurence of 'delimiter', and returns the (n)th&lt;/P&gt;&lt;P&gt;substring.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;So, in your example, you want subfield(Item_Price,'_',2).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Angus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 23:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-String/m-p/288626#M1189698</guid>
      <dc:creator>gussfish</dc:creator>
      <dc:date>2011-07-18T23:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Search String</title>
      <link>https://community.qlik.com/t5/QlikView/Search-String/m-p/288627#M1189699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angus,&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;I got it how the result would look like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 23:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-String/m-p/288627#M1189699</guid>
      <dc:creator />
      <dc:date>2011-07-18T23:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Search String</title>
      <link>https://community.qlik.com/t5/QlikView/Search-String/m-p/288628#M1189700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bikash,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;my previous post assumed that your Item_Price would always have the same&lt;/P&gt;&lt;P&gt;number of underscores in it.  If this is not the case, and you need to&lt;/P&gt;&lt;P&gt;find the remainder of the string after the last underscore, then use&lt;/P&gt;&lt;P&gt;index(Item_Price, '_', -1 ) to find the position of the last underscore;&lt;/P&gt;&lt;P&gt;then you can use mid() to extract from after that.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Angus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 00:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-String/m-p/288628#M1189700</guid>
      <dc:creator>gussfish</dc:creator>
      <dc:date>2011-07-19T00:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Search String</title>
      <link>https://community.qlik.com/t5/QlikView/Search-String/m-p/288629#M1189701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Angus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the above issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the following to find each of the ',' , now I would like the text either side&lt;/P&gt;&lt;P&gt;index([Rejection Reasons], ',', -1 ) &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can you offer guidence please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 17:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-String/m-p/288629#M1189701</guid>
      <dc:creator />
      <dc:date>2012-01-18T17:11:45Z</dc:date>
    </item>
    <item>
      <title>Search String</title>
      <link>https://community.qlik.com/t5/QlikView/Search-String/m-p/288630#M1189702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Meant to say there are multiple ',' &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 17:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-String/m-p/288630#M1189702</guid>
      <dc:creator />
      <dc:date>2012-01-18T17:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Search String</title>
      <link>https://community.qlik.com/t5/QlikView/Search-String/m-p/288631#M1189703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Try this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left part = mid([Rejection Reasons],1,index([Rejection Reasons],',',-1)-1) &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Or&amp;nbsp; Left Part = left(([Rejection Reasons],index([Rejection Reasons],',',-1)-1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Right part = mid([Rejection Reasons],index([Rejection Reasons],',',-1)+1,len([Rejection Reasons]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 18:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-String/m-p/288631#M1189703</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2012-01-18T18:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Search String</title>
      <link>https://community.qlik.com/t5/QlikView/Search-String/m-p/288632#M1189704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks jduenyas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 10:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-String/m-p/288632#M1189704</guid>
      <dc:creator />
      <dc:date>2012-01-19T10:40:18Z</dc:date>
    </item>
  </channel>
</rss>

