<?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 Why is this expression not working? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-is-this-expression-not-working/m-p/540919#M554954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1377691498126922" jivemacro_uid="_1377691498126922"&gt;
&lt;P&gt;if([RecordType] &amp;lt;&amp;gt; 'ExPL' OR [RecordType] &amp;lt;&amp;gt; 'ExDE' OR [RecordType] &amp;lt;&amp;gt; 'ExFR',&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;if(Sum({&amp;lt;[CustomerKey]-={'106180' , '104300','105680' , '305000'&amp;nbsp; , '305500'&amp;nbsp; ,'51062'&amp;nbsp; , '50339', '10339', '11678', '101230'}&amp;gt;} [InvoiceNetValue]) &amp;gt; 1000000,&lt;/P&gt;
&lt;P&gt;Num(Sum({&amp;lt;[CustomerKey]-={'106180' , '104300','105680' , '305000'&amp;nbsp; , '305500'&amp;nbsp; ,'51062'&amp;nbsp; , '50339', '10339', '11678', '101230'}&amp;gt;} [InvoiceNetValue])/1000,'#.##0M;-#.##0M'),&lt;/P&gt;
&lt;P&gt;Num(Sum({&amp;lt;[CustomerKey]-={'106180' , '104300','105680' , '305000'&amp;nbsp; , '305500'&amp;nbsp; ,'51062'&amp;nbsp; , '50339', '10339', '11678', '101230'}&amp;gt;} [InvoiceNetValue])/1000,'#.##0K;-#.##0K'))&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;,&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;0)&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I want to make sure these 3 record types are excluded. Then I want to exclude the selected CustomerKeys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The middle part works. the right customers are excluded. But whe I add the [RecordType] filter the result stays the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Aug 2013 12:06:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-28T12:06:23Z</dc:date>
    <item>
      <title>Why is this expression not working?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-this-expression-not-working/m-p/540919#M554954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1377691498126922" jivemacro_uid="_1377691498126922"&gt;
&lt;P&gt;if([RecordType] &amp;lt;&amp;gt; 'ExPL' OR [RecordType] &amp;lt;&amp;gt; 'ExDE' OR [RecordType] &amp;lt;&amp;gt; 'ExFR',&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;if(Sum({&amp;lt;[CustomerKey]-={'106180' , '104300','105680' , '305000'&amp;nbsp; , '305500'&amp;nbsp; ,'51062'&amp;nbsp; , '50339', '10339', '11678', '101230'}&amp;gt;} [InvoiceNetValue]) &amp;gt; 1000000,&lt;/P&gt;
&lt;P&gt;Num(Sum({&amp;lt;[CustomerKey]-={'106180' , '104300','105680' , '305000'&amp;nbsp; , '305500'&amp;nbsp; ,'51062'&amp;nbsp; , '50339', '10339', '11678', '101230'}&amp;gt;} [InvoiceNetValue])/1000,'#.##0M;-#.##0M'),&lt;/P&gt;
&lt;P&gt;Num(Sum({&amp;lt;[CustomerKey]-={'106180' , '104300','105680' , '305000'&amp;nbsp; , '305500'&amp;nbsp; ,'51062'&amp;nbsp; , '50339', '10339', '11678', '101230'}&amp;gt;} [InvoiceNetValue])/1000,'#.##0K;-#.##0K'))&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;,&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;0)&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I want to make sure these 3 record types are excluded. Then I want to exclude the selected CustomerKeys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The middle part works. the right customers are excluded. But whe I add the [RecordType] filter the result stays the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 12:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-this-expression-not-working/m-p/540919#M554954</guid>
      <dc:creator />
      <dc:date>2013-08-28T12:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why is this expression not working?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-this-expression-not-working/m-p/540920#M554955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Sum({&amp;lt;[CustomerKey]-={'106180' , '104300','105680' , '305000'&amp;nbsp; , '305500'&amp;nbsp; ,'51062'&amp;nbsp; , '50339', '10339', '11678', '101230'}, [RecordType] -={'ExPL', 'ExDE', 'ExFR'}&amp;gt;} [InvoiceNetValue]) &amp;gt; 1000000,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Num(Sum({&amp;lt;[CustomerKey]-={'106180' , '104300','105680' , '305000'&amp;nbsp; , '305500'&amp;nbsp; ,'51062'&amp;nbsp; , '50339', '10339', '11678', '101230'},[RecordType] -={'ExPL', 'ExDE', 'ExFR'}&amp;gt;} [InvoiceNetValue])/1000,'#.##0M;-#.##0M'),&amp;nbsp; &lt;/P&gt;&lt;P&gt;Num(Sum({&amp;lt;[CustomerKey]-={'106180' , '104300','105680' , '305000'&amp;nbsp; , '305500'&amp;nbsp; ,'51062'&amp;nbsp; , '50339', '10339', '11678', '101230'},[RecordType] -={'ExPL', 'ExDE', 'ExFR'}&amp;gt;} [InvoiceNetValue])/1000,'#.##0K;-#.##0K'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 12:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-this-expression-not-working/m-p/540920#M554955</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-08-28T12:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is this expression not working?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-this-expression-not-working/m-p/540921#M554956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked perfectly. Thanks mate!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 12:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-this-expression-not-working/m-p/540921#M554956</guid>
      <dc:creator />
      <dc:date>2013-08-28T12:15:23Z</dc:date>
    </item>
  </channel>
</rss>

