<?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 How to use lookup table? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-use-lookup-table/m-p/1972802#M80259</link>
    <description>&lt;P&gt;I have loaded 2 csv files, one file has code and the other has code + translation. I want to add a 2 columns table to the sheet that has the codes from the 1st table with the translation from the 2nd table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;tbl1:&lt;/P&gt;
&lt;P&gt;load&lt;/P&gt;
&lt;P&gt;@1 as 1code&lt;/P&gt;
&lt;P&gt;from&amp;nbsp;[tbl1.csv]&lt;/P&gt;
&lt;P&gt;tbl2:&lt;/P&gt;
&lt;P&gt;load&amp;nbsp;&lt;/P&gt;
&lt;P&gt;@1 as 2code&lt;/P&gt;
&lt;P&gt;@2 as 2translation&lt;/P&gt;
&lt;P&gt;from&amp;nbsp;[tbl2.csv]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table in sheet:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;code (from 1code)&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;translation (2translation)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;dog&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;2&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;cat&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2022 05:28:41 GMT</pubDate>
    <dc:creator>YanivZi</dc:creator>
    <dc:date>2022-08-25T05:28:41Z</dc:date>
    <item>
      <title>How to use lookup table?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-lookup-table/m-p/1972802#M80259</link>
      <description>&lt;P&gt;I have loaded 2 csv files, one file has code and the other has code + translation. I want to add a 2 columns table to the sheet that has the codes from the 1st table with the translation from the 2nd table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;tbl1:&lt;/P&gt;
&lt;P&gt;load&lt;/P&gt;
&lt;P&gt;@1 as 1code&lt;/P&gt;
&lt;P&gt;from&amp;nbsp;[tbl1.csv]&lt;/P&gt;
&lt;P&gt;tbl2:&lt;/P&gt;
&lt;P&gt;load&amp;nbsp;&lt;/P&gt;
&lt;P&gt;@1 as 2code&lt;/P&gt;
&lt;P&gt;@2 as 2translation&lt;/P&gt;
&lt;P&gt;from&amp;nbsp;[tbl2.csv]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table in sheet:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;code (from 1code)&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;translation (2translation)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;dog&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;2&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;cat&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 05:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-lookup-table/m-p/1972802#M80259</guid>
      <dc:creator>YanivZi</dc:creator>
      <dc:date>2022-08-25T05:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use lookup table?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-lookup-table/m-p/1972803#M80260</link>
      <description>&lt;P&gt;Hi, maybe just LEFT JOIN tbl2 to tbl1?:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;tbl1:
load
@1 AS code
from [tbl1.csv]

//tbl2:
LEFT JOIN
load
@1 AS code,
@2 AS translation
from [tbl2.csv]&lt;/LI-CODE&gt;
&lt;P&gt;Or you can use ApplyMap():&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;tbl2_asMap:
mapping
load 
@1 as code
@2 as translation
from [tbl2.csv]

tbl1:
load
@1 as code,
ApplyMap('tbl2_asMap', code, '-Without tranlation-') as translation
from [tbl1.csv]&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 25 Aug 2022 05:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-lookup-table/m-p/1972803#M80260</guid>
      <dc:creator>justISO</dc:creator>
      <dc:date>2022-08-25T05:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use lookup table?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-lookup-table/m-p/1972873#M80267</link>
      <description>&lt;P&gt;i did not understand what to put on&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;'-Without tranlation-'&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Aug 2022 07:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-lookup-table/m-p/1972873#M80267</guid>
      <dc:creator>YanivZi</dc:creator>
      <dc:date>2022-08-25T07:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to use lookup table?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-lookup-table/m-p/1972889#M80272</link>
      <description>&lt;P&gt;Because it's specified, that's the value displayed when code in table tb12_asmap (Mapping table) does not match the code in table tbl1. If not specified, the value of the expression is returned as it is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 08:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-lookup-table/m-p/1972889#M80272</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-08-25T08:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use lookup table?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-lookup-table/m-p/1972891#M80273</link>
      <description>&lt;P&gt;This part just fills 'empty space' with words '-Without translation-' if there will be no 'translation' to your 'code'. It can be removed and you will see null value instead, but sometimes it is easier to 'catch' some errors or gaps in this way.&lt;/P&gt;
&lt;P&gt;Good example:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/MappingFunctions/ApplyMap.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/MappingFunctions/ApplyMap.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 08:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-lookup-table/m-p/1972891#M80273</guid>
      <dc:creator>justISO</dc:creator>
      <dc:date>2022-08-25T08:15:53Z</dc:date>
    </item>
  </channel>
</rss>

