<?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: ApplyMap with exception in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ApplyMap-with-exception/m-p/502688#M1137326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One option may be create a flag field in the mapping with that special cases and map them with a condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;countrymap:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Country&lt;/TD&gt;&lt;TD&gt;Continent&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;the Netherlands&lt;/TD&gt;&lt;TD&gt;Europe&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;the Netherlands-Especial&lt;/TD&gt;&lt;TD&gt;Africa&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Germany&lt;/TD&gt;&lt;TD&gt;Europe&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Spain&lt;/TD&gt;&lt;TD&gt;Europe&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;South Africa&lt;/TD&gt;&lt;TD&gt;Africa&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_to_apply_mapping:&lt;/P&gt;&lt;P&gt;LOAD * , ApplyMap('countrymap',Country&amp;amp;if(&lt;EM&gt;&amp;lt;EspecialCondition&amp;gt;&lt;/EM&gt;,'-Especial'),'') as Continent&lt;/P&gt;&lt;P&gt;RESIDENT Source_Table;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Oct 2013 07:02:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-22T07:02:33Z</dc:date>
    <item>
      <title>ApplyMap with exception</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-with-exception/m-p/502685#M1137321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been struggling for a while@ now with the ApplyMap function. This is because one entry can not follow the original mapping structure. In my example the Netherlands should be mapped to Europe but there is one exception (sales related) as to why it should be linked to Africa. Both countries 'the Netherlands' do have a unique customer number. I tried countless ApplyMaps within the ApplyMap function but can't get it working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ApplyMap('Mapping_Continent',Country, '') as Continent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 543px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl67" colspan="2" height="20" width="237"&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;Original Mapping&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt; &lt;/TD&gt;&lt;TD class="xl67" colspan="2" width="242"&gt;&lt;EM&gt;&lt;STRONG style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Preferred Mapping&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt; &lt;/TD&gt;&lt;TD class="xl63"&gt; &lt;/TD&gt;&lt;TD class="xl63"&gt; &lt;/TD&gt;&lt;TD class="xl63"&gt; &lt;/TD&gt;&lt;TD class="xl63"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;&lt;EM&gt;&lt;STRONG style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Country&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;"&gt;&lt;EM&gt;&lt;STRONG style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Continent&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;TD class="xl63"&gt; &lt;/TD&gt;&lt;TD class="xl65"&gt;&lt;EM&gt;&lt;STRONG style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Country&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;STRONG&gt;&lt;EM&gt;Continent&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;the Netherlands&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Europe&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;the Netherlands&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Europe&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Germany&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Europe&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;the Netherlands&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl69" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;Africa&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Spain&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Europe&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Germany&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Europe&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;South Africa&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Africa&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Spain&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Europe&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt; &lt;/TD&gt;&lt;TD class="xl63"&gt; &lt;/TD&gt;&lt;TD class="xl63"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;South Africa&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Africa&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;René&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 06:17:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-with-exception/m-p/502685#M1137321</guid>
      <dc:creator />
      <dc:date>2013-10-22T06:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap with exception</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-with-exception/m-p/502686#M1137323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried something like ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Country='the Netherlands', 'Africa', ApplyMap('Mapping_Continent',Country)) as Continent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 06:22:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-with-exception/m-p/502686#M1137323</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-22T06:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap with exception</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-with-exception/m-p/502687#M1137325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It can be done by nested if statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 06:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-with-exception/m-p/502687#M1137325</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2013-10-22T06:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap with exception</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-with-exception/m-p/502688#M1137326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One option may be create a flag field in the mapping with that special cases and map them with a condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;countrymap:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Country&lt;/TD&gt;&lt;TD&gt;Continent&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;the Netherlands&lt;/TD&gt;&lt;TD&gt;Europe&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;the Netherlands-Especial&lt;/TD&gt;&lt;TD&gt;Africa&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Germany&lt;/TD&gt;&lt;TD&gt;Europe&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Spain&lt;/TD&gt;&lt;TD&gt;Europe&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;South Africa&lt;/TD&gt;&lt;TD&gt;Africa&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_to_apply_mapping:&lt;/P&gt;&lt;P&gt;LOAD * , ApplyMap('countrymap',Country&amp;amp;if(&lt;EM&gt;&amp;lt;EspecialCondition&amp;gt;&lt;/EM&gt;,'-Especial'),'') as Continent&lt;/P&gt;&lt;P&gt;RESIDENT Source_Table;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 07:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-with-exception/m-p/502688#M1137326</guid>
      <dc:creator />
      <dc:date>2013-10-22T07:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap with exception</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-with-exception/m-p/502689#M1137327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco. Thanks for guiding me in the right direction. I found that one 'the Netherlands' has a specific customer group linked to it. In the end this was the statement that did it for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;if(CustGroupDesc='Export','Africa',ApplyMap('Mapping_Continent',Country,'')) as Continent&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again and regards,&lt;/P&gt;&lt;P&gt;René&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 07:04:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-with-exception/m-p/502689#M1137327</guid>
      <dc:creator />
      <dc:date>2013-10-22T07:04:55Z</dc:date>
    </item>
  </channel>
</rss>

