<?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: Null Value with Match/WildMatch and Like in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004099#M341141</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right. Even MS SQL behaves the same with NOT IN or Not Equals to when I use in Where Clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ISNULL(AP.SiteCode, 'NULL') &amp;lt;&amp;gt; 'NZB001'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jan 2018 11:21:33 GMT</pubDate>
    <dc:creator>narband2778</dc:creator>
    <dc:date>2018-01-19T11:21:33Z</dc:date>
    <item>
      <title>Null Value with Match/WildMatch and Like</title>
      <link>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004091#M341133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to understand if this is a bug or if this is an expected behavior. Let's look at the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Match(Value, 50) or Len(Trim(Value)) = 0, 1, 0) as Flag1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(not Match(Value, 60), 1, 0) as Flag2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(not Value like 60, 1, 0) as Flag3,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(not RangeSum(Match(Value, 60)), 1, 0) as Flag4;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Dim,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Len(Trim(Value)) &amp;gt; 0, Value) as Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim, Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, 50&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, 60&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG __jive_id="102359" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102359_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would expect that all the flags should give me the same value as I am just writing the same thing in many different ways (60 should be 0 and 50 and null should be flagged as 1). But Flag2 doesn't really behave like that. For some reason Match puts 0 into the null bucket as well. Is this a usual behavior or is this a bug????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used to prefer using Match/WildMatch functions over using like function, but it seems that like is doing what I intended to do with the Match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did find a work around suggested by &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌ using the RangeSum() function around the match function. But as I mentioned, I am just trying to understand Match/WildMatch behaivor here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for all the responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sunny Talwar Adding the sample qvw with this post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 01:20:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004091#M341133</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-19T01:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Null Value with Match/WildMatch and Like</title>
      <link>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004092#M341134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Not sure. But, I think it is based on the &lt;STRONG&gt;Null Value.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;not Match(Value, 60) &lt;/STRONG&gt;value will return the '-' Value.&amp;nbsp; Not '0' or '-1'.&lt;/P&gt;&lt;P&gt;So, it will go to the false expression. I checked it in Straight table (with Show All Value, and uncheck the Suppress Zero Values, it gives extra row for (Dim1).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102364_Capture.JPG" style="height: 125px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Settu P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 02:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004092#M341134</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-10-19T02:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Null Value with Match/WildMatch and Like</title>
      <link>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004093#M341135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny - I don't think the behaviour of Flag2 is a bug.&lt;/P&gt;&lt;P&gt;Match(Value, 60) will return a null if Value is null, and any comparison involving a null value will return false; and the &lt;EM&gt;not&lt;/EM&gt; is a part of the comparison that returns false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: &lt;EM&gt;=If(Not Null(), 1, 0)&lt;/EM&gt; returns 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 05:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004093#M341135</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-10-19T05:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Null Value with Match/WildMatch and Like</title>
      <link>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004094#M341136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So then looking at Flag 3 -&amp;gt; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; If(not Value like 60, 1, 0) as Flag3,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is this able to consider null and give it the right flag?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 10:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004094#M341136</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-19T10:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Null Value with Match/WildMatch and Like</title>
      <link>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004095#M341137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(((not Value like 60) Or IsNull(Value)), 1, 0) as Flag3,&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 11:37:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004095#M341137</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-10-19T11:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Null Value with Match/WildMatch and Like</title>
      <link>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004096#M341138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" href="https://community.qlik.com/people/jontydkpi"&gt;jonathan dienst&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work. I am just trying to understand why &lt;STRONG&gt;not Match &lt;/STRONG&gt;ignores null, but &lt;STRONG&gt;not Field like &lt;/STRONG&gt;is able to detect it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 12:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004096#M341138</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-19T12:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Null Value with Match/WildMatch and Like</title>
      <link>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004097#M341139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the way I see it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Field like ..." is a comparison already, which will return true or false and will never return Null() -- so Not can invert its state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Match(Value, ...)" is not a comparison, so it can return Null() if Value is null. Not Null() always evaluates to false.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 12:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004097#M341139</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-10-19T12:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Null Value with Match/WildMatch and Like</title>
      <link>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004098#M341140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand what you are saying. Actually I was using this in the where statement (&lt;STRONG&gt;Where not Match(FieldName, 'A', 'B','C'&lt;/STRONG&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;);&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;) and found out that not only did A, B, C was removed but also the null value. Since I only wanted to exclude A, B and C which I explicitly use in my match function I was hoping Null would go in.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I guess its better to use like in this case or add IsNull(FieldName) to the where clause.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks guys. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Really appreciate your responses.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Sunny&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 12:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004098#M341140</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-19T12:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Null Value with Match/WildMatch and Like</title>
      <link>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004099#M341141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right. Even MS SQL behaves the same with NOT IN or Not Equals to when I use in Where Clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ISNULL(AP.SiteCode, 'NULL') &amp;lt;&amp;gt; 'NZB001'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2018 11:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004099#M341141</guid>
      <dc:creator>narband2778</dc:creator>
      <dc:date>2018-01-19T11:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Null Value with Match/WildMatch and Like</title>
      <link>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004100#M341142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am trying to exclude below list values from where clause&lt;/P&gt;&lt;P&gt;NOT MATCH([FK_TREATMENT_FUNCTION], '560','610','700','701','702','703','704','705','706','707','708','709', '710','711','712','712','714','715') but this is excluding NULL values as well.&lt;/P&gt;&lt;P&gt;Can you please look into this and let me know, what I am missing. As, I want to include the NULL values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2018 15:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1004100#M341142</guid>
      <dc:creator>narband2778</dc:creator>
      <dc:date>2018-01-19T15:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Null Value with Match/WildMatch and Like</title>
      <link>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1829535#M1214345</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;!!!&lt;/P&gt;&lt;P&gt;I had this issue since long, somehow I was managing using too many individual conditions like A &amp;lt;&amp;gt; 'ABC' and A &amp;lt;&amp;gt; 'BCA' and A &amp;lt;&amp;gt; 'DCA' but the list was growing so I had to somehow make match function work along with inclusion of nulls.&lt;/P&gt;&lt;P&gt;Your post help me to manage it using isnull(fieldname) along with match.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;Digvijay&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 17:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-Value-with-Match-WildMatch-and-Like/m-p/1829535#M1214345</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2021-08-18T17:34:40Z</dc:date>
    </item>
  </channel>
</rss>

