<?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: OR operator issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833313#M293184</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;If you have used the same statement as shown above, then your if statement is not closed properly. It should be&lt;/P&gt;&lt;P&gt;if((match([Primary Currency],'CNH') or match([Secondary Currency],'CNH'),'Americas')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2015 03:54:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-15T03:54:10Z</dc:date>
    <item>
      <title>OR operator issue</title>
      <link>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833312#M293183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In script I have this statement:&lt;/P&gt;&lt;P&gt;if((match([Primary Currency],'CNH') or match([Secondary Currency],'CNH')),'Americas'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Even though the field "Secondary Currency" has a value CNH, this statement is not returning Americas. Why is this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 03:42:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833312#M293183</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2015-04-15T03:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: OR operator issue</title>
      <link>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833313#M293184</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;If you have used the same statement as shown above, then your if statement is not closed properly. It should be&lt;/P&gt;&lt;P&gt;if((match([Primary Currency],'CNH') or match([Secondary Currency],'CNH'),'Americas')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 03:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833313#M293184</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-15T03:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: OR operator issue</title>
      <link>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833314#M293185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/184247"&gt;greeshma.kalathingal&lt;/A&gt;‌ , actually it is closed properly, I just showed you a part of my script. The part which is causing issues is this part:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;if((match([Primary Currency],'CNH') or match([Secondary Currency],'CNH'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 03:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833314#M293185</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2015-04-15T03:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: OR operator issue</title>
      <link>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833315#M293186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works for me&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="83678" alt="2015-04-15 05_34_40-Edit Script [C__Users_Katarzyna_Desktop_160068.qvw_].png" class="jive-image image-1" src="/legacyfs/online/83678_2015-04-15 05_34_40-Edit Script [C__Users_Katarzyna_Desktop_160068.qvw_].png" style="height: 132px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Can you post your full expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try Wildmatch?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 04:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833315#M293186</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-04-15T04:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: OR operator issue</title>
      <link>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833316#M293187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share a sample file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 04:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833316#M293187</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-15T04:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: OR operator issue</title>
      <link>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833317#M293188</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;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Try this,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;IF(match(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Primary Currency]&lt;/SPAN&gt;,'CNH') or match(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Secondary Currency]&lt;/SPAN&gt;,'CNH'),&lt;SPAN style="color: #ff0000;"&gt;'America'&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Instead of yours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;America should be mentioned inside the bracket, so that if statement will show as America. You have wrongly typed outside of the if statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if((match([Primary Currency],'CNH') or match([Secondary Currency],'CNH')),&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;'Americas'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;See below attached example.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 04:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833317#M293188</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-04-15T04:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: OR operator issue</title>
      <link>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833318#M293189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can also try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if((match([Primary Currency],'CNH',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'Americas' if&lt;/SPAN&gt; (match([Secondary Currency],'CNH')),'Americas')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 05:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833318#M293189</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-15T05:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: OR operator issue</title>
      <link>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833319#M293190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if spaces are present in fields &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Primary Currency] or &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Secondary Currency]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check if case mentioned in if statement matches with data present in the fields&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 06:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833319#M293190</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-15T06:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: OR operator issue</title>
      <link>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833320#M293191</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;Few suggestion if you want case sensitive search go with Match()&lt;/P&gt;&lt;P&gt;if non case sensitive search go with Wildmatch&lt;/P&gt;&lt;P&gt;if there is spaces in it use wild character * or trim for removing before or after spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise your expression is fine for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 06:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OR-operator-issue/m-p/833320#M293191</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-04-15T06:46:41Z</dc:date>
    </item>
  </channel>
</rss>

