<?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: If nested three conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-nested-three-conditions/m-p/426625#M695429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;if(&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; isnull(a) and isnull(b) and not isnull(c), &lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Z',&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not isnull(a) and isnull(b) and isnull(c), &lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Y'&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 May 2013 21:08:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-05-30T21:08:46Z</dc:date>
    <item>
      <title>If nested three conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-nested-three-conditions/m-p/426624#M695428</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;I need create a dimension based on three conditions, I mean:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isnull(a) and isnull(b) and (not isnull(c), 'Z',&lt;/P&gt;&lt;P&gt;if((not isnull(a) and isnull(b) and isnull(c), 'Y')) as Dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This for seven cases. Always the same three fields in the conditions, always if is null or not null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That code doesn't work in the script in Qlikview, neither:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isnull(a), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(isnull(b), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((not isnull(c)),'Z',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I do that dimension in Qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 20:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-nested-three-conditions/m-p/426624#M695428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-30T20:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: If nested three conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-nested-three-conditions/m-p/426625#M695429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;if(&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; isnull(a) and isnull(b) and not isnull(c), &lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Z',&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not isnull(a) and isnull(b) and isnull(c), &lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Y'&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 21:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-nested-three-conditions/m-p/426625#M695429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-30T21:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: If nested three conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-nested-three-conditions/m-p/426626#M695430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Romina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there are some issue with your If statement&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Romina Villa wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need create a dimension based on three conditions, I mean:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1&gt;if(isnull(a) and isnull(b) and &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;not isnull(c), 'Z',&lt;/H1&gt;&lt;H1&gt;if(&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;not isnull(a) and isnull(b) and isnull(c), 'Y')) as Dimension&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So can you try below one and let me know:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(IsNull(a) and IsNull(b) and Not IsNull(c),'Z',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Not IsNull(a) and IsNull(b) and IsNull(c),'Y')) as Dimension;&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;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 01:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-nested-three-conditions/m-p/426626#M695430</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-05-31T01:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: If nested three conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-nested-three-conditions/m-p/426627#M695431</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;That solutions doesn't work for me.&lt;/P&gt;&lt;P&gt; I've tried that what you say, Sokkorn, but that returns only the last value that I inserted in the code.&lt;/P&gt;&lt;P&gt;That's why I tried later with the parenthesis before nulls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 12:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-nested-three-conditions/m-p/426627#M695431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-31T12:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: If nested three conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-nested-three-conditions/m-p/426628#M695432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Try this&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;if(match(a,'0') and match(b,'0') and match(c,'0'), 'Z','Y')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 12:49:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-nested-three-conditions/m-p/426628#M695432</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-05-31T12:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: If nested three conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-nested-three-conditions/m-p/426629#M695433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IsNullMap:&lt;/P&gt;&lt;P&gt;mapping load * inline [&lt;/P&gt;&lt;P&gt;ABC, Letter&lt;/P&gt;&lt;P&gt;000,S&lt;/P&gt;&lt;P&gt;001,P&lt;/P&gt;&lt;P&gt;010,Q&lt;/P&gt;&lt;P&gt;011,Y&lt;/P&gt;&lt;P&gt;100,R&lt;/P&gt;&lt;P&gt;101,X&lt;/P&gt;&lt;P&gt;110,Z&lt;/P&gt;&lt;P&gt;111,T&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load A,B,C, applymap('IsNullMap', -isnull(A)&amp;amp;-isnull(B)&amp;amp;-isnull(C)) as Dimension&lt;/P&gt;&lt;P&gt;from &lt;EM&gt;...somewhere...&lt;/EM&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 14:01:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-nested-three-conditions/m-p/426629#M695433</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-31T14:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: If nested three conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-nested-three-conditions/m-p/426630#M695434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 12:51:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-nested-three-conditions/m-p/426630#M695434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-12T12:51:34Z</dc:date>
    </item>
  </channel>
</rss>

