<?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: Extract string using Subfield in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1670339#M727797</link>
    <description>&lt;P&gt;In these examples the numbers are in the 4th subfield regardless of the hyphen or not.&lt;/P&gt;&lt;P&gt;In order to solve this you will need to find a logic ( set of rules ) that will identify the section you&amp;nbsp; are looking for, if the number section in these examples are to be the part of interrest then you will need to figure out hiw to identify these together with the logic of the earlier examples.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2020 09:02:18 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2020-01-29T09:02:18Z</dc:date>
    <item>
      <title>Extract string using Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1670173#M727792</link>
      <description>&lt;P&gt;Need to extract text from 3rd node using subfield.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Title_Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Title_Name_1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Expecting Result&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AB_SDF_87544515_FGDFP_ER&lt;/TD&gt;&lt;TD&gt;87544515&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;87544515&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DG_JTY_74617678-C_EAEM3eADMA4711&lt;/TD&gt;&lt;TD&gt;Notfound&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;74617678&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;GHF_HFE_76464369_ASAS-ASD&lt;/TD&gt;&lt;TD&gt;76464369&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;76464369&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;LFGDFJM_DFGDFG_GFGGF_DFSDF_DF&lt;/TD&gt;&lt;TD&gt;Notfound&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;Notfound&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;PFS_KUD_83851133-KSD_DFVD_SAD&lt;/TD&gt;&lt;TD&gt;Notfound&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;83851133&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;sdfd_DFGDFGDFG&lt;/TD&gt;&lt;TD&gt;Notfound&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;Notfound&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;SDFWE_WERWE_80157751HK-IN-A1-N1-ASG4702&lt;/TD&gt;&lt;TD&gt;Notfound&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;80157751&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;SDFWE_WERWE_82004442AA&lt;/TD&gt;&lt;TD&gt;Notfound&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;82004442&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;SE_JHGFDF_85697824_OUTP_DFG&lt;/TD&gt;&lt;TD&gt;85697824&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;85697824&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TRYR_SF_78311060-A_Tech-FAR-SSD&lt;/TD&gt;&lt;TD&gt;Notfound&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;78311060&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the following statement&lt;/P&gt;&lt;P&gt;******************&lt;BR /&gt;Script:&lt;/P&gt;&lt;P&gt;T0:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Title_Name&lt;BR /&gt;AB_SDF_87544515_FGDFP_ER&lt;BR /&gt;SE_JHGFDF_85697824_OUTP_DFG&lt;BR /&gt;PFS_KUD_83851133-KSD_DFVD_SAD&lt;BR /&gt;SDFWE_WERWE_82004442AA&lt;BR /&gt;LFGDFJM_DFGDFG_GFGGF_DFSDF_DF&lt;BR /&gt;SDFWE_WERWE_80157751HK-IN-A1-N1-ASG4702&lt;BR /&gt;TRYR_SF_78311060-A_Tech-FAR-SSD&lt;BR /&gt;GHF_HFE_76464369_ASAS-ASD&lt;BR /&gt;DG_JTY_74617678-C_EAEM3eADMA4711&lt;BR /&gt;sdfd_DFGDFGDFG&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD Title_Name,&lt;BR /&gt;If(IsNum(SubField(Title_Name,'_',3)),SubField(Title_Name,'_',3),'Notfound') as Title_Name_1&lt;/P&gt;&lt;P&gt;Resident T0;&lt;BR /&gt;DROP Table T0;&lt;/P&gt;&lt;P&gt;*****************************&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1670173#M727792</guid>
      <dc:creator>karan_kn</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string using Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1670175#M727793</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If(IsNum(keepchar(SubField(Title_Name,'_',3),'0123456789')),keepchar(SubField(Title_Name,'_',3),'0123456789'),'Notfound') as Title_Name_1&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 18:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1670175#M727793</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2020-01-28T18:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string using Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1670183#M727794</link>
      <description>&lt;P&gt;Or this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(IsNum(KeepChar(SubField(Replace(Title_Name, '-', '_'), '_', 3), '0123456789')), KeepChar(SubField(Replace(Title_Name, '-', '_'), '_', 3), '0123456789'), 'Notfound') as Title_Name_1&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 28 Jan 2020 19:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1670183#M727794</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-01-28T19:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string using Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1670205#M727795</link>
      <description>&lt;P&gt;You don't need to use an IF to solve this problem. You can use the Alt() function as instead.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD 
 Title_Name, 
 [Expecting Result],
 alt(num(SubField(keepchar(replace(Title_Name,'-','_'),'1234567890_'),'_',3)), 'Notfound') as CalcResult
FROM
   [https://community.qlik.com/t5/New-to-QlikView/Extract-string-using-Subfield/td-p/1670173]
   (html, utf8, UserAgent is 'Mozilla/5.0', embedded labels, table is @1);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 20:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1670205#M727795</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-01-28T20:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string using Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1670316#M727796</link>
      <description>&lt;P&gt;Thanks for the response, but the following scenario's not working, can you help me to fix? if hyphen before the 3rd node...&lt;/P&gt;&lt;P&gt;SD_DM_TEST-Value_654895237-charged-DE-A1-N1-TMA4514&lt;BR /&gt;SD_DM_TEST-Value_658795648-Simple-Confirmation-TRMA4751&lt;BR /&gt;SD_DM_TEST-SAe_785269845-STO-DE-A1-N1-RTMA3944&lt;BR /&gt;SD_DM_TEST-Value_658795428-Now-WW-MMA-Nov-Active-mail-check-AP-thinner-RSSA4575&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 07:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1670316#M727796</guid>
      <dc:creator>karan_kn</dc:creator>
      <dc:date>2020-01-29T07:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string using Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1670339#M727797</link>
      <description>&lt;P&gt;In these examples the numbers are in the 4th subfield regardless of the hyphen or not.&lt;/P&gt;&lt;P&gt;In order to solve this you will need to find a logic ( set of rules ) that will identify the section you&amp;nbsp; are looking for, if the number section in these examples are to be the part of interrest then you will need to figure out hiw to identify these together with the logic of the earlier examples.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 09:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1670339#M727797</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-01-29T09:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string using Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1670342#M727798</link>
      <description>&lt;P&gt;regardless 3rd or 4th subfield, if 'hyphen' comes before '_', the logic not working&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 09:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1670342#M727798</guid>
      <dc:creator>karan_kn</dc:creator>
      <dc:date>2020-01-29T09:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string using Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1670367#M727799</link>
      <description>&lt;P&gt;Try to first fetch the third based on pure '_', then apply a second set of rules handling the '-' and the text in a second iteration. It might be easer due to less clutter in each expression row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;Subfield(replace(...ThirdSubfield)) as FinalValue&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&lt;BR /&gt;Subfield(text, '_', 3) as ThirdSubfield&lt;BR /&gt;FROM ...&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;(When you found the two step solution then you could consider merging everything into a single expression)&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 10:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1670367#M727799</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-01-29T10:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string using Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1696811#M727800</link>
      <description>&lt;P&gt;TAB:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;STRING&lt;BR /&gt;AB_SDF_87544515_FGDFP_ER&lt;BR /&gt;DG_JTY_74617678-C_EAEM3eADMA4711&lt;BR /&gt;GHF_HFE_76464369_ASAS-ASD&lt;BR /&gt;LFGDFJM_DFGDFG_GFGGF_DFSDF_DF&lt;BR /&gt;PFS_KUD_83851133-KSD_DFVD_SAD&lt;BR /&gt;sdfd_DFGDFGDFG&lt;BR /&gt;SDFWE_WERWE_80157751HK-IN-A1-N1-ASG4702&lt;BR /&gt;SDFWE_WERWE_82004442AA&lt;BR /&gt;SE_JHGFDF_85697824_OUTP_DFG&lt;BR /&gt;TRYR_SF_78311060-A_Tech-FAR-SSD&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;TAB1:&lt;BR /&gt;LOAD * ,&lt;BR /&gt;TEXT(IF(ISNUM(LEFT(SubField(STRING,'_',3),8)),LEFT(SubField(STRING,'_',3),8),'NOT FOUND')) AS OUTPUT&lt;BR /&gt;Resident TAB;&lt;/P&gt;&lt;P&gt;DROP Table TAB;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2020 13:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-string-using-Subfield/m-p/1696811#M727800</guid>
      <dc:creator>rajaxavier</dc:creator>
      <dc:date>2020-04-26T13:55:19Z</dc:date>
    </item>
  </channel>
</rss>

