<?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: add fields directly in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/add-fields-directly-in-the-script/m-p/284605#M105793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;twist&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2011 17:10:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-07T17:10:56Z</dc:date>
    <item>
      <title>add fields directly in the script</title>
      <link>https://community.qlik.com/t5/QlikView/add-fields-directly-in-the-script/m-p/284603#M105791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;I have&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;4&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;identical databases&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;(tables,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;fields)&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with different names (society A, society B...)&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;And it&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;can&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;concatenate&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;fields&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;from&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;database&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;but&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;differ in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;an additional field&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;added to the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;example:&lt;/SPAN&gt;&lt;BR /&gt; datab&lt;SPAN class="hps"&gt;ase&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;A:&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;date&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;sale&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;seller&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt; data&lt;SPAN class="hps"&gt;base B&lt;/SPAN&gt;:&lt;BR /&gt; &lt;SPAN class="hps"&gt;date&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;sale&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;seller&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;I wish a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;result:&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;date&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;sale&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;seller&lt;/SPAN&gt;&lt;BR /&gt; data&lt;SPAN class="hps"&gt;base&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;thank you for your&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;twist&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 11:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/add-fields-directly-in-the-script/m-p/284603#M105791</guid>
      <dc:creator />
      <dc:date>2011-12-07T11:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: add fields directly in the script</title>
      <link>https://community.qlik.com/t5/QlikView/add-fields-directly-in-the-script/m-p/284604#M105792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's very usual. You will have to both create the new field and use the CONCATENATE keyword in the second load and after is the fields are not the same to force concatenation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Database1' AS Database;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM Database1;&lt;/P&gt;&lt;P&gt;CONCATENATE (Table) LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Database2' AS Database;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM Database2;&lt;/P&gt;&lt;P&gt;CONCATENATE (Table) LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Database3' AS Database;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM Database3;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 11:20:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/add-fields-directly-in-the-script/m-p/284604#M105792</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-12-07T11:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: add fields directly in the script</title>
      <link>https://community.qlik.com/t5/QlikView/add-fields-directly-in-the-script/m-p/284605#M105793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;twist&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 17:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/add-fields-directly-in-the-script/m-p/284605#M105793</guid>
      <dc:creator />
      <dc:date>2011-12-07T17:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: add fields directly in the script</title>
      <link>https://community.qlik.com/t5/QlikView/add-fields-directly-in-the-script/m-p/284606#M105794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the fields are and will always be &lt;EM&gt;&lt;STRONG&gt;exactly&lt;/STRONG&gt;&lt;/EM&gt; the same, it might be simpler to use a loop:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FOR EACH DB IN 'Society A','Society B','Society C','Society D'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Societies:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *, $(DB) as Database;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL SELECT Date, Seller FROM $(DB);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;NEXT&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 20:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/add-fields-directly-in-the-script/m-p/284606#M105794</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-12-07T20:51:30Z</dc:date>
    </item>
  </channel>
</rss>

