<?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: And condition in where clause not working ? confused , need help. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/And-condition-in-where-clause-not-working-confused-need-help/m-p/1936325#M77150</link>
    <description>&lt;P&gt;Hi MarcoWedel ,&lt;/P&gt;
&lt;P&gt;You quoted&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which is equivalent to&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Where Len(amount)&amp;gt;0 or valuation&amp;lt;&amp;gt;'&amp;gt;20'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;"&lt;/P&gt;
&lt;P&gt;Why cant it be&amp;nbsp; Where Len(amount)&amp;gt;0 &lt;FONT size="5" color="#0000FF"&gt;&lt;STRONG&gt;and&lt;/STRONG&gt;&lt;/FONT&gt; valuation&amp;lt;&amp;gt;'&amp;gt;20' . I am asking this because i wanted to filter records &lt;FONT size="5"&gt;only&amp;nbsp;&lt;/FONT&gt; when &lt;FONT size="5"&gt;both conditions&lt;/FONT&gt; are met .&lt;/P&gt;
&lt;P&gt;But using&amp;nbsp; &amp;nbsp;Len(amount)&amp;gt;0 &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;or&lt;/FONT&gt; &lt;/STRONG&gt;valuation&amp;lt;&amp;gt;'&amp;gt;20' , means &lt;FONT size="5"&gt;if any of these&lt;/FONT&gt; two conditions are met then filter records .&lt;/P&gt;
&lt;P&gt;Am i wrong in my understanding ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2022 05:08:51 GMT</pubDate>
    <dc:creator>prahlad_infy</dc:creator>
    <dc:date>2022-05-27T05:08:51Z</dc:date>
    <item>
      <title>And condition in where clause not working ? confused , need help.</title>
      <link>https://community.qlik.com/t5/App-Development/And-condition-in-where-clause-not-working-confused-need-help/m-p/1935235#M77041</link>
      <description>&lt;P&gt;Hello Experts ,&lt;/P&gt;
&lt;P&gt;I need to filter data based on two field values&amp;nbsp; (&lt;STRONG&gt;valuation1,amount1) .&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if amount1 is blank along with valuation1 = '&amp;gt;20' then filter out those records .&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;TABLE width="425px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;&lt;STRONG&gt;preferred_parterners1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;&lt;STRONG&gt;subentity1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;&lt;STRONG&gt;valuation1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="102.375px"&gt;&lt;STRONG&gt;amount1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;conrad&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;CONRAD CORP A&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;&amp;gt;20&lt;/TD&gt;
&lt;TD width="102.375px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;conrad&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;CONRAD CORP B&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;3m&lt;/TD&gt;
&lt;TD width="102.375px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;conrad&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;CONRAD CORP C&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;4m&lt;/TD&gt;
&lt;TD width="102.375px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;conrad&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;CONRAD CORP D&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;5-8m&lt;/TD&gt;
&lt;TD width="102.375px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;conrad&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;CONRAD CORP E&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;1000m&lt;/TD&gt;
&lt;TD width="102.375px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;minesoft corp&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;lily bay&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;&amp;gt;20&lt;/TD&gt;
&lt;TD width="102.375px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;minesoft corp&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;lily bay&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;1m-2m&lt;/TD&gt;
&lt;TD width="102.375px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;minesoft corp&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;lily bay&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;2-3b&lt;/TD&gt;
&lt;TD width="102.375px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;minesoft corp&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;lo do vita&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;&amp;gt;20&lt;/TD&gt;
&lt;TD width="102.375px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;minesoft corp&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;lo do vita&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;200&lt;/TD&gt;
&lt;TD width="102.375px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;minesoft corp&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;pansy crest&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;&amp;gt;20&lt;/TD&gt;
&lt;TD width="102.375px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;minesoft corp&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;primrose turf&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;&amp;gt;20&lt;/TD&gt;
&lt;TD width="102.375px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;minesoft corp&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;primrose turf&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;2m-7m&lt;/TD&gt;
&lt;TD width="102.375px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;minesoft corp&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;primrose turf&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;7500&lt;/TD&gt;
&lt;TD width="102.375px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;minesoft corp&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;primrose turf&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;40500&lt;/TD&gt;
&lt;TD width="102.375px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;minesoft corp&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;pansy crest&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;&amp;gt;20&lt;/TD&gt;
&lt;TD width="102.375px"&gt;10262.000000&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;Minsk&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;rock valley&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;&amp;gt;20&lt;/TD&gt;
&lt;TD width="102.375px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="159.109px"&gt;NA&lt;/TD&gt;
&lt;TD width="82.0938px"&gt;luftansa&lt;/TD&gt;
&lt;TD width="81.5312px"&gt;&amp;gt;20&lt;/TD&gt;
&lt;TD width="102.375px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;But below code is not working&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;op:&lt;BR /&gt;LOAD * &lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Where (len(amount)&amp;gt;0) and not Match(valuation,'&amp;gt;20') ;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;&lt;BR /&gt;preferred_parterners, subentity, valuation, amount&lt;BR /&gt;conrad, CONRAD CORP A, &amp;gt;20, &lt;BR /&gt;conrad, CONRAD CORP B, 3m, &lt;BR /&gt;conrad, CONRAD CORP C, 4m, &lt;BR /&gt;conrad, CONRAD CORP D, 5-8m, &lt;BR /&gt;conrad, CONRAD CORP E, 1000m, &lt;BR /&gt;NA, luftansa, &amp;gt;20, &lt;BR /&gt;minesoft corp, primrose turf, 40500, &lt;BR /&gt;minesoft corp, primrose turf, 7500, &lt;BR /&gt;minesoft corp, primrose turf, &amp;gt;20, &lt;BR /&gt;minesoft corp, primrose turf, 2m-7m, &lt;BR /&gt;minesoft corp, lily bay, &amp;gt;20, &lt;BR /&gt;minesoft corp, lily bay, 1m-2m, &lt;BR /&gt;minesoft corp, lily bay, 2-3b, &lt;BR /&gt;minesoft corp, pansy crest, &amp;gt;20, &lt;BR /&gt;minesoft corp, pansy crest, &amp;gt;20, 10262.000000&lt;BR /&gt;minesoft corp, lo do vita, &amp;gt;20, &lt;BR /&gt;minesoft corp, lo do vita, 200, &lt;BR /&gt;Minsk, rock valley, &amp;gt;20, &lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Thank You&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 06:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/And-condition-in-where-clause-not-working-confused-need-help/m-p/1935235#M77041</guid>
      <dc:creator>prahlad_infy</dc:creator>
      <dc:date>2022-05-25T06:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: And condition in where clause not working ? confused , need help.</title>
      <link>https://community.qlik.com/t5/App-Development/And-condition-in-where-clause-not-working-confused-need-help/m-p/1935239#M77044</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;may be try&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Where isnull amount and not Match(valuation,'&amp;gt;20')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;or&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Where amount='' and not Match(valuation,'&amp;gt;20')&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 07:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/And-condition-in-where-clause-not-working-confused-need-help/m-p/1935239#M77044</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2022-05-25T07:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: And condition in where clause not working ? confused , need help.</title>
      <link>https://community.qlik.com/t5/App-Development/And-condition-in-where-clause-not-working-confused-need-help/m-p/1935765#M77104</link>
      <description>&lt;P&gt;"if amount1 is blank along with valuation1 = '&amp;gt;20' then filter out those records ."&lt;/P&gt;
&lt;P&gt;translates to&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Where not (Len(amount)=0 and valuation='&amp;gt;20')&lt;/LI-CODE&gt;
&lt;P&gt;which is equivalent to&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Where Len(amount)&amp;gt;0 or valuation&amp;lt;&amp;gt;'&amp;gt;20'&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 25 May 2022 20:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/And-condition-in-where-clause-not-working-confused-need-help/m-p/1935765#M77104</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-05-25T20:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: And condition in where clause not working ? confused , need help.</title>
      <link>https://community.qlik.com/t5/App-Development/And-condition-in-where-clause-not-working-confused-need-help/m-p/1936325#M77150</link>
      <description>&lt;P&gt;Hi MarcoWedel ,&lt;/P&gt;
&lt;P&gt;You quoted&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which is equivalent to&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Where Len(amount)&amp;gt;0 or valuation&amp;lt;&amp;gt;'&amp;gt;20'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;"&lt;/P&gt;
&lt;P&gt;Why cant it be&amp;nbsp; Where Len(amount)&amp;gt;0 &lt;FONT size="5" color="#0000FF"&gt;&lt;STRONG&gt;and&lt;/STRONG&gt;&lt;/FONT&gt; valuation&amp;lt;&amp;gt;'&amp;gt;20' . I am asking this because i wanted to filter records &lt;FONT size="5"&gt;only&amp;nbsp;&lt;/FONT&gt; when &lt;FONT size="5"&gt;both conditions&lt;/FONT&gt; are met .&lt;/P&gt;
&lt;P&gt;But using&amp;nbsp; &amp;nbsp;Len(amount)&amp;gt;0 &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;or&lt;/FONT&gt; &lt;/STRONG&gt;valuation&amp;lt;&amp;gt;'&amp;gt;20' , means &lt;FONT size="5"&gt;if any of these&lt;/FONT&gt; two conditions are met then filter records .&lt;/P&gt;
&lt;P&gt;Am i wrong in my understanding ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 05:08:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/And-condition-in-where-clause-not-working-confused-need-help/m-p/1936325#M77150</guid>
      <dc:creator>prahlad_infy</dc:creator>
      <dc:date>2022-05-27T05:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: And condition in where clause not working ? confused , need help.</title>
      <link>https://community.qlik.com/t5/App-Development/And-condition-in-where-clause-not-working-confused-need-help/m-p/1936351#M77153</link>
      <description>&lt;P&gt;You may try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Where if(len(trim(amount1)) = 0 and valuation1 = '&amp;gt;20', false(), true());&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 06:47:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/And-condition-in-where-clause-not-working-confused-need-help/m-p/1936351#M77153</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-05-27T06:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: And condition in where clause not working ? confused , need help.</title>
      <link>https://community.qlik.com/t5/App-Development/And-condition-in-where-clause-not-working-confused-need-help/m-p/1936796#M77213</link>
      <description>&lt;P&gt;Is this your expected result?:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcoWedel_0-1653685294071.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80528i189D4ECF583B01C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="MarcoWedel_0-1653685294071.png" alt="MarcoWedel_0-1653685294071.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;using this script:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;op:
LOAD *
Where Len(amount)&amp;gt;0 or valuation&amp;lt;&amp;gt;'&amp;gt;20';
LOAD * INLINE [
preferred_parterners, subentity, valuation, amount
conrad, CONRAD CORP A, &amp;gt;20,
conrad, CONRAD CORP B, 3m,
conrad, CONRAD CORP C, 4m,
conrad, CONRAD CORP D, 5-8m,
conrad, CONRAD CORP E, 1000m,
NA, luftansa, &amp;gt;20,
minesoft corp, primrose turf, 40500,
minesoft corp, primrose turf, 7500,
minesoft corp, primrose turf, &amp;gt;20,
minesoft corp, primrose turf, 2m-7m,
minesoft corp, lily bay, &amp;gt;20,
minesoft corp, lily bay, 1m-2m,
minesoft corp, lily bay, 2-3b,
minesoft corp, pansy crest, &amp;gt;20,
minesoft corp, pansy crest, &amp;gt;20, 10262.000000
minesoft corp, lo do vita, &amp;gt;20,
minesoft corp, lo do vita, 200,
Minsk, rock valley, &amp;gt;20,
];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If yes, then I understand you want to exclude any rows that have a blank amount AND a valuation of '&amp;gt;20'.&lt;BR /&gt;That's the same thing as saying you want to load any rows that either do have an amount (i.e. that are not null / have a length &amp;gt;0)&amp;nbsp;&amp;nbsp;&lt;FONT size="5"&gt;OR&lt;/FONT&gt;&amp;nbsp; a valuation other than '&amp;gt;20'.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;see also:&lt;BR /&gt;&lt;A href="https://en.wikipedia.org/wiki/De_Morgan%27s_laws" target="_blank"&gt;https://en.wikipedia.org/wiki/De_Morgan%27s_laws&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 21:12:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/And-condition-in-where-clause-not-working-confused-need-help/m-p/1936796#M77213</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-05-27T21:12:45Z</dc:date>
    </item>
  </channel>
</rss>

