<?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 if function does not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Else-if-function-does-not-working/m-p/1759677#M719128</link>
    <description>&lt;P&gt;Thank you.. This works well too&lt;/P&gt;</description>
    <pubDate>Mon, 09 Nov 2020 06:38:50 GMT</pubDate>
    <dc:creator>Amelia_96</dc:creator>
    <dc:date>2020-11-09T06:38:50Z</dc:date>
    <item>
      <title>If..Else if function does not working</title>
      <link>https://community.qlik.com/t5/QlikView/If-Else-if-function-does-not-working/m-p/1759668#M719124</link>
      <description>&lt;P&gt;Hi, i am very new to Qlik View and i'm trying to use if..else if function to create new field. but it seems to have an error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone tell me what's wrong with this code?&lt;/P&gt;&lt;P&gt;AA2:&lt;BR /&gt;Load *, RowNo() as NO,&lt;BR /&gt;(If strwarncd='M014' then 'Income';&lt;BR /&gt;else if strwarncd = 'M003' then 'LIAM';&lt;BR /&gt;else if strwarncd = 'M015' then 'Financial';&lt;BR /&gt;else if strwarncd = 'M030' then 'Declaration';&lt;BR /&gt;else if strwarncd in ('auto09', 'M001') then 'Above NML';&lt;BR /&gt;else if strwarncd = 'M002' then 'Occupation';&lt;BR /&gt;else if strwarncd = 'eBMI' then 'BMI';&lt;BR /&gt;else if strwarncd = 'Err06' then 'Nationality';&lt;BR /&gt;else if not isnull(strwarncd) then 'Others';&lt;BR /&gt;END IF) as Category;&lt;BR /&gt;resident table AA;&lt;/P&gt;&lt;P&gt;Thank you in advance!!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Else-if-function-does-not-working/m-p/1759668#M719124</guid>
      <dc:creator>Amelia_96</dc:creator>
      <dc:date>2020-11-20T18:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: If..Else if function does not working</title>
      <link>https://community.qlik.com/t5/QlikView/If-Else-if-function-does-not-working/m-p/1759670#M719125</link>
      <description>Dear Expert,&lt;BR /&gt;Try This one,&lt;BR /&gt;Load *, RowNo() as NO,&lt;BR /&gt;If(strwarncd='M014','Income',&lt;BR /&gt;if(strwarncd = 'M003','LIAM',&lt;BR /&gt;if(strwarncd = 'M015','Financial',&lt;BR /&gt;if(strwarncd = 'M030','Declaration',&lt;BR /&gt;if(strwarncd = wildmatch('auto09', 'M001'),'Above NML',&lt;BR /&gt;if(strwarncd = 'M002','Occupation',&lt;BR /&gt;if(strwarncd = 'eBMI','BMI',&lt;BR /&gt;if(strwarncd = 'Err06','Nationality','Others') Category&lt;BR /&gt;resident table AA;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Nov 2020 05:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Else-if-function-does-not-working/m-p/1759670#M719125</guid>
      <dc:creator>manmadha</dc:creator>
      <dc:date>2020-11-09T05:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: If..Else if function does not working</title>
      <link>https://community.qlik.com/t5/QlikView/If-Else-if-function-does-not-working/m-p/1759673#M719126</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/128999"&gt;@Amelia_96&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try This one,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Load *, RowNo() as NO,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If(strwarncd='M014','Income',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(strwarncd = 'M003','LIAM',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(strwarncd = 'M015','Financial',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(strwarncd = 'M030','Declaration',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(match(strwarncd ,'auto09', 'M001'),'Above NML',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(strwarncd = 'M002','Occupation',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(strwarncd = 'eBMI','BMI',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(strwarncd = 'Err06','Nationality','Others')))))))) as Category&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;resident table AA;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note that, then is not required here. Need to close the brackets correctly. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Or&amp;nbsp;&lt;BR /&gt;Try with Pick &amp;amp; Match function combination, its easy way, like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sample:&lt;BR /&gt;Pick(Match(strwarncd,'M014','M003')+1, 'Others',&amp;nbsp;'Income', 'LAM') as Category&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 06:10:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Else-if-function-does-not-working/m-p/1759673#M719126</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-11-09T06:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: If..Else if function does not working</title>
      <link>https://community.qlik.com/t5/QlikView/If-Else-if-function-does-not-working/m-p/1759676#M719127</link>
      <description>&lt;P&gt;Thank you. This works well&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 06:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Else-if-function-does-not-working/m-p/1759676#M719127</guid>
      <dc:creator>Amelia_96</dc:creator>
      <dc:date>2020-11-09T06:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: If..Else if function does not working</title>
      <link>https://community.qlik.com/t5/QlikView/If-Else-if-function-does-not-working/m-p/1759677#M719128</link>
      <description>&lt;P&gt;Thank you.. This works well too&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 06:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Else-if-function-does-not-working/m-p/1759677#M719128</guid>
      <dc:creator>Amelia_96</dc:creator>
      <dc:date>2020-11-09T06:38:50Z</dc:date>
    </item>
  </channel>
</rss>

