<?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: SubField Function in qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141520#M373938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you create a small INLINE script with the current code you are using (e.g. from Max Dreamer) and some sample records? So that we can see where it has not delivered the expected results? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 May 2016 08:39:47 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-05-26T08:39:47Z</dc:date>
    <item>
      <title>SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141500#M373918</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;From the following, I jus want LA_GRMTH as the output.&lt;/P&gt;&lt;P&gt;Is this possible using SubField function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"RPRPLA_GRMTH_CD","relatedparty":"'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for you help.&lt;/P&gt;&lt;P&gt;Vidhya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 25 May 2016 08:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141500#M373918</guid>
      <dc:creator />
      <dc:date>2016-05-25T08:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141501#M373919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This just a single data point, what's the pattern here? share few more datapoints with the expected output to get a better response which will work across your database&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 08:45:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141501#M373919</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-25T08:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141502#M373920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could be possible with Subfield but you need to provide few more data with expected output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 08:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141502#M373920</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-25T08:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141503#M373921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree that we need to come to a rule how the part of interest can be extracted from your input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at your sample, it would be difficult using Subfield(), but maybe using Textbetween():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=TextBetween('RPRPLA_GRMTH_CD','RPRP','_CD')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 09:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141503#M373921</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-25T09:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141504#M373922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vidhya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mid('RPRPLA_GRMTH_CD',5,8) as MID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u share your data with required output.&amp;nbsp; you will&amp;nbsp; get good response From Community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mahesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 09:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141504#M373922</guid>
      <dc:creator>qlikview979</dc:creator>
      <dc:date>2016-05-25T09:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141505#M373923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the TextBetween function, but in my script, string is not constant and it will vary like the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following are few examples&lt;/P&gt;&lt;P&gt;[{"relationship":"RPRPLA_GRMTH_CD","relatedparty":"LA_0"}]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;[{"relationship":"RNMLA_WIFE_CD","relatedparty":"LA_0"}]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;[{"relationship":"RNMLA_MOTH_CD","relatedparty":"LA_0"}]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;[{"relationship":"RPRPLA_FATH_CD","relatedparty":"LA_0"}]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output should be&lt;/P&gt;&lt;P&gt;LA_GRMTH&lt;/P&gt;&lt;P&gt;LA_WIFE&lt;/P&gt;&lt;P&gt;LA_MOTH&lt;/P&gt;&lt;P&gt;LA_FATH&lt;/P&gt;&lt;P&gt; Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 10:16:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141505#M373923</guid>
      <dc:creator />
      <dc:date>2016-05-25T10:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141506#M373924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vidhya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=index(Field_Name,$(vSearchString),1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field_Name is your field in the table&lt;/P&gt;&lt;P&gt;vSearchString is variable storing the string you want to search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can you please share the exact requirement as above function only returns the index of the search string in the main string.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Do you want to replace the string with some other string ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chetan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 10:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141506#M373924</guid>
      <dc:creator>chetansehgal</dc:creator>
      <dc:date>2016-05-25T10:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141507#M373925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the TextBetween function, but in my script, string is not constant and it will vary like the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following are few examples&lt;/P&gt;&lt;P&gt;[{"relationship":"RPRPLA_GRMTH_CD","relatedparty":"LA_0"}]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;[{"relationship":"RNMLA_WIFE_CD","relatedparty":"LA_0"}]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;[{"relationship":"RNMLA_MOTH_CD","relatedparty":"LA_0"}]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;[{"relationship":"RPRPLA_FATH_CD","relatedparty":"LA_0"}]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output should be&lt;/P&gt;&lt;P&gt;LA_GRMTH&lt;/P&gt;&lt;P&gt;LA_WIFE&lt;/P&gt;&lt;P&gt;LA_MOTH&lt;/P&gt;&lt;P&gt;LA_FATH&lt;/P&gt;&lt;P&gt; Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 10:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141507#M373925</guid>
      <dc:creator />
      <dc:date>2016-05-25T10:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141508#M373926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'LA_' &amp;amp; TextBetween(FieldName, '&lt;SPAN style="color: #ff0000;"&gt;LA_&lt;/SPAN&gt;', '&lt;SPAN style="color: #ff0000;"&gt;"&lt;/SPAN&gt;') as NewField&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 10:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141508#M373926</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-25T10:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141509#M373927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;'LA_' &amp;amp; TextBetween(FieldName, '&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;LA_&lt;/SPAN&gt;', '_CD') as NewField&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 10:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141509#M373927</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-25T10:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141510#M373928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup, this one works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'LA_' &amp;amp; TextBetween(FieldName, 'LA_', '_CD') as NewField;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FieldName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[{"relationship":"RPRPLA_GRMTH_CD","relatedparty":"LA_0"}]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[{"relationship":"RNMLA_WIFE_CD","relatedparty":"LA_0"}]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[{"relationship":"RNMLA_MOTH_CD","relatedparty":"LA_0"}]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[{"relationship":"RPRPLA_FATH_CD","relatedparty":"LA_0"}]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125751_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 10:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141510#M373928</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-25T10:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141511#M373929</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;or may be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='LA_' &amp;amp; SubField(fieldName,'_',2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 10:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141511#M373929</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-05-25T10:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141512#M373930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But then this would include everything after LA_ until the next LA_&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 11:00:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141512#M373930</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-25T11:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141513#M373931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you for the explanation.&lt;/P&gt;&lt;P&gt;I have a field called Data. It is highly unstructured.&lt;/P&gt;&lt;P&gt;It will have strings like the below in it . I have pasted a portion of the strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;":"LA_0","additionalinfo":{"exstngcustflg":"N","pepflg":"N","exstngclntid":"8268039","isdisabledflg":"N","smokerstatusflg":"N",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;"ishdfcempflg":"N"},"employmentdetails":{[{"relationship":"RPRPLA_GRMTH_CD","relatedparty":"LA_0"}]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;As you see, there are 2 'LA_' in this portion . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;In the entire value, there are more than 3 LA_s&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;but I want to get only the relationship LA (LA_GRMTH).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;'LA_' &amp;amp; TextBetween(FieldName, 'LA_', '_CD') will not work in this case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Please let me know if I am clear&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Thanks&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, 25 May 2016 12:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141513#M373931</guid>
      <dc:creator />
      <dc:date>2016-05-25T12:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141514#M373932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Presuming your string has 'relationship' as the trigger for your LA_GRMTH / LA_MOTH / LA_FATH then use two text betweens:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;='LA_'&amp;amp;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TextBetween&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;TextBetween&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt; &lt;BR /&gt; '":"LA_0","additionalinfo":"exstngcustflg":"N","pepflg":"N","exstngclntid":"8268039","isdisabledflg":"N","smokerstatusflg":"N","ishdfcempflg":"N"},"employmentdetails":{[{"relationship":"RPRPLA_GRMTH_CD","relatedparty":"LA_0"}]'&lt;BR /&gt; ,'relationship','_CD')&lt;BR /&gt; ,'LA_','') &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 12:46:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141514#M373932</guid>
      <dc:creator>ThornOfCrowns</dc:creator>
      <dc:date>2016-05-25T12:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141515#M373933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; doesn't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 05:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141515#M373933</guid>
      <dc:creator />
      <dc:date>2016-05-26T05:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141516#M373934</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;did you try my suggestion??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you provide us some more data. may be 10 to 15 records enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 05:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141516#M373934</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-05-26T05:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141517#M373935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vidya, updated one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;mid(textbetween(SubField(FieldName,':',2),'"','"'),&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;findoneof(textbetween(SubField(FieldName,':',2),'"','"')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;,'_',1)-2,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;len(textbetween(SubField(FieldName,':',2),'"','"'))-(findoneof(textbetween(SubField(vFieldName,':',2),'"','"')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;,'_',1)-2)&lt;/P&gt;&lt;P&gt;-2&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&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; as&amp;nbsp;&amp;nbsp; NewRequiredFieldName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;From path;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;@&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Premhas&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 06:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141517#M373935</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2016-05-26T06:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141518#M373936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried, but dint work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 08:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141518#M373936</guid>
      <dc:creator />
      <dc:date>2016-05-26T08:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: SubField Function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141519#M373937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for your help, I still face an issue. Request you to help out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM_DATA is the field name.&lt;/P&gt;&lt;P&gt;I gave the following script &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 12pt;"&gt;TextBetween&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 12pt;"&gt;FORM_DATA&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 12pt;"&gt;,'"relationshipinfo":[{"relationship":"R','_CD')&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 12pt;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 12pt;"&gt;NEWFIELD.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: maroon; font-size: 12pt; font-family: 'Courier New';"&gt;This seems to work fine except for cases where there are two relationships like the below (Wife and MOther)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"relationshipinfo":[{"relationship":"RNMLA_WIFE_CD","relatedparty":"LA_0"}],"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;relationshipinfo":[{"relationship":"RNMLA_MOTH_CD","relatedparty":"LA_0"}],"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get these two relationships Wife &amp;amp; mother at different position. My script is picking only the first one, NMLA_WIFE, whereas I should get NMLA_MOTH as well in this instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 08:34:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubField-Function-in-qlikview/m-p/1141519#M373937</guid>
      <dc:creator />
      <dc:date>2016-05-26T08:34:42Z</dc:date>
    </item>
  </channel>
</rss>

