<?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: If with and statements not working in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/If-with-and-statements-not-working/m-p/2008286#M11688</link>
    <description>&lt;P&gt;Data Manager does not allow the use of AND / OR. Either switch to using the Data Load Editor, or write your statements as nested if(), e.g. If(POQTY &amp;gt;=1, if(POQTE &amp;lt;=3,1,0),0)&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2022 14:39:18 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2022-11-23T14:39:18Z</dc:date>
    <item>
      <title>If with and statements not working</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/If-with-and-statements-not-working/m-p/2007833#M11674</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create a calculated field and it only works if there is one criteria and I can not use and or as the condition expression.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tried putting parantheses like this (saw it mentioned in a different post) :if(([Count]&amp;gt;26 and [Count ]&amp;lt;51),1,0)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sgrewal_0-1669149304613.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94342iF99892768CE5C2D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sgrewal_0-1669149304613.png" alt="sgrewal_0-1669149304613.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 20:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/If-with-and-statements-not-working/m-p/2007833#M11674</guid>
      <dc:creator>sgrewal</dc:creator>
      <dc:date>2022-11-22T20:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: If with and statements not working</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/If-with-and-statements-not-working/m-p/2007843#M11675</link>
      <description>&lt;P&gt;Try it this way...&lt;BR /&gt;=If(Count(OrderID) &amp;gt;=1 and Count(OrderID) &amp;lt;=3, 1,0)&lt;/P&gt;&lt;P&gt;&lt;IMG class="image_resized" style="width:73.8%;" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/0e719c9b-0567-4cbd-ac09-1b3dbf35179f.default.png" /&gt;&lt;/P&gt;&lt;P&gt;In your case&lt;/P&gt;&lt;P&gt;=If(Count(Your_dimension) &amp;gt;=26 and Count(Your_dimension) &amp;lt;=51, 1,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or if you have a space in your dimension name, use:&lt;/P&gt;&lt;P&gt;=If(Count([OrderID]) &amp;gt;=26 and Count([OrderID]) &amp;lt;=51, 1,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 22:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/If-with-and-statements-not-working/m-p/2007843#M11675</guid>
      <dc:creator>Frank_S</dc:creator>
      <dc:date>2022-11-22T22:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: If with and statements not working</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/If-with-and-statements-not-working/m-p/2008277#M11686</link>
      <description>Looks like that does not work.&lt;BR /&gt;&lt;BR /&gt;It is showing a right parentheses error.&lt;BR /&gt;&lt;BR /&gt;But all are present.&lt;BR /&gt;&lt;BR /&gt;[cid:image001.png@01D8FF1D.54B4A910]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Nov 2022 14:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/If-with-and-statements-not-working/m-p/2008277#M11686</guid>
      <dc:creator>sgrewal</dc:creator>
      <dc:date>2022-11-23T14:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: If with and statements not working</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/If-with-and-statements-not-working/m-p/2008279#M11687</link>
      <description>&lt;P&gt;The image did not upload so here it is&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sgrewal_0-1669213506941.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94465iB8999A8FF78E197E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sgrewal_0-1669213506941.png" alt="sgrewal_0-1669213506941.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 14:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/If-with-and-statements-not-working/m-p/2008279#M11687</guid>
      <dc:creator>sgrewal</dc:creator>
      <dc:date>2022-11-23T14:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: If with and statements not working</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/If-with-and-statements-not-working/m-p/2008286#M11688</link>
      <description>&lt;P&gt;Data Manager does not allow the use of AND / OR. Either switch to using the Data Load Editor, or write your statements as nested if(), e.g. If(POQTY &amp;gt;=1, if(POQTE &amp;lt;=3,1,0),0)&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 14:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/If-with-and-statements-not-working/m-p/2008286#M11688</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-11-23T14:39:18Z</dc:date>
    </item>
  </channel>
</rss>

