<?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: Use Match functionality to look up values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-Match-functionality-to-look-up-values/m-p/892175#M1010358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use ApplyMap() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from reference manully,&lt;/P&gt;&lt;P&gt;ApplyMap( 'mapname', expr [ , defaultexpr ] )&lt;/P&gt;&lt;P&gt;Maps any expression on a previously loaded mapping table. Expr is&lt;/P&gt;&lt;P&gt;the expression whose result shall be mapped. Mapname is the name&lt;/P&gt;&lt;P&gt;of a mapping table previously loaded by a mapping load or mapping&lt;/P&gt;&lt;P&gt;select statement (see page 326). The name must be quoted&lt;/P&gt;&lt;P&gt;with single quotes. Defaultexpr is an optional expression, which&lt;/P&gt;&lt;P&gt;will be used as default mapping value if the mapping table does not&lt;/P&gt;&lt;P&gt;contain any matching value for expr. If no default is provided, the&lt;/P&gt;&lt;P&gt;value of expr is returned as is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;P&gt;// Assume the following mapping table&lt;/P&gt;&lt;P&gt;map1:&lt;/P&gt;&lt;P&gt;mapping load * inline [&lt;/P&gt;&lt;P&gt;x,y&lt;/P&gt;&lt;P&gt;1,one&lt;/P&gt;&lt;P&gt;2,two&lt;/P&gt;&lt;P&gt;3,three];&lt;/P&gt;&lt;P&gt;ApplyMap( 'map1' , MyVal ) returns 'two' if MyVal = 2&lt;/P&gt;&lt;P&gt;ApplyMap( 'map1' , MyVal ) returns 4 if MyVal = 4&lt;/P&gt;&lt;P&gt;ApplyMap( 'map1' , MyVal, 'x' )&lt;/P&gt;&lt;P&gt;returns 'x' if MyVal &amp;lt;&amp;gt; 1, 2 or 3&lt;/P&gt;&lt;P&gt;ApplyMap( 'map1' , MyVal, null() )&lt;/P&gt;&lt;P&gt;returns null if MyVal &amp;lt;&amp;gt; 1, 2 or 3&lt;/P&gt;&lt;P&gt;ApplyMap( 'map1' , MyVal, null() )&lt;/P&gt;&lt;P&gt;returns 'one' if MyVal = 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Apr 2015 16:08:37 GMT</pubDate>
    <dc:creator>buzzy996</dc:creator>
    <dc:date>2015-04-23T16:08:37Z</dc:date>
    <item>
      <title>Use Match functionality to look up values</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Match-functionality-to-look-up-values/m-p/892174#M1010356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose I load 2 tables into Qlikview and want to add a column to the first table that signifies whether a value is found in a certain column of table 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Excel I would use 2 sheets and use the match function to identify if a value is found in a column in the second table and assign zero if #N/A and 1 if match gives a number &amp;gt; 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is, how would I write something like this into my Qlikview script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 09:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Match-functionality-to-look-up-values/m-p/892174#M1010356</guid>
      <dc:creator />
      <dc:date>2015-04-23T09:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Use Match functionality to look up values</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Match-functionality-to-look-up-values/m-p/892175#M1010358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use ApplyMap() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from reference manully,&lt;/P&gt;&lt;P&gt;ApplyMap( 'mapname', expr [ , defaultexpr ] )&lt;/P&gt;&lt;P&gt;Maps any expression on a previously loaded mapping table. Expr is&lt;/P&gt;&lt;P&gt;the expression whose result shall be mapped. Mapname is the name&lt;/P&gt;&lt;P&gt;of a mapping table previously loaded by a mapping load or mapping&lt;/P&gt;&lt;P&gt;select statement (see page 326). The name must be quoted&lt;/P&gt;&lt;P&gt;with single quotes. Defaultexpr is an optional expression, which&lt;/P&gt;&lt;P&gt;will be used as default mapping value if the mapping table does not&lt;/P&gt;&lt;P&gt;contain any matching value for expr. If no default is provided, the&lt;/P&gt;&lt;P&gt;value of expr is returned as is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;P&gt;// Assume the following mapping table&lt;/P&gt;&lt;P&gt;map1:&lt;/P&gt;&lt;P&gt;mapping load * inline [&lt;/P&gt;&lt;P&gt;x,y&lt;/P&gt;&lt;P&gt;1,one&lt;/P&gt;&lt;P&gt;2,two&lt;/P&gt;&lt;P&gt;3,three];&lt;/P&gt;&lt;P&gt;ApplyMap( 'map1' , MyVal ) returns 'two' if MyVal = 2&lt;/P&gt;&lt;P&gt;ApplyMap( 'map1' , MyVal ) returns 4 if MyVal = 4&lt;/P&gt;&lt;P&gt;ApplyMap( 'map1' , MyVal, 'x' )&lt;/P&gt;&lt;P&gt;returns 'x' if MyVal &amp;lt;&amp;gt; 1, 2 or 3&lt;/P&gt;&lt;P&gt;ApplyMap( 'map1' , MyVal, null() )&lt;/P&gt;&lt;P&gt;returns null if MyVal &amp;lt;&amp;gt; 1, 2 or 3&lt;/P&gt;&lt;P&gt;ApplyMap( 'map1' , MyVal, null() )&lt;/P&gt;&lt;P&gt;returns 'one' if MyVal = 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 16:08:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Match-functionality-to-look-up-values/m-p/892175#M1010358</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-04-23T16:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Use Match functionality to look up values</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Match-functionality-to-look-up-values/m-p/892176#M1010359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/84745_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;secondtable:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;field1, field2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1,a&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2,b&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3,c&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;firsttable:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; f1, &lt;STRONG&gt;if(exists(field2,f1), 'exists', 'not exists') as flag_f1_in_field2 &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;f1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;d&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;e&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;f&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 19:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Match-functionality-to-look-up-values/m-p/892176#M1010359</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-23T19:25:12Z</dc:date>
    </item>
  </channel>
</rss>

