<?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: WHERE NOT with multiple criteria in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/WHERE-NOT-with-multiple-criteria/m-p/2144568#M93125</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/205122"&gt;@heitorcarlosgomes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try to describe in word how your where statement should filter the data you want?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2023 22:35:25 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2023-12-05T22:35:25Z</dc:date>
    <item>
      <title>WHERE NOT with multiple criteria</title>
      <link>https://community.qlik.com/t5/App-Development/WHERE-NOT-with-multiple-criteria/m-p/2144340#M93098</link>
      <description>&lt;P&gt;Hey everyone&lt;/P&gt;
&lt;P&gt;I'm trouble with Where Not&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;WHERE NOT&lt;/P&gt;
&lt;P&gt;(&lt;/P&gt;
&lt;P&gt;(FABRICANTE = 'FACCHINI' or FABRICANTE = 'RANDON')&lt;/P&gt;
&lt;P&gt;or (FAMÍLIA = 'DOLLY' or FAMÍLIA = 'CARGA SECA' or FAMÍLIA = 'CANAVIEIRO')&lt;/P&gt;
&lt;P&gt;or ([REBOQUE/SEMIRREBOQUE] = 'REBOQUE')&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know why my output contains all values that I don't want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I fix?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 12:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WHERE-NOT-with-multiple-criteria/m-p/2144340#M93098</guid>
      <dc:creator>heitorcarlosgomes</dc:creator>
      <dc:date>2023-12-05T12:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE NOT with multiple criteria</title>
      <link>https://community.qlik.com/t5/App-Development/WHERE-NOT-with-multiple-criteria/m-p/2144359#M93101</link>
      <description>&lt;P&gt;what are you trying to do?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using WHER NOT in combination with nested OR statements can be troublesome. Remember that&amp;nbsp; as&amp;nbsp; long one of your FABRICANTE, FAMILIA or REBOQUE criterias is not true for a transaction the data will be included in the output.&lt;/P&gt;
&lt;P&gt;Could it be that you want to do this?&lt;/P&gt;
&lt;P&gt;WHERE NOT&lt;/P&gt;
&lt;P&gt;(&lt;/P&gt;
&lt;P&gt;(FABRICANTE = 'FACCHINI' or FABRICANTE = 'RANDON')&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt; (FAMÍLIA = 'DOLLY' or FAMÍLIA = 'CARGA SECA' or FAMÍLIA = 'CANAVIEIRO')&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt; ([REBOQUE/SEMIRREBOQUE] = 'REBOQUE')&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 13:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WHERE-NOT-with-multiple-criteria/m-p/2144359#M93101</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2023-12-05T13:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE NOT with multiple criteria</title>
      <link>https://community.qlik.com/t5/App-Development/WHERE-NOT-with-multiple-criteria/m-p/2144405#M93107</link>
      <description>&lt;P&gt;Actually, I've written 'and' instead 'or' and I'm still having the same problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 14:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WHERE-NOT-with-multiple-criteria/m-p/2144405#M93107</guid>
      <dc:creator>heitorcarlosgomes</dc:creator>
      <dc:date>2023-12-05T14:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE NOT with multiple criteria</title>
      <link>https://community.qlik.com/t5/App-Development/WHERE-NOT-with-multiple-criteria/m-p/2144408#M93108</link>
      <description>&lt;P&gt;Your solution is not working, unfortunately...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 14:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WHERE-NOT-with-multiple-criteria/m-p/2144408#M93108</guid>
      <dc:creator>heitorcarlosgomes</dc:creator>
      <dc:date>2023-12-05T14:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE NOT with multiple criteria</title>
      <link>https://community.qlik.com/t5/App-Development/WHERE-NOT-with-multiple-criteria/m-p/2144568#M93125</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/205122"&gt;@heitorcarlosgomes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try to describe in word how your where statement should filter the data you want?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 22:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WHERE-NOT-with-multiple-criteria/m-p/2144568#M93125</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2023-12-05T22:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE NOT with multiple criteria</title>
      <link>https://community.qlik.com/t5/App-Development/WHERE-NOT-with-multiple-criteria/m-p/2144586#M93127</link>
      <description>&lt;P&gt;try with not wildmatch()&lt;/P&gt;
&lt;P&gt;try below&lt;/P&gt;
&lt;P&gt;not wildmatch(FABRICANTE,'FACCHINI','RANDON')&lt;/P&gt;
&lt;P&gt;and not wildmatch(FAMÍLIA,'DOLLY','CARGA SECA','CANAVIEIRO')&lt;/P&gt;
&lt;P&gt;and not wildmatch([REBOQUE/SEMIRREBOQUE],'REBOQUE')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;since we are not familiar with your data &amp;amp; output which you are looking for. So, Choose and / or as per your need. also, you can use bracket to club to condition in one group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Prashant Sangle&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 01:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WHERE-NOT-with-multiple-criteria/m-p/2144586#M93127</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2023-12-06T01:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE NOT with multiple criteria</title>
      <link>https://community.qlik.com/t5/App-Development/WHERE-NOT-with-multiple-criteria/m-p/2144596#M93130</link>
      <description>&lt;P&gt;Smaller change done to your query&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;UPPER&lt;/CODE&gt; to make the comparisons case-insensitive.&lt;/LI&gt;
&lt;LI&gt;added checks for NULL values in the columns.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;SELECT *&lt;BR /&gt;FROM YourTable&lt;BR /&gt;WHERE NOT (&lt;BR /&gt;(UPPER(FABRICANTE) = 'FACCHINI' OR UPPER(FABRICANTE) = 'RANDON')&lt;BR /&gt;OR (UPPER(FAMÍLIA) = 'DOLLY' OR UPPER(FAMÍLIA) = 'CARGA SECA' OR UPPER(FAMÍLIA) = 'CANAVIEIRO')&lt;BR /&gt;OR (UPPER([REBOQUE/SEMIRREBOQUE]) = 'REBOQUE')&lt;BR /&gt;)&lt;BR /&gt;AND FABRICANTE IS NOT NULL&lt;BR /&gt;AND FAMÍLIA IS NOT NULL&lt;BR /&gt;AND [REBOQUE/SEMIRREBOQUE] IS NOT NULL;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 03:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WHERE-NOT-with-multiple-criteria/m-p/2144596#M93130</guid>
      <dc:creator>Aasir</dc:creator>
      <dc:date>2023-12-06T03:22:23Z</dc:date>
    </item>
  </channel>
</rss>

