<?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: How to use subfield function on this field? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-subfield-function-on-this-field/m-p/1228076#M391694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this format is consistantly ABCD infront of the name,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use substring to Return JIM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below we use D as the delimiter and returns the 2nd occurance.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('ABCDJIM', 'D' ,2) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your case try:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(customercode, 'D' ,2) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I dont feel this is the best way but the above should answer your question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Please provide some sample data if the values do not have ABCD consistantly appended to the front of the name.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2017 05:45:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-11T05:45:01Z</dc:date>
    <item>
      <title>How to use subfield function on this field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-subfield-function-on-this-field/m-p/1228072#M391690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a field customercode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example i have ABCDJIM. and now i want to use subfield to get 'JIM' only. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how should i write using subfield?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubField(&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;customercode, 3,1) as Name_only,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 05:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-subfield-function-on-this-field/m-p/1228072#M391690</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2017-01-11T05:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use subfield function on this field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-subfield-function-on-this-field/m-p/1228073#M391691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To use Subfield() function you need a specific separator ..In your case I don't see any valid separator&amp;nbsp; .&lt;/P&gt;&lt;P&gt;May for your case(if the you know the place value of the text to fetch) you can use the Right function &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;customercode&lt;/SPAN&gt;,3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 05:37:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-subfield-function-on-this-field/m-p/1228073#M391691</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-01-11T05:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to use subfield function on this field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-subfield-function-on-this-field/m-p/1228074#M391692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the logic to get the name?&lt;/P&gt;&lt;P&gt;Is it always the last three characters: Right(customercode, 3) as Name_only&lt;/P&gt;&lt;P&gt;Or does the name always start on position 5 and the first 4 characters need to be discarded? Mid(customercode,5) as Name_only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 05:37:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-subfield-function-on-this-field/m-p/1228074#M391692</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2017-01-11T05:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use subfield function on this field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-subfield-function-on-this-field/m-p/1228075#M391693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry. my apology on the example given.&lt;/P&gt;&lt;P&gt;the logic here should be always AFTER 1st 3 characters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 05:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-subfield-function-on-this-field/m-p/1228075#M391693</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2017-01-11T05:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to use subfield function on this field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-subfield-function-on-this-field/m-p/1228076#M391694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this format is consistantly ABCD infront of the name,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use substring to Return JIM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below we use D as the delimiter and returns the 2nd occurance.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('ABCDJIM', 'D' ,2) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your case try:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(customercode, 'D' ,2) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I dont feel this is the best way but the above should answer your question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Please provide some sample data if the values do not have ABCD consistantly appended to the front of the name.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 05:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-subfield-function-on-this-field/m-p/1228076#M391694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-11T05:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use subfield function on this field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-subfield-function-on-this-field/m-p/1228077#M391695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('ABCDJIM', &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('ABCDJIM') -4) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(customercode, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(customercode) -4) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If there is constantly 3 characters in front&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 05:48:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-subfield-function-on-this-field/m-p/1228077#M391695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-11T05:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use subfield function on this field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-subfield-function-on-this-field/m-p/1228078#M391696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in my case. i have used MID() . thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 05:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-subfield-function-on-this-field/m-p/1228078#M391696</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2017-01-11T05:49:03Z</dc:date>
    </item>
  </channel>
</rss>

