<?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: Match() Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Match-Function/m-p/71235#M11699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Had similar issues with match and null values&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/187293"&gt;Null Value with Match/WildMatch and Like&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this is any better, but look at result 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;not match(DOCTYPE,'ZRE','ZOFR') as Result,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;not (DOCTYPE Like 'ZRE' or DOCTYPE Like 'ZOFR') as Result2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load * inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DOCTYPE,text&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZRE,a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZOFR,b&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;YOFR,c&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;YOF,d&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZOE,e&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZOF,f&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZMTE,g&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;,h&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2018 12:19:56 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-04-20T12:19:56Z</dc:date>
    <item>
      <title>Match() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Match-Function/m-p/71234#M11698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I'm usign Match() function into a complex script expression to create one new field.&lt;/P&gt;&lt;P&gt;I'm using the following code:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-04-20 14_05_44-Modifica Script [C__Users_denardm1_Desktop_test Locale.qvw].png" class="jive-image image-2" src="/legacyfs/online/200355_2018-04-20 14_05_44-Modifica Script [C__Users_denardm1_Desktop_test Locale.qvw].png" style="font-size: 13.3333px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the result is:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-04-20 14_03_52-QlikView x64 - Copia del rivenditore - [C__Users_denardm1_Desktop_test Locale.qv.png" class="jive-image image-1" src="/legacyfs/online/200354_2018-04-20 14_03_52-QlikView x64 - Copia del rivenditore - [C__Users_denardm1_Desktop_test Locale.qv.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the "h" record DOCTYPE=null() so I &lt;SPAN lang="en"&gt;thought that match() function returns -1 because Null is different from ZRE and ZOFR... but is not....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;How can write the script to have the same result ? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I would like to avoid using an approach with "or isnull(&lt;SPAN lang="en"&gt;DOCTYPE&lt;/SPAN&gt;)" like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15242264157739499 jive_text_macro" jivemacro_uid="_15242264157739499"&gt;&lt;SPAN lang="en"&gt;if(not match(DOCTYPE,'ZRE','ZOFR') or isnull(DOCTYPE),-1,0) as Result&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because, as i wrote, the expression is very complex and i would like to resolve this issue without using "OR" statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 12:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-Function/m-p/71234#M11698</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2018-04-20T12:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Match() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Match-Function/m-p/71235#M11699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Had similar issues with match and null values&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/187293"&gt;Null Value with Match/WildMatch and Like&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this is any better, but look at result 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;not match(DOCTYPE,'ZRE','ZOFR') as Result,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;not (DOCTYPE Like 'ZRE' or DOCTYPE Like 'ZOFR') as Result2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load * inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DOCTYPE,text&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZRE,a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZOFR,b&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;YOFR,c&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;YOF,d&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZOE,e&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZOF,f&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZMTE,g&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;,h&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 12:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-Function/m-p/71235#M11699</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-20T12:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Match() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Match-Function/m-p/71236#M11700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Super Sunny !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 12:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-Function/m-p/71236#M11700</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2018-04-20T12:30:35Z</dc:date>
    </item>
  </channel>
</rss>

