<?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: sub string in qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314287#M836593</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;&lt;/P&gt;&lt;P&gt;Thank you very much for all your replies, Wallo's (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;subfield(Contractref,',',3) as Column2) has worked for me perfectly, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;is it possible to remove the first part of this as well &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="text-decoration: line-through;"&gt;WD22056&lt;/EM&gt;&lt;SPAN style="text-decoration: line-through;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-decoration: line-through;"&gt;&lt;SPAN style="text-decoration-line: line-through;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;BootsSpecialRef&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and only show &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;BootsSpecialRef&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 May 2017 14:58:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-05-22T14:58:04Z</dc:date>
    <item>
      <title>sub string in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314281#M836578</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;I need your help, in SQL i have a column name &lt;/P&gt;&lt;P&gt;Contactref from Table1 and this column1 has data such as&lt;/P&gt;&lt;P&gt;ColumnName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CompanyName, post code, ref number company special Ref&lt;/P&gt;&lt;P&gt;data:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Boots, M154ZZ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WD22056 BootsSpecialRef&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to link Table 1 with Table2 and the only join between them is the &lt;SPAN style="font-size: 13.3333px;"&gt;ref number company special Ref (&lt;SPAN style="font-size: 13.3333px;"&gt;WD22056 BootsSpecialRef)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;the other tables Column2 looks like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ColumnName: &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Ref number &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;company special Ref&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Data:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;WD22056 &lt;/SPAN&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;BootsSpecialRef&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In order to join these two tables, I have to get rid of the first two commas in Column1, so I want the data to be &lt;SPAN style="font-size: 13.3333px;"&gt;WD22056 BootsSpecialRef as column2. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Is this possible please help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Many thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314281#M836578</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: sub string in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314282#M836580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;subfield(Contractref,',',3) as Column2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 14:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314282#M836580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-22T14:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: sub string in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314283#M836582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use PurgeChar() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlikview.com/thread/89945" title="https://community.qlikview.com/thread/89945"&gt;How to clean a field | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 14:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314283#M836582</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2017-05-22T14:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: sub string in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314284#M836584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be as below:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Table1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RefNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,',',3) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_RefNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; RefNumber&lt;BR /&gt; 'Boots, M154ZZ,WD22056 BootsSpecialRef'&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; Table2:&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RefNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_RefNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; RefNumber&lt;BR /&gt; WD22056 BootsSpecialRef&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 14:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314284#M836584</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2017-05-22T14:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: sub string in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314285#M836587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide more data set. One row is not sufficient to reply. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 14:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314285#M836587</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-22T14:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: sub string in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314286#M836590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;... Trim(SubField(Contractref, ',', 3)) AS Column2, ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But like Anil already said before, one single example is not enough to create an expression that works on all your data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 14:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314286#M836590</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-05-22T14:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: sub string in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314287#M836593</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;&lt;/P&gt;&lt;P&gt;Thank you very much for all your replies, Wallo's (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;subfield(Contractref,',',3) as Column2) has worked for me perfectly, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;is it possible to remove the first part of this as well &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="text-decoration: line-through;"&gt;WD22056&lt;/EM&gt;&lt;SPAN style="text-decoration: line-through;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-decoration: line-through;"&gt;&lt;SPAN style="text-decoration-line: line-through;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;BootsSpecialRef&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and only show &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;BootsSpecialRef&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 14:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314287#M836593</guid>
      <dc:creator />
      <dc:date>2017-05-22T14:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: sub string in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314288#M836596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;... Mid(Trim(SubField(Contractref, ',', 3)), index(&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;Trim(SubField(Contractref, ',', 3))&lt;/SPAN&gt;, ' ')+1) AS Column2, ...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 15:03:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314288#M836596</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-05-22T15:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: sub string in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314289#M836598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We would need more info for that.&lt;/P&gt;&lt;P&gt;Is the beginning always 6 characters?&amp;nbsp; Does the 2nd part always start with 'Boots'?&lt;/P&gt;&lt;P&gt;Is the 2nd part always 16 characters?&amp;nbsp; Is there only numbers in the first part and never the 2nd?&lt;/P&gt;&lt;P&gt;Assuming there is never numerics in the 2nd part and there is always a 2 character prefix, you could try this 2 step process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;purgechar(subfield(Contractref,',',3),'1234567890') as Column2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;right(Column2,len(Column2)-2) as Column2a&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 15:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314289#M836598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-22T15:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: sub string in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314290#M836599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter's will work great as long as there is a space between the 2 parts.&amp;nbsp; You'll have to let us know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 15:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314290#M836599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-22T15:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: sub string in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314291#M836600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Peter, this has worked for me as I wanted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 15:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314291#M836600</guid>
      <dc:creator />
      <dc:date>2017-05-22T15:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: sub string in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314292#M836601</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;&lt;/P&gt;&lt;P&gt;Peter's solution has worked great but I need to split the code as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Boots, M154ZZ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WD22056 BootsSpecialRef&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;I want to get just &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;WD22056, but the code length differ but there's always a space between the code and BootsSpecialRef&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;A href="https://community.qlik.com/qlik-users/208667"&gt;atkinsow&lt;/A&gt;‌ Yes Wallo, there are always 2 spaces&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 09:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314292#M836601</guid>
      <dc:creator />
      <dc:date>2017-05-23T09:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: sub string in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314293#M836602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;... Left(Trim(SubField(Contractref, ',', 3)), index(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Trim(SubField(Contractref, ',', 3))&lt;/SPAN&gt;, ' ')-1) AS Column3, ...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 09:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314293#M836602</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-05-23T09:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: sub string in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314294#M836603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;This has worked great, thank you again, but would you please advise on how does this work as I might need it for the same query but with one comma instead of two commas such in this case&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;M154ZZ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WD22056 BootsSpecialRef&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;and is it possible to use an OR statement like &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if column = 2 commas then get &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;WD22056 after the second comma or if column= 1 comma then get the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;WD22056&amp;nbsp; after the first comma&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 09:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314294#M836603</guid>
      <dc:creator />
      <dc:date>2017-05-23T09:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: sub string in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314295#M836604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IMHO the best way for you to see this working is by creating a number of text boxes in an empty document, and slowly building up this expression&lt;EM style="text-decoration: underline;"&gt; from the inside out&lt;/EM&gt;. You can use your initial value between quotes to see what happens. For example, these are the successive expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'courier new', courier;"&gt;=SubField(&lt;SPAN style="font-family: 'courier new', courier;"&gt;'&lt;SPAN style="color: #3d3d3d;"&gt;Boots, M154ZZ,&amp;nbsp;&amp;nbsp;&amp;nbsp; WD22056 BootsSpecialRef&lt;/SPAN&gt;'&lt;/SPAN&gt;, ',', 3) // Grabs the third field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;=Trim(&lt;SPAN style="color: #ff0000;"&gt;SubField('&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;Boots, M154ZZ,&amp;nbsp;&amp;nbsp;&amp;nbsp; WD22056 BootsSpecialRef&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #ff0000;"&gt;', ',', 3)&lt;/SPAN&gt;) // Cuts leading and trailing spaces&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;=&lt;SPAN style="color: #3d3d3d;"&gt;index(&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-style: inherit; font-weight: inherit;"&gt;Trim(SubField(&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;'Boots, M154ZZ,&amp;nbsp;&amp;nbsp;&amp;nbsp; WD22056 BootsSpecialRef&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;'&lt;/SPAN&gt;, ',', 3))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'courier new', courier;"&gt;, ' ')-1 // Position of first space, -1 to get length of front part&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'courier new', courier;"&gt;// and so on...&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the future, this technique will help you for sure in analysing any string expressions with lots of nested function calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you can use&lt;SPAN style="font-family: 'courier new', courier;"&gt; IF()&lt;/SPAN&gt; calls and &lt;SPAN style="font-family: 'courier new', courier;"&gt;OR&lt;/SPAN&gt; operators to apply a different logic when there are two or three commas in your value. String function &lt;SPAN style="font-family: 'courier new', courier;"&gt;SubstringCount()&lt;/SPAN&gt; will tell you how many commas are present.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 10:32:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314295#M836604</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-05-23T10:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: sub string in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314296#M836605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much again for your detail explanation Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please write me the script of IF and OR in my case, I have tried different ways but unable to get it right? as I'm new to this function, please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 10:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314296#M836605</guid>
      <dc:creator />
      <dc:date>2017-05-23T10:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: sub string in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314297#M836606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please help me here again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because of the nature of our database in cases we have 2 commas and in cases we have less or more&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to use wildmatch in this script, I am trying to get the full word within the string that has WD either WD22056 or WD12345, and either if it is in the middle or at the end, I want to create a new column based on this script? &lt;/P&gt;&lt;P&gt;&lt;EM&gt;WildMatch(ContactRef,'*WD*',CS_ContactRef&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried different ways, &lt;/P&gt;&lt;P&gt;but none of them has worked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 14:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314297#M836606</guid>
      <dc:creator />
      <dc:date>2017-06-20T14:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: sub string in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314298#M836607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amir,&lt;/P&gt;&lt;P&gt;You keep adding questions to your original question.&amp;nbsp; It's better to ask the full question in the beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand what you're asking for now, you could try something like this.&amp;nbsp; But it would only work if it ALWAYS starts with WD and ALWAYS has a space at the end of the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'WD' &amp;amp; TextBetween(ContractRef,'WD',' ') as Column X&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 21:52:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sub-string-in-qlikview/m-p/1314298#M836607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-20T21:52:25Z</dc:date>
    </item>
  </channel>
</rss>

