<?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 Use field from another table in the script. Should i use Lookup() ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-field-from-another-table-in-the-script-Should-i-use-Lookup/m-p/821992#M1027446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table (table 1) connected to another table (table2) by a key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to add new fields to the table 1 with an excel and i have to do calculations with if and that sort of things (in the table 1). But i have one field (Concept) in the table 2 and i have to use it in the calculations from the table 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't wanna join the tables, should i use lookup? I tried to use this function but it didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 13:03:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-03T13:03:34Z</dc:date>
    <item>
      <title>Use field from another table in the script. Should i use Lookup() ?</title>
      <link>https://community.qlik.com/t5/QlikView/Use-field-from-another-table-in-the-script-Should-i-use-Lookup/m-p/821992#M1027446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table (table 1) connected to another table (table2) by a key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to add new fields to the table 1 with an excel and i have to do calculations with if and that sort of things (in the table 1). But i have one field (Concept) in the table 2 and i have to use it in the calculations from the table 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't wanna join the tables, should i use lookup? I tried to use this function but it didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 13:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-field-from-another-table-in-the-script-Should-i-use-Lookup/m-p/821992#M1027446</guid>
      <dc:creator />
      <dc:date>2015-03-03T13:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use field from another table in the script. Should i use Lookuop() ?</title>
      <link>https://community.qlik.com/t5/QlikView/Use-field-from-another-table-in-the-script-Should-i-use-Lookup/m-p/821993#M1027447</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;If you want to do this in script then you have to use join and bring all the fields in one table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not then try it in front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 13:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-field-from-another-table-in-the-script-Should-i-use-Lookup/m-p/821993#M1027447</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-03-03T13:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Use field from another table in the script. Should i use Lookup() ?</title>
      <link>https://community.qlik.com/t5/QlikView/Use-field-from-another-table-in-the-script-Should-i-use-Lookup/m-p/821994#M1027448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use ApplyMap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//First load your second table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;BR /&gt;Load * from Table2.xls (...);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Create a mapping table with the field you need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mapConcept:&lt;/P&gt;&lt;P&gt;mapping load %KeyField, Concept resident Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Load Table1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;Load *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ApplyMap('mapConcept',%KeyField,null()) = 'Your condition', ....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from Table1.xls (...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 13:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-field-from-another-table-in-the-script-Should-i-use-Lookup/m-p/821994#M1027448</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2015-03-03T13:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Use field from another table in the script. Should i use Lookup() ?</title>
      <link>https://community.qlik.com/t5/QlikView/Use-field-from-another-table-in-the-script-Should-i-use-Lookup/m-p/821995#M1027449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Applymap is a safer option than using a join, as applymap will only return a single value (or null) unlike a join which may cause the number of rows in your data to increase if two values match the join criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are more details here&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/09/18/one-favorite-function-applymap"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/09/18/one-favorite-function-applymap&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 13:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-field-from-another-table-in-the-script-Should-i-use-Lookup/m-p/821995#M1027449</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-03-03T13:20:15Z</dc:date>
    </item>
  </channel>
</rss>

