<?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 Create a new field with data in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-new-field-with-data-in-script/m-p/455804#M1158410</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;Is there a way to create a new field with data values in them in the Script?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My example is this.&amp;nbsp; I have 3 lists (sharepoint. List 1, List 2, list 3) being pulled.&amp;nbsp; List 1 is the main List that has a Legal name as the key field.&amp;nbsp; List 2 and 3 all are linked via the Legal Name.&amp;nbsp; I also have a field in the lists called Title Name that basically tells me which list i am pulling from, be it List 2 or List 3 yet list 1 does not have this field.&amp;nbsp; How can I combine the Title lists in List 2 and 3 into list 1? Or combine the lists all together so I can click and sort by them.&amp;nbsp; If I change all the Title Lists to the same field name it becomes another key field which i do not want to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2013 22:28:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-24T22:28:12Z</dc:date>
    <item>
      <title>Create a new field with data in script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-field-with-data-in-script/m-p/455804#M1158410</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;Is there a way to create a new field with data values in them in the Script?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My example is this.&amp;nbsp; I have 3 lists (sharepoint. List 1, List 2, list 3) being pulled.&amp;nbsp; List 1 is the main List that has a Legal name as the key field.&amp;nbsp; List 2 and 3 all are linked via the Legal Name.&amp;nbsp; I also have a field in the lists called Title Name that basically tells me which list i am pulling from, be it List 2 or List 3 yet list 1 does not have this field.&amp;nbsp; How can I combine the Title lists in List 2 and 3 into list 1? Or combine the lists all together so I can click and sort by them.&amp;nbsp; If I change all the Title Lists to the same field name it becomes another key field which i do not want to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 22:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-field-with-data-in-script/m-p/455804#M1158410</guid>
      <dc:creator />
      <dc:date>2013-01-24T22:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new field with data in script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-field-with-data-in-script/m-p/455805#M1158411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on your data and what you want. You can join the list tables or maybe you can use mapping tables and the applymap function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use the join statement to join the tables into one table. You can then use the fields in the combined table to create new fields. Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;List1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;LegalName, fieldB, fieldC, ..etc&lt;/P&gt;&lt;P&gt;from ...list1...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;join&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;LegalName, fieldP, fieldQ, ..etc&lt;/P&gt;&lt;P&gt;from ...list2...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;join&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;LegalName, fieldX, fieldY, ..etc&lt;/P&gt;&lt;P&gt;from ...list3...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ResultTable:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;LegalName, &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fieldP &amp;amp; '-' &amp;amp; fieldX as fieldPX, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;fieldA, fieldB, fieldP,...etc&lt;/P&gt;&lt;P&gt;resident List1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table List1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 09:39:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-field-with-data-in-script/m-p/455805#M1158411</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-25T09:39:29Z</dc:date>
    </item>
  </channel>
</rss>

