<?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 Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Re-Subfield-Issue/m-p/1442069#M805690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rule is splitting a Name into forename,Middle Name and Surname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we know some people will use their Middle name in their name and few will not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I wanted to split the Name Field into&amp;nbsp; forename,Middle Name and Surname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Oct 2017 09:26:18 GMT</pubDate>
    <dc:creator>kicchu465</dc:creator>
    <dc:date>2017-10-27T09:26:18Z</dc:date>
    <item>
      <title>Re: Subfield Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Subfield-Issue/m-p/1442063#M805684</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 have a query regarding subfiled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the below Input data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name:&lt;/P&gt;&lt;P&gt;ABC D EFG&lt;/P&gt;&lt;P&gt;ABC XYZ&lt;/P&gt;&lt;P&gt;123 AB QWE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Query is, I need to split the above data into three different filed using Subfield function or if there any other way to acheive this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;Kb&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/Re-Subfield-Issue/m-p/1442063#M805684</guid>
      <dc:creator>kicchu465</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Subfield-Issue/m-p/1442064#M805685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Subfield(NAME, ' ',1) as FIELD1,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Subfield(NAME, ' ',2) as FIELD2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Subfield(NAME, ' ',3) as FIELD3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM ....;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Subfield-Issue/m-p/1442064#M805685</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-10-26T15:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Subfield-Issue/m-p/1442065#M805686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here with one more example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/165385"&gt;Subfield&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 05:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Subfield-Issue/m-p/1442065#M805686</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2017-10-27T05:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Subfield-Issue/m-p/1442066#M805687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using the above code the result would like as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="95" style="width: 355px; height: 68px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="78"&gt;Old_name&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="45"&gt;FIELD1&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="45"&gt;FIELD2&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="45"&gt;FIELD3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;123 AB QWE&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;123&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;AB&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;QWE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;ABC D EFG&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;ABC&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;D&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;EFG&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;ABC XYZ&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;ABC&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;XYZ&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;My&amp;nbsp; expected output should be like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="105" style="width: 381px; height: 109px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="78"&gt;Old_name&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="45"&gt;FIELD1&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="45"&gt;FIELD2&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="45"&gt;FIELD3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;123 AB QWE&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;123&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;AB&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;QWE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;ABC D EFG&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;ABC&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;D&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;EFG&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;ABC XYZ&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;ABC&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;XYZ&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 08:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Subfield-Issue/m-p/1442066#M805687</guid>
      <dc:creator>kicchu465</dc:creator>
      <dc:date>2017-10-27T08:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Subfield-Issue/m-p/1442067#M805688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What determines that the two part string need to be split and assigned to FIELD1 and FIELD3 instead of FIELD1 and FIELD2? Is this a general rule or based on the string content?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 08:51:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Subfield-Issue/m-p/1442067#M805688</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-10-27T08:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Subfield-Issue/m-p/1442068#M805689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&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 Name,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Subfield(Name, ' ', 1) as Field1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(SubStringCount(Trim(Name), ' ') = 2, Subfield(Name, ' ', 2)) as Field2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Subfield(Name, ' ', -1) as Field3;&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;Name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ABC D EFG&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ABC XYZ&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;123 AB QWE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 08:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Subfield-Issue/m-p/1442068#M805689</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-27T08:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Subfield-Issue/m-p/1442069#M805690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rule is splitting a Name into forename,Middle Name and Surname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we know some people will use their Middle name in their name and few will not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I wanted to split the Name Field into&amp;nbsp; forename,Middle Name and Surname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 09:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Subfield-Issue/m-p/1442069#M805690</guid>
      <dc:creator>kicchu465</dc:creator>
      <dc:date>2017-10-27T09:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Subfield-Issue/m-p/1442070#M805691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Stefan, you need to determine which field stores what. My first name (Miguel Angel) is two words separated by a space, not a dash, very common in Spain and other Latin American countries, and I don't have a middle name. My last name (Baeyens de Arce) has 3 words (which again is very common in Spanish speaking countries), separated by space as well, and they all should go in the "LastName" field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just using SubField(), it would display wrong and incomplete following that logic: (first name Miguel -wrong-, middle name Angel -wrong-, last name Baeyens -wrong-, second part of last name "de Arce" missing -wrong-).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if you had a list of possible names, how can the application "guess" which part belongs to the first (composite or single), middle and last, and how long the last name can be (e.g.: one, two, three or more words)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are splitting the names to have less unique values and optimize performance, that's OK, but on the front end you will have to concatenate them again. If one of those fields is empty, replace by a space, otherwise display the value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 09:35:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Subfield-Issue/m-p/1442070#M805691</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2017-10-27T09:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Subfield-Issue/m-p/1442071#M805693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the above code and it has worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also created one more for resolving this please find below.&lt;/P&gt;&lt;P&gt;FullName:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Name&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ABC D EFG&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ABC XYZ&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;123 AB QWE&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;SubField(Name, ' ',1) as Sub_FirstName,&lt;/P&gt;&lt;P&gt;MID(Name,index(Name,' ',1)+1,index(Name,' ',2)-(index(Name,' ',1)+1)) as Sub_MiddleName,&lt;/P&gt;&lt;P&gt;SubField(Name, ' ',-1) as Sub_Surname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident FullName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table FullName;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 09:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Subfield-Issue/m-p/1442071#M805693</guid>
      <dc:creator>kicchu465</dc:creator>
      <dc:date>2017-10-27T09:35:53Z</dc:date>
    </item>
  </channel>
</rss>

