<?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 IF / OR statements in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406118#M1150908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As mentioned in an earlier email, this generates zero results. None of the desired values are loaded.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Apr 2013 16:50:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-26T16:50:19Z</dc:date>
    <item>
      <title>Using IF / OR statements in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406113#M1150903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need ro filter out some information in the load script in QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the IF statement has worked well for me when thee is just one value that I want to load; for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Has Active CDs]&lt;/SPAN&gt;='Y',&lt;SPAN style="color: #800000;"&gt;[Has Active CDs]&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Has Active CDs-2770]&lt;/SPAN&gt;,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Loads just the records where that column has a value of "Y"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;But how do I do it if I want to load three different values for a given column? for example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Bank Status]&lt;/SPAN&gt;='Active',&lt;SPAN style="color: #800000;"&gt;[Bank Status]&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Bank Status-2770]&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;works fine to load the value "Active", but how would I load three values, Active, Failed and Merged?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;On a related note, I have another column where I want to load the column but I do not want to load any data at all. How would I do that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Steve&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406113#M1150903</guid>
      <dc:creator />
      <dc:date>2013-04-26T16:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF / OR statements in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406114#M1150904</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;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 19.09090805053711px; font-family: Arial; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 19.09090805053711px; background-color: #ffffff;"&gt;(Match(&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 19.09090805053711px; font-family: Arial; color: #800000;"&gt;[Bank Status],&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 19.09090805053711px; background-color: #ffffff;"&gt;'Active','&lt;SPAN style="color: #737373; font-family: Arial; font-size: 16.363636016845703px; background-color: #ffffff;"&gt;Failed&lt;/SPAN&gt;','&lt;SPAN style="color: #737373; font-family: Arial; font-size: 16.363636016845703px; background-color: #ffffff;"&gt;Merged&lt;/SPAN&gt;'),&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 19.09090805053711px; font-family: Arial; color: #800000;"&gt;[Bank Status]&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 19.09090805053711px; background-color: #ffffff;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 19.09090805053711px; font-family: Arial; color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 19.09090805053711px; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 19.09090805053711px; font-family: Arial; color: #800000;"&gt;[Bank Status-2770]&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 19.09090805053711px; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406114#M1150904</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-04-26T16:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF / OR statements in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406115#M1150905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try using..&lt;/P&gt;&lt;P&gt;if(WildMatch([Bank Status],'Active','Failed','Merged'),[Bank Status]) AS [Bank Status-2770]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406115#M1150905</guid>
      <dc:creator>vivek_niti</dc:creator>
      <dc:date>2013-04-26T16:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF / OR statements in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406116#M1150906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are two ways to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(wildmatch([Bank Status],'Active','Failed','Merged'),[Bank Status]) as [Bank Status -2770]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use Match() function but the match function is Case Sensitive. and Wildmatch() will not case sensitive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second, &lt;/P&gt;&lt;P&gt;if([Bank Status] = 'Active' or [Bank Status] ='Failed' or [Bank Status] = 'Merged', [Bank Status])&amp;nbsp; as [Bank Status -2770]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406116#M1150906</guid>
      <dc:creator>nilesh_gangurde</dc:creator>
      <dc:date>2013-04-26T16:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF / OR statements in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406117#M1150907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your first option did not load any results at all for me. Please note I did make one change: if(wildmatch(&lt;A href="Bank Status"&gt;&lt;/A&gt;='Active','Failed','Merged'),[Bank Status]) as &lt;A href="Bank Status-2770"&gt;&lt;/A&gt;,  I added the “=” sign. I got an error without it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second option generates the following error when I try to reload the script:&lt;/P&gt;&lt;P&gt;Error in expression:&lt;/P&gt;&lt;P&gt;')' expected&lt;/P&gt;&lt;P&gt;LOAD &lt;A href="Bank ID"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Bank Name"&gt;&lt;/A&gt; as &lt;A href="Bank Name-2770"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     if(&lt;A href="Bank Status"&gt;&lt;/A&gt;='Active'or[Bank Status]='Failed'or[Bank Status]='Merged',[Bank Status]) as &lt;A href="Bank Status-2770"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Network Institution Type"&gt;&lt;/A&gt; as &lt;A href="Network Institution Type-2770"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     Territory as &lt;A href="https://community.qlik.com/Territory-2770"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     State as &lt;A href="https://community.qlik.com/State-2770"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Lace Rating"&gt;&lt;/A&gt; as &lt;A href="Lace Rating-2770"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Latest Maturity Date"&gt;&lt;/A&gt; as &lt;A href="Latest Maturity Date-2770"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     IF(&lt;A href="Has Active CDs"&gt;&lt;/A&gt;='Y',[Has Active CDs]) as &lt;A href="Has Active CDs-2770"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Accounting Preference"&gt;&lt;/A&gt; as &lt;A href="Accounting Preference-2770"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="GL Status"&gt;&lt;/A&gt; as &lt;A href="GL Status-2770"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;A href="GL Compliance Report (2770).xlsx"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is REPORT_2770)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So thanks for the reply but I am still stuck.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406117#M1150907</guid>
      <dc:creator />
      <dc:date>2013-04-26T16:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF / OR statements in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406118#M1150908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As mentioned in an earlier email, this generates zero results. None of the desired values are loaded.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406118#M1150908</guid>
      <dc:creator />
      <dc:date>2013-04-26T16:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF / OR statements in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406119#M1150909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This appears to need an “=” sign before it will be accepted and when reloaded, this approach does not load any of the desired values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406119#M1150909</guid>
      <dc:creator />
      <dc:date>2013-04-26T16:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF / OR statements in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406120#M1150910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The code works fine...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the below example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BankStatus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Active&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Failed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Merged&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Deactive&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Demerged&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab2:&lt;/P&gt;&lt;P&gt;LOAD *,&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(WildMatch(BankStatus,'Active','Failed','Merged'),BankStatus) AS [New Status]&lt;/P&gt;&lt;P&gt;RESIDENT tab1;&lt;/P&gt;&lt;P&gt;DROP TABLE tab1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 17:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406120#M1150910</guid>
      <dc:creator>vivek_niti</dc:creator>
      <dc:date>2013-04-26T17:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF / OR statements in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406121#M1150911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Boy do I feel Stupid…I found my error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me reiterate…MY error. You all were correct. I just can’t type it seems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So than you all for you help and your perseverance in dealing with an idiot newbie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards to all,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 18:13:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406121#M1150911</guid>
      <dc:creator />
      <dc:date>2013-04-26T18:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF / OR statements in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406122#M1150912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Request you to please mark the post as helpful ans or correct ans.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 18:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-OR-statements-in-the-script/m-p/406122#M1150912</guid>
      <dc:creator>nilesh_gangurde</dc:creator>
      <dc:date>2013-04-26T18:29:37Z</dc:date>
    </item>
  </channel>
</rss>

