<?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: Flag field, NOT MATCH not functioning properly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404523#M816980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestions, Andrew, Clever and Sasidhar. I tried them all but unfortunately its still not returning the correct values. Namely, values other than 0794/0795 are still returning as true (i.e., 1's) rather than false &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Aug 2017 13:00:01 GMT</pubDate>
    <dc:creator>jchambers123</dc:creator>
    <dc:date>2017-08-30T13:00:01Z</dc:date>
    <item>
      <title>Flag field, NOT MATCH not functioning properly</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404517#M816974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a flag field, but am getting some unexpected results. The field, which I'll call 'FieldX', has values from 1 to 1000. I want to flag 2 of those values in particular (0794 and 0795). That is, I want the flag field to indicate '1' if the values are 0794 or 0795, and '0' otherwise. The script I wrote is below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate Temp:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;if(Not Match(FieldX,0794,0795),1,0) AS FLAG1,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Resident Table1; Drop Table1&lt;/P&gt;&lt;P&gt;Rename Table Temp to Table 2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that its returning 0's for the values it is supposed to (i.e., 0794 and 0795) but also many others it shouldn't (e.g., 267, 9443). I tried enclosing the values in apostrophes to see if that made any difference, and it didn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what I've done wrong? Or suggested corrections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Also, I'm wondering if part of the issue is a numeric vs. string data difference and perhaps the 0 prefixes for 0-999 values may be creating problems)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404517#M816974</guid>
      <dc:creator>jchambers123</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Flag field, NOT MATCH not functioning properly</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404518#M816975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&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(Not Match(Text(FieldX), '0794', '0795'),1,0) as FLAG1,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 19:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404518#M816975</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-29T19:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Flag field, NOT MATCH not functioning properly</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404519#M816976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using numbers instead of strings&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Load *,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;if(Not Match(FieldX+0,794,795),1,0) AS FLAG1,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 19:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404519#M816976</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2017-08-29T19:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Flag field, NOT MATCH not functioning properly</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404520#M816977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Sunny,&amp;nbsp; but I tried adding the text function as you suggested and its still returning incorrect results-- in fact, now 0794/0795 are returning 0's instead of 1's (they should be 1's), strangely enough.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 19:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404520#M816977</guid>
      <dc:creator>jchambers123</dc:creator>
      <dc:date>2017-08-29T19:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Flag field, NOT MATCH not functioning properly</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404521#M816978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;Maybe:&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;sign(Match(num(FieldX),794,795)) &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;AS FLAG1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Andrew&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 20:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404521#M816978</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-08-29T20:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Flag field, NOT MATCH not functioning properly</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404522#M816979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Not Match(Num(FieldX),794,795),1,0) AS FLAG1,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 20:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404522#M816979</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2017-08-29T20:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Flag field, NOT MATCH not functioning properly</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404523#M816980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestions, Andrew, Clever and Sasidhar. I tried them all but unfortunately its still not returning the correct values. Namely, values other than 0794/0795 are still returning as true (i.e., 1's) rather than false &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 13:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404523#M816980</guid>
      <dc:creator>jchambers123</dc:creator>
      <dc:date>2017-08-30T13:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Flag field, NOT MATCH not functioning properly</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404524#M816981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be reverse the condition&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 28.6924px;"&gt;if(Match(Num(FieldX),794,795),1,0) AS FLAG1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 28.6924px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 13:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404524#M816981</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2017-08-30T13:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Flag field, NOT MATCH not functioning properly</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404525#M816982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasidhar-- just tried that. But no luck-- same problem. Thanks though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 13:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404525#M816982</guid>
      <dc:creator>jchambers123</dc:creator>
      <dc:date>2017-08-30T13:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Flag field, NOT MATCH not functioning properly</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404526#M816986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be share some real values from your source.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 13:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404526#M816986</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-30T13:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Flag field, NOT MATCH not functioning properly</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404527#M816987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to look at?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 13:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404527#M816987</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-30T13:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Flag field, NOT MATCH not functioning properly</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404528#M816988</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&gt;If(Not &lt;SPAN style="color: #ff0000;"&gt;Wild&lt;/SPAN&gt;Match(FieldX, '&lt;SPAN style="color: #ff0000;"&gt;*&lt;/SPAN&gt;794&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;*&lt;/STRONG&gt;', '&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;*&lt;/STRONG&gt;795&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;*&lt;/STRONG&gt;'), 1, 0) as FLAG1,&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 13:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404528#M816988</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-30T13:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Flag field, NOT MATCH not functioning properly</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404529#M816989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all. I may have discovered the source of the problem. The field in question had been linked to a dimensions table that had some out-of-date values (the values which the flags had not been picking up). When I decoupled the field from that table, those values disappeared and the flags now function properly. Not sure why or how it had that effect, but at least that's my guess... In any event, I appreciate all of you weighing in. Best, -John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 14:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-field-NOT-MATCH-not-functioning-properly/m-p/1404529#M816989</guid>
      <dc:creator>jchambers123</dc:creator>
      <dc:date>2017-08-30T14:43:09Z</dc:date>
    </item>
  </channel>
</rss>

