<?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 Expression with one result from nested if statements in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-with-one-result-from-nested-if-statements/m-p/195684#M56088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to pass every expression as true there's only two way's I guesse:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if( (test = 'Moisture' and results =&amp;gt; MoistureRangeFrom and results &amp;lt;= MoistureRangeTo)), if(test='Purity' and results &amp;gt;= PurityRangeFrom and results &amp;lt;= PurityRangeTo), 'Pass','Fail'),&lt;B&gt;Fail&lt;/B&gt;)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if( (test = 'Moisture' and results =&amp;gt; MoistureRangeFrom and results &amp;lt;= MoistureRangeTo)) and (test='Purity' and results &amp;gt;= PurityRangeFrom and results &amp;lt;= PurityRangeTo) , 'Pass','Fail')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Apr 2011 08:31:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-04-04T08:31:00Z</dc:date>
    <item>
      <title>Expression with one result from nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-one-result-from-nested-if-statements/m-p/195681#M56085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I am trying to construct an expression that uses nested if statements to arrive at a value depending on input of dynamic variables. If ALL the if statements are true then I want to assign a value - ie IF condition 1 is true AND condition 2 is true AND condition 3 is true THEN assign the value.&lt;/P&gt;&lt;P&gt;My sceanrio relates to a lot number of an inventory item that has a number of tests done against it. The user enters the acceptable range of results for each test into input fields. The expression then uses conditions like:&lt;/P&gt;&lt;P&gt;if(test='Moisture' and results &amp;gt;= MoistureRangeFrom and results &amp;lt;= MoistureRangeTo)&lt;/P&gt;&lt;P&gt;if(test='Purity' and results &amp;gt;= PurityRangeFrom and results &amp;lt;= PurityRangeTo)&lt;/P&gt;&lt;P&gt;If ALL of these conditions are true THEN the result should be 'Pass' else 'Fail'&lt;/P&gt;&lt;P&gt;How do I construct the expression to arrive at a single result for all Test results?&lt;/P&gt;&lt;P&gt;Thanks, Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Apr 2011 11:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-one-result-from-nested-if-statements/m-p/195681#M56085</guid>
      <dc:creator />
      <dc:date>2011-04-02T11:54:30Z</dc:date>
    </item>
    <item>
      <title>Expression with one result from nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-one-result-from-nested-if-statements/m-p/195682#M56086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(test='Moisture' and results &amp;gt;= MoistureRangeFrom and results &amp;lt;= MoistureRangeTo, if(test='Purity' and results &amp;gt;= PurityRangeFrom and results &amp;lt;= PurityRangeTo, 'TRUE', 'FALSE'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Apr 2011 15:56:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-one-result-from-nested-if-statements/m-p/195682#M56086</guid>
      <dc:creator />
      <dc:date>2011-04-02T15:56:48Z</dc:date>
    </item>
    <item>
      <title>Expression with one result from nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-one-result-from-nested-if-statements/m-p/195683#M56087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion Richard. This does not quite work as the aim is for both test conditions to be within range (there are in fact 7 tests that have to be passed for a successful acceptance).&lt;/P&gt;&lt;P&gt;When evaluated, this suggested expression will still return a TRUE value if the Purity test passes even if the Moisture test does not pass. In this example I want FALSE returned because both tests do not pass.&lt;/P&gt;&lt;P&gt;I'm open to suggestions other than nested if statements if anyone can think of some alternative.&lt;/P&gt;&lt;P&gt;Thanks, Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Apr 2011 05:42:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-one-result-from-nested-if-statements/m-p/195683#M56087</guid>
      <dc:creator />
      <dc:date>2011-04-03T05:42:10Z</dc:date>
    </item>
    <item>
      <title>Expression with one result from nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-one-result-from-nested-if-statements/m-p/195684#M56088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to pass every expression as true there's only two way's I guesse:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if( (test = 'Moisture' and results =&amp;gt; MoistureRangeFrom and results &amp;lt;= MoistureRangeTo)), if(test='Purity' and results &amp;gt;= PurityRangeFrom and results &amp;lt;= PurityRangeTo), 'Pass','Fail'),&lt;B&gt;Fail&lt;/B&gt;)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if( (test = 'Moisture' and results =&amp;gt; MoistureRangeFrom and results &amp;lt;= MoistureRangeTo)) and (test='Purity' and results &amp;gt;= PurityRangeFrom and results &amp;lt;= PurityRangeTo) , 'Pass','Fail')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 08:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-one-result-from-nested-if-statements/m-p/195684#M56088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-04T08:31:00Z</dc:date>
    </item>
  </channel>
</rss>

