<?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: Using SubField with more than one 'field_no' in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-SubField-with-more-than-one-field-no/m-p/2133124#M92084</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;You can try this.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Load *,&lt;BR /&gt;Subfield(Replace((KeepChar(Input,'0123456789-')),'--',''),'-') as Out;&lt;BR /&gt;;&lt;BR /&gt;load * Inline [&lt;BR /&gt;Input&lt;BR /&gt;'Description order - ID-1234 - Some other text - ID-4567',&lt;BR /&gt;'Description order - ID-1234 - Some other text - ID-4567'&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sivapriya_d_0-1698721616858.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119095i5DA941FDB4468D5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sivapriya_d_0-1698721616858.png" alt="Sivapriya_d_0-1698721616858.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Tue, 31 Oct 2023 03:09:20 GMT</pubDate>
    <dc:creator>Sivapriya_d</dc:creator>
    <dc:date>2023-10-31T03:09:20Z</dc:date>
    <item>
      <title>Using SubField with more than one 'field_no'</title>
      <link>https://community.qlik.com/t5/App-Development/Using-SubField-with-more-than-one-field-no/m-p/2132875#M92060</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I have some raw data which need to be cleaned. One of the cleaning steps consists in separate rows based on a specific delimiter and the script function SubField() helps in that. However, SubField() requires as a parameter which of the substrings to have as output. I need to have more than one substring as output for a given input string.&lt;BR /&gt;Here's an example:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;INPUT_FIELD&lt;/TD&gt;
&lt;TD width="50%"&gt;OUTPUT_FIELD_DESIRED&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;Description order - ID-1234 - Some other text - ID-4567&lt;/TD&gt;
&lt;TD width="50%"&gt;1234&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;Description order - ID-1234 - Some other text - ID-4567&lt;/TD&gt;
&lt;TD width="50%"&gt;4567&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;EM&gt;SubField(INPUT_FIELD, 'ID-',&amp;nbsp; 2) and&amp;nbsp;SubField(INPUT_FIELD, 'ID-',&amp;nbsp; 3) would give the desired output but of course I cannot assign them to the same field in the Section&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there anything I am missing with the use of SubField()? Could you please help me solve this? Maybe there is a workaround that I'm not seeing.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for your help!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 11:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-SubField-with-more-than-one-field-no/m-p/2132875#M92060</guid>
      <dc:creator>marcomatta</dc:creator>
      <dc:date>2023-10-30T11:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using SubField with more than one 'field_no'</title>
      <link>https://community.qlik.com/t5/App-Development/Using-SubField-with-more-than-one-field-no/m-p/2132881#M92063</link>
      <description>&lt;P&gt;Do you have always 2 "ID -" in your input string?&lt;BR /&gt;Do you have an identifier/key field for each string?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 11:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-SubField-with-more-than-one-field-no/m-p/2132881#M92063</guid>
      <dc:creator>vincent_ardiet_</dc:creator>
      <dc:date>2023-10-30T11:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using SubField with more than one 'field_no'</title>
      <link>https://community.qlik.com/t5/App-Development/Using-SubField-with-more-than-one-field-no/m-p/2132882#M92064</link>
      <description>&lt;P&gt;The 2 "ID-" in one input string is a special case which I'm struggling with; in the other cases I can obtain the desired output.&lt;BR /&gt;&lt;BR /&gt;Yes, I do always have an&amp;nbsp;&lt;SPAN&gt;identifier/key field for each string&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 11:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-SubField-with-more-than-one-field-no/m-p/2132882#M92064</guid>
      <dc:creator>marcomatta</dc:creator>
      <dc:date>2023-10-30T11:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using SubField with more than one 'field_no'</title>
      <link>https://community.qlik.com/t5/App-Development/Using-SubField-with-more-than-one-field-no/m-p/2132884#M92065</link>
      <description>&lt;P&gt;So you could try to extract the Key, First ID, Second ID.&lt;BR /&gt;And then in a second time, extract Key + First ID as Output and concatenate Key + Second ID as Output.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 11:16:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-SubField-with-more-than-one-field-no/m-p/2132884#M92065</guid>
      <dc:creator>vincent_ardiet_</dc:creator>
      <dc:date>2023-10-30T11:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using SubField with more than one 'field_no'</title>
      <link>https://community.qlik.com/t5/App-Development/Using-SubField-with-more-than-one-field-no/m-p/2133124#M92084</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;You can try this.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Load *,&lt;BR /&gt;Subfield(Replace((KeepChar(Input,'0123456789-')),'--',''),'-') as Out;&lt;BR /&gt;;&lt;BR /&gt;load * Inline [&lt;BR /&gt;Input&lt;BR /&gt;'Description order - ID-1234 - Some other text - ID-4567',&lt;BR /&gt;'Description order - ID-1234 - Some other text - ID-4567'&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sivapriya_d_0-1698721616858.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119095i5DA941FDB4468D5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sivapriya_d_0-1698721616858.png" alt="Sivapriya_d_0-1698721616858.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 03:09:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-SubField-with-more-than-one-field-no/m-p/2133124#M92084</guid>
      <dc:creator>Sivapriya_d</dc:creator>
      <dc:date>2023-10-31T03:09:20Z</dc:date>
    </item>
  </channel>
</rss>

