<?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 Creating field on the load statement from another field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Creating-field-on-the-load-statement-from-another-field/m-p/1926827#M76323</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am aiming into creating subfield "Aimed" from field "Current" on the load statement, as per below picture.&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 150pt;" border="0" width="257px" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 23.4pt;"&gt;
&lt;TD width="63.9083px" height="23px" style="height: 23.4pt; width: 50pt;"&gt;Current&lt;/TD&gt;
&lt;TD width="57.1417px" height="23px" style="width: 50pt;"&gt;Aimed&lt;/TD&gt;
&lt;TD width="77.95px" height="23px" style="width: 50pt;"&gt;Aimed2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD width="63.9083px" height="14px" style="height: 14.4pt;"&gt;A - Text&lt;/TD&gt;
&lt;TD width="57.1417px" height="14px"&gt;A&lt;/TD&gt;
&lt;TD width="77.95px" height="14px"&gt;A - Text&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD width="63.9083px" height="14px" style="height: 14.4pt;"&gt;Acd - Text1&lt;/TD&gt;
&lt;TD width="57.1417px" height="14px"&gt;Acd&lt;/TD&gt;
&lt;TD width="77.95px" height="14px"&gt;Acd - Text1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD width="63.9083px" height="14px" style="height: 14.4pt;"&gt;A - Text2&lt;/TD&gt;
&lt;TD width="57.1417px" height="14px"&gt;A&lt;/TD&gt;
&lt;TD width="77.95px" height="14px"&gt;A - Text2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD width="63.9083px" height="14px" style="height: 14.4pt;"&gt;Bb - Text1&lt;/TD&gt;
&lt;TD width="57.1417px" height="14px"&gt;Bb&lt;/TD&gt;
&lt;TD width="77.95px" height="14px"&gt;Bb - Text1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD width="63.9083px" height="14px" style="height: 14.4pt;"&gt;Ba - Text2&lt;/TD&gt;
&lt;TD width="57.1417px" height="14px"&gt;Ba&lt;/TD&gt;
&lt;TD width="77.95px" height="14px"&gt;Ba - Text2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD width="63.9083px" height="14px" style="height: 14.4pt;"&gt;B - Text3&lt;/TD&gt;
&lt;TD width="57.1417px" height="14px"&gt;B&lt;/TD&gt;
&lt;TD width="77.95px" height="14px"&gt;B - Text3&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there any tool that could support me with that? First thing that comes to my mind is:&lt;/P&gt;
&lt;P&gt;-separating value that comes before space or '-'&lt;/P&gt;
&lt;P&gt;- matching if value is equal to a, b, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: If anybody will look after an answer, i just did separation with SubField Function, it works very well:&lt;/P&gt;
&lt;P&gt;FullName: &lt;BR /&gt;LOAD * inline [ Name 'Dave Owen' 'Joe Tem' ]; &lt;BR /&gt;SepNames: Load Name, SubField(Name, ' ',1) as FirstName, SubField(Name, ' ',-1) as Surname &lt;BR /&gt;Resident FullName; Drop Table FullName&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2022 11:53:33 GMT</pubDate>
    <dc:creator>Mt3</dc:creator>
    <dc:date>2022-05-05T11:53:33Z</dc:date>
    <item>
      <title>Creating field on the load statement from another field</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-field-on-the-load-statement-from-another-field/m-p/1926827#M76323</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am aiming into creating subfield "Aimed" from field "Current" on the load statement, as per below picture.&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 150pt;" border="0" width="257px" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 23.4pt;"&gt;
&lt;TD width="63.9083px" height="23px" style="height: 23.4pt; width: 50pt;"&gt;Current&lt;/TD&gt;
&lt;TD width="57.1417px" height="23px" style="width: 50pt;"&gt;Aimed&lt;/TD&gt;
&lt;TD width="77.95px" height="23px" style="width: 50pt;"&gt;Aimed2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD width="63.9083px" height="14px" style="height: 14.4pt;"&gt;A - Text&lt;/TD&gt;
&lt;TD width="57.1417px" height="14px"&gt;A&lt;/TD&gt;
&lt;TD width="77.95px" height="14px"&gt;A - Text&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD width="63.9083px" height="14px" style="height: 14.4pt;"&gt;Acd - Text1&lt;/TD&gt;
&lt;TD width="57.1417px" height="14px"&gt;Acd&lt;/TD&gt;
&lt;TD width="77.95px" height="14px"&gt;Acd - Text1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD width="63.9083px" height="14px" style="height: 14.4pt;"&gt;A - Text2&lt;/TD&gt;
&lt;TD width="57.1417px" height="14px"&gt;A&lt;/TD&gt;
&lt;TD width="77.95px" height="14px"&gt;A - Text2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD width="63.9083px" height="14px" style="height: 14.4pt;"&gt;Bb - Text1&lt;/TD&gt;
&lt;TD width="57.1417px" height="14px"&gt;Bb&lt;/TD&gt;
&lt;TD width="77.95px" height="14px"&gt;Bb - Text1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD width="63.9083px" height="14px" style="height: 14.4pt;"&gt;Ba - Text2&lt;/TD&gt;
&lt;TD width="57.1417px" height="14px"&gt;Ba&lt;/TD&gt;
&lt;TD width="77.95px" height="14px"&gt;Ba - Text2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD width="63.9083px" height="14px" style="height: 14.4pt;"&gt;B - Text3&lt;/TD&gt;
&lt;TD width="57.1417px" height="14px"&gt;B&lt;/TD&gt;
&lt;TD width="77.95px" height="14px"&gt;B - Text3&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there any tool that could support me with that? First thing that comes to my mind is:&lt;/P&gt;
&lt;P&gt;-separating value that comes before space or '-'&lt;/P&gt;
&lt;P&gt;- matching if value is equal to a, b, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: If anybody will look after an answer, i just did separation with SubField Function, it works very well:&lt;/P&gt;
&lt;P&gt;FullName: &lt;BR /&gt;LOAD * inline [ Name 'Dave Owen' 'Joe Tem' ]; &lt;BR /&gt;SepNames: Load Name, SubField(Name, ' ',1) as FirstName, SubField(Name, ' ',-1) as Surname &lt;BR /&gt;Resident FullName; Drop Table FullName&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 11:53:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-field-on-the-load-statement-from-another-field/m-p/1926827#M76323</guid>
      <dc:creator>Mt3</dc:creator>
      <dc:date>2022-05-05T11:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating field on the load statement from another field</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-field-on-the-load-statement-from-another-field/m-p/1926915#M76330</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my understanding is correct, you were able to resolve the issue with the use of &lt;SPAN style="color:hsl(210, 75%, 60%);"&gt;&lt;STRONG&gt;SubField&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;()&lt;/STRONG&gt; function. Is that right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The complete solution for your use case scenario is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color:hsl(0, 0%, 60%);"&gt;&lt;STRONG&gt;//Load the table&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(270, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;FullName&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(210, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;* &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(210, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;inline &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;[&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; Name&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;'Dave Owen'&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;'Joe Tem'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color:hsl(0, 0%, 60%);"&gt;&lt;STRONG&gt;//Load name and surname separately into another table:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(270, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;SepNames&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(210, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;Load&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(30, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;,&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(210, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;SubField&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(30, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;, ' ',1) as &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(30, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;FirstName&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;,&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(210, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;SubField&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(30, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;, ' ',-1) as &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(30, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;Surname&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(210, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;Resident &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(270, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;FullName&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color:hsl(0, 0%, 60%);"&gt;&lt;STRONG&gt;//Drop the temp table:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(210, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;Drop Table &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(270, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;FullName&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;In that case, you are right. If you need to separate an string value like &lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(120, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;"Name Surname"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt; then you have to do as you already did, by using the function &lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(210, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;SubField&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;. First argument is your string value, second argument is the delimiter (which in this case is the space " ") and the last argument will give you the part of the split text. So the after math would be an array that looks like &lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(120, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;'Name'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;&lt;STRONG&gt;, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(120, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;'Surname']&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;, so using the number 1 as argument will give you &lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(120, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;"Name" &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt;which is the first element and using the number 2 will give you &lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(120, 75%, 60%);font-size:16px;"&gt;&lt;STRONG&gt;"Surname"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(84,86,90);font-size:16px;"&gt; which is the second element. However, using the argument -1 as you did will give you the last element, which in this case is the Surname.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:hsl(0, 0%, 60%);font-size:16px;"&gt;&lt;I&gt;&lt;STRONG&gt;If the above description is the complete solution to your issue, please mark it as Accepted Solution to give further visibility to other community members.&amp;nbsp;&lt;/STRONG&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 13:45:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-field-on-the-load-statement-from-another-field/m-p/1926915#M76330</guid>
      <dc:creator>Andrei_Cusnir</dc:creator>
      <dc:date>2022-05-05T13:45:09Z</dc:date>
    </item>
  </channel>
</rss>

