<?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 else condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-else-condition/m-p/1427099#M813384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ansh,&lt;/P&gt;&lt;P&gt;I can only guess what you're looking for but maybe this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetFieldSelections(Status)='Active',Dual('A',1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(GetFieldSelections(Status)='Closed',Dual('B',2),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(GetFieldSelections(Status)='Pending',Dual('C',3)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Sep 2017 09:07:36 GMT</pubDate>
    <dc:creator>effinty2112</dc:creator>
    <dc:date>2017-09-16T09:07:36Z</dc:date>
    <item>
      <title>If else condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-condition/m-p/1427094#M813379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I put something like below condition ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetFieldSelections(Status)='Active','1','A' or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF (GetFieldSelections(Status)='Closed','2','B' or &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF&amp;nbsp; (GetFieldSelections(Status)='Pending','3','C' )))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anything wrong in the above condition ?It doesn't work..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-condition/m-p/1427094#M813379</guid>
      <dc:creator>apthansh</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: If else condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-condition/m-p/1427095#M813380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the above isn't right because you have a true and false condition, but you are not ending your if statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&lt;STRONG&gt;if(GetFieldSelections(Status)='Active',&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="color: #339966;"&gt;'1'&lt;/SPAN&gt;,'A'&lt;/SPAN&gt;&lt;/STRONG&gt; or&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF (GetFieldSelections(Status)='Closed','2','B' or&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF&amp;nbsp; (GetFieldSelections(Status)='Pending','3','C' )))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Green is True, Red is False... it will show you an error after this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 14:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-condition/m-p/1427095#M813380</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-15T14:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: If else condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-condition/m-p/1427096#M813381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to what Sunny already pointed out, there are too many options for some Status values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, If Status = 'Closed' then the result can either be 'A' (because not 'Active') or '2' (because of the next IF). Which will it be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 15:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-condition/m-p/1427096#M813381</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-09-15T15:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: If else condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-condition/m-p/1427097#M813382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you...how can i correct this ?is there a solution ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 16:40:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-condition/m-p/1427097#M813382</guid>
      <dc:creator>apthansh</dc:creator>
      <dc:date>2017-09-15T16:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: If else condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-condition/m-p/1427098#M813383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really, because it isn't clear what value should go with which Status Code. Can you provide a table with two columns with in the rist column all Status codes (and a default entry for all other cases), and in the right column the corresponding expression result values. Then we can fix it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 16:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-condition/m-p/1427098#M813383</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-09-15T16:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: If else condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-condition/m-p/1427099#M813384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ansh,&lt;/P&gt;&lt;P&gt;I can only guess what you're looking for but maybe this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetFieldSelections(Status)='Active',Dual('A',1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(GetFieldSelections(Status)='Closed',Dual('B',2),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(GetFieldSelections(Status)='Pending',Dual('C',3)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2017 09:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-condition/m-p/1427099#M813384</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-09-16T09:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: If else condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-condition/m-p/1427100#M813385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about this if it matches with your requirement also check values after this may be it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if( GetFieldSelections(Status)='Active','1' or GetFieldSelections(Status)='Active','A' or&lt;/P&gt;&lt;P&gt; if( GetFieldSelections(Status)='Closed','2' or GetFieldSelections(Status)='Closed','B' or&lt;/P&gt;&lt;P&gt; IF( GetFieldSelections(Status)='Pending','3' or GetFieldSelections(Status)='Pending','C' )))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2017 09:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-condition/m-p/1427100#M813385</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-09-16T09:19:14Z</dc:date>
    </item>
  </channel>
</rss>

