<?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: New calculated field from 2 different tables in script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86411#M5737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the script but i'm getting the following error at the Temp_Main1 table: ApplyMap error: map_id not found&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2018 12:59:40 GMT</pubDate>
    <dc:creator>pascaldijkshoor</dc:creator>
    <dc:date>2018-06-27T12:59:40Z</dc:date>
    <item>
      <title>New calculated field from 2 different tables in script</title>
      <link>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86405#M5731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add a new calculated field in the script from 2 tables that are linked with the 'main' table. This is the current situation in my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Main Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ShipmentNumber&lt;/P&gt;&lt;P&gt;Load_Location&lt;/P&gt;&lt;P&gt;Unload_Location&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ExcelFileLoad&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load_Location&lt;/P&gt;&lt;P&gt;Load_Location_New&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ExcelFileUnload&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Unload_Location&lt;/P&gt;&lt;P&gt;Uload_Location_New&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Excel files are created to get the correct load/unload locations into Qlik. I want to create a new calculated field with the following formula: "Load_Location_New"&amp;amp;'-'&amp;amp;"Unload_Location_New" as Shipment_Lane. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I fix this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 10:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86405#M5731</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-06-27T10:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: New calculated field from 2 different tables in script</title>
      <link>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86406#M5732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample with expected output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 11:04:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86406#M5732</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-27T11:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: New calculated field from 2 different tables in script</title>
      <link>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86407#M5733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is what you mean, the new table would look like the small table below. First I had a calculated field in the main table based on the Load_Location and Unload_Location, but since the locations in these fields are not always correct, i have made an Excel file that changes the wrong location names into the correct location names. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 497px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="119"&gt;ShipmentNumber&lt;/TD&gt;&lt;TD width="133"&gt;Load_Location_New&lt;/TD&gt;&lt;TD width="148"&gt;Unload_Location_New&lt;/TD&gt;&lt;TD width="97"&gt;ShipmentLane&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;385473&lt;/TD&gt;&lt;TD&gt;AMS&lt;/TD&gt;&lt;TD&gt;MPX&lt;/TD&gt;&lt;TD&gt;AMS - MPX&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;983483&lt;/TD&gt;&lt;TD&gt;CDG&lt;/TD&gt;&lt;TD&gt;BRU&lt;/TD&gt;&lt;TD&gt;CDG - BRU&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;934939&lt;/TD&gt;&lt;TD&gt;LHR&lt;/TD&gt;&lt;TD&gt;BCN&lt;/TD&gt;&lt;TD&gt;LHR - BCN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;394933&lt;/TD&gt;&lt;TD&gt;BRU&lt;/TD&gt;&lt;TD&gt;LHR&lt;/TD&gt;&lt;TD&gt;BRU - LHR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 11:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86407#M5733</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-06-27T11:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: New calculated field from 2 different tables in script</title>
      <link>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86408#M5734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main_Table:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ShipmentNumber,&lt;/P&gt;&lt;P&gt;Load_Location,&lt;/P&gt;&lt;P&gt;Unload_Location&lt;/P&gt;&lt;P&gt;From ABC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExcelFileLoad:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Load_Location,&lt;/P&gt;&lt;P&gt;Load_Location_New&lt;/P&gt;&lt;P&gt;From BCD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapFile_Load:&lt;/P&gt;&lt;P&gt;Mapping Load &lt;/P&gt;&lt;P&gt;Load_Location,&lt;/P&gt;&lt;P&gt;Load_Location_New&lt;/P&gt;&lt;P&gt;Resident ExcelFileLoad;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExcelFileUnload:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Unload_Location,&lt;/P&gt;&lt;P&gt;Unload_Location_New&lt;/P&gt;&lt;P&gt;From CDE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapFile_Unload:&lt;/P&gt;&lt;P&gt;Mapping Load&lt;/P&gt;&lt;P&gt;Unload_Location,&lt;/P&gt;&lt;P&gt;Unload_Location_New&lt;/P&gt;&lt;P&gt;Resident ExcelFileUnload;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_Main1:&lt;/P&gt;&lt;P&gt;applymap('ExcelFileLoad',Load_Location,Null()) as Loadlocnew,&lt;/P&gt;&lt;P&gt;applymap('ExcelFileUnload',Unload_Location,Null()) as Unloadlocnew;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(Main_Table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp2:&lt;/P&gt;&lt;P&gt;Loadlocnew&amp;amp;'_'&amp;amp;Unloadlocnew as ShipmentLane&lt;/P&gt;&lt;P&gt;Resident Temp_Main1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Temp_Main1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 12:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86408#M5734</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2018-06-27T12:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: New calculated field from 2 different tables in script</title>
      <link>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86409#M5735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you reply, haven't tried the script yet but I have got a question. Why do you use the MapFile_Load/Unload tables? Because they are the same as the ExcelFile tables and are not used further in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 12:20:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86409#M5735</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-06-27T12:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: New calculated field from 2 different tables in script</title>
      <link>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86410#M5736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For clarity, i created like that. Some times these tables may have more columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 12:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86410#M5736</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2018-06-27T12:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: New calculated field from 2 different tables in script</title>
      <link>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86411#M5737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the script but i'm getting the following error at the Temp_Main1 table: ApplyMap error: map_id not found&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 12:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86411#M5737</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-06-27T12:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: New calculated field from 2 different tables in script</title>
      <link>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86412#M5738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also I added a Load statement under the Temp_Main1, so the script i used is: &lt;/P&gt;&lt;P&gt;Temp_Main1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;applymap('ExcelFileLoad',Load_Location,null()) as Loadlocnew,&lt;/P&gt;&lt;P&gt;applymap('ExcelFileUnload',Unload_Location,null())as Unloadocnew;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 13:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86412#M5738</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-06-27T13:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: New calculated field from 2 different tables in script</title>
      <link>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86413#M5739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did some research to the applymap function and adjusted some parts and now it's fixed. Thanks a lot &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 13:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/New-calculated-field-from-2-different-tables-in-script/m-p/86413#M5739</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-06-27T13:51:13Z</dc:date>
    </item>
  </channel>
</rss>

