<?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: Using applymap as a conditional in IF statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-applymap-as-a-conditional-in-IF-statement/m-p/277246#M708547</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;there is also a variant with a defaultvalue. You can use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;if(isnull(applymap('mapname',expr,null())),1,2) as x&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2011 08:09:23 GMT</pubDate>
    <dc:creator>s_uhlig</dc:creator>
    <dc:date>2011-09-21T08:09:23Z</dc:date>
    <item>
      <title>Using applymap as a conditional in IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-applymap-as-a-conditional-in-IF-statement/m-p/277245#M708546</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 want to use a construction where the execution within an IF statement is determined wheter an APPLYMAP succeeds in finding a value. My script would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Applymap(a,b), x=1, x=2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the applymap will always give a value. Either the value which is found using the APPLYMAP or the the value b. Is there a way to use the APPLYMAP statement as a boolean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 08:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-applymap-as-a-conditional-in-IF-statement/m-p/277245#M708546</guid>
      <dc:creator />
      <dc:date>2011-09-21T08:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using applymap as a conditional in IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-applymap-as-a-conditional-in-IF-statement/m-p/277246#M708547</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;there is also a variant with a defaultvalue. You can use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;if(isnull(applymap('mapname',expr,null())),1,2) as x&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 08:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-applymap-as-a-conditional-in-IF-statement/m-p/277246#M708547</guid>
      <dc:creator>s_uhlig</dc:creator>
      <dc:date>2011-09-21T08:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using applymap as a conditional in IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-applymap-as-a-conditional-in-IF-statement/m-p/277247#M708548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sven works like a charm! Except the values for 1 and 2 need to be swapped &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, 21 Sep 2011 09:44:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-applymap-as-a-conditional-in-IF-statement/m-p/277247#M708548</guid>
      <dc:creator />
      <dc:date>2011-09-21T09:44:42Z</dc:date>
    </item>
  </channel>
</rss>

