<?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: Variable with 'and' condition only works partially - what's wrong? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566253#M1108925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, I am selecting =$(vProdActive) in a listbox object&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Mar 2014 13:33:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-12T13:33:49Z</dc:date>
    <item>
      <title>Variable with 'and' condition only works partially - what's wrong?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566250#M1108922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have two fields, Environment and Status. Each Environment can be in any Status.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Env-Status.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/54831_Env-Status.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I created the following variable: = If(match(Environment,'Production') and match(Status ,'active'), 'true' , 'false')&lt;/P&gt;&lt;P&gt;to be able to select those combinations, where it is Production-active.&lt;/P&gt;&lt;P&gt;While this part of the variable works fine (the 'true' option), the opposite selection doesn't work (the 'false' part). When I select 'false' , QV shows still everything (= Total number not changing).&lt;BR /&gt;Any idea what is going wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 13:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566250#M1108922</guid>
      <dc:creator />
      <dc:date>2014-03-12T13:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with 'and' condition only works partially - what's wrong?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566251#M1108923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please post your sample QVW?&lt;/P&gt;&lt;P&gt;In your script you can also use like below.&lt;/P&gt;&lt;P&gt;If (Environment='Production' and Status = 'active',1,0) as ProdStsFlag&lt;/P&gt;&lt;P&gt;Then in the UI you can use this flag field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 13:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566251#M1108923</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2014-03-12T13:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with 'and' condition only works partially - what's wrong?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566252#M1108924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;don't know how to select a variable.&lt;/P&gt;&lt;P&gt;Can you explain that ?&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 13:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566252#M1108924</guid>
      <dc:creator />
      <dc:date>2014-03-12T13:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with 'and' condition only works partially - what's wrong?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566253#M1108925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, I am selecting =$(vProdActive) in a listbox object&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 13:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566253#M1108925</guid>
      <dc:creator />
      <dc:date>2014-03-12T13:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with 'and' condition only works partially - what's wrong?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566254#M1108926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, can't share my QVW for two reasons a) size b) confidential company data&lt;/P&gt;&lt;P&gt;but the code you suggested shows same result and behaviour as the one I posted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 13:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566254#M1108926</guid>
      <dc:creator />
      <dc:date>2014-03-12T13:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with 'and' condition only works partially - what's wrong?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566255#M1108927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try like these &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;= If(match(Environment,'Production') , &lt;SPAN&gt;True(),flase()&lt;/SPAN&gt;) and&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(match (&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Staus&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;active&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;') ,True(),flase())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 13:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566255#M1108927</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2014-03-12T13:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Variable with 'and' condition only works partially - what's wrong?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566256#M1108928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;I understand.&lt;/P&gt;&lt;P&gt;This way using a "logical" variable won't work as you expect it. It is working correct (as designed) from the view of Qlikview. Play a little bit with my exam app. You will get always all Environment-Value selected in case of false().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest to create a flag as Sudeep posted above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 13:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566256#M1108928</guid>
      <dc:creator />
      <dc:date>2014-03-12T13:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with 'and' condition only works partially - what's wrong?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566257#M1108929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I sort of found the solution . In the load script I concatenate the two fields to a new one.&lt;/P&gt;&lt;P&gt;e.g. Environment&amp;amp;Status_Name as CI_Env_Stat .&lt;/P&gt;&lt;P&gt;Now I can filter CI_Env_Stat for 'Productionactive' and create a variable that also checks for anything that is not 'Productionactive'&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 14:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566257#M1108929</guid>
      <dc:creator />
      <dc:date>2014-03-12T14:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with 'and' condition only works partially - what's wrong?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566258#M1108930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if your variable (vProdActive ) is defined as &lt;BR /&gt;= If(match(Environment,'Production') and match(Status ,'active'), 'true' , 'false')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then, you should be selecting vProdActive and not $(vProdActive). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vProdActive returns the strings (true or false) depending on the selection you make.&lt;/P&gt;&lt;P&gt;$(vProdActive) is evaluating what vProdActive is returning which in this case is a string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 15:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-and-condition-only-works-partially-what-s-wrong/m-p/566258#M1108930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-12T15:03:19Z</dc:date>
    </item>
  </channel>
</rss>

