<?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: Expression with set analysis gives wrong calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63880#M781081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a) The field value list of your set modifier combines the elements with OR logic, not AND logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your first element is a search that returns values larger than 99999, your second search is suppossed to exclude 4859696 (or to return any other value).&lt;/P&gt;&lt;P&gt;This can't work as intended with the default OR logic (if I understand your intention correctly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) a search "&amp;lt;&amp;gt;4859696" does not mean 'not equal 4859696'.&lt;/P&gt;&lt;P&gt;It's a numeric search "&amp;lt;&lt;EM&gt;limit_1_numerical_value&lt;/EM&gt;&amp;gt;&lt;EM&gt;limit_2_numerical_value&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;where you are missing the &lt;EM&gt;limit_1_numerical_value. &lt;/EM&gt;I believe that Qlik will just ignore the first comparison operator then, so your search should equal "&amp;gt;4859696".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you would use "&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;4859696&lt;/SPAN&gt;&amp;gt;4859696", then this may return values to the value list excluding 4859696, but still finding a) would put 4859696 back in the list due to the first search that returns all values larger than 99999 (assuming that 4859696 is a possible field value).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to test both findings with some numeric sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Apr 2018 13:43:53 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2018-04-06T13:43:53Z</dc:date>
    <item>
      <title>Expression with set analysis gives wrong calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63874#M781075</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;&lt;/P&gt;&lt;P&gt;I'm struggling with an expression that includes set analysis.&lt;/P&gt;&lt;P&gt;I want to calculate the amount of colli and by using the set analysis statement I want to exclude some Articles&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;= sum({$&amp;lt;[WH_Cd] -= {12}, [Rec_Article]={"&amp;gt;99999","&amp;lt;&amp;gt;4859696"}, [Aisle_Facturation] -= {DISPLAY, EMPTIES}&amp;gt;}[Rec_Colli])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works but when I want to exclude another Rec_Article the calculations are wrong.&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;= sum({$&amp;lt;[WH_Cd] -= {12}, [Rec_Article]={"&amp;gt;99999","&amp;lt;&amp;gt;4859696","&amp;lt;&amp;gt;5797143"}, [Aisle_Facturation] -= {DISPLAY, EMPTIES}, [Vendor_Nbr] -= {"0014038"}&amp;gt;}[Rec_Colli])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I've calculated all the colli for Rec_Article 5797143 and the sum is 1340.&lt;/P&gt;&lt;P&gt;This should be extracted from the total on dimension Aisle_Desc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be done for 2 expressions: #Colli and #Pallets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the situation before the exclude of Rec_Article 5797143 (which belongs to Aisle_Desc 'Mosselen_Zuurwaren')&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 282px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="107"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;Aisle_Desc&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" width="62"&gt;&lt;EM style="font-size: 8pt;"&gt;#Colli&lt;/EM&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="62"&gt;&lt;EM style="font-size: 8pt;"&gt;#Pallets&lt;/EM&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="51"&gt;&lt;EM style="font-size: 8pt;"&gt;Avg_IN&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;GRF&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;422.379&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;10.033&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;42,10&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;Industrieel_Brood&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;22.869&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;968&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;23,63&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;Mosselen_Zuurwaren&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;45.343&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;1.011&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;44,85&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;PAT&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;2.420&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;170&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;14,24&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;PBL_Traiteur&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;214.306&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;6.525&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;32,84&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;PBL_Vlees&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;192.311&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;9.933&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;19,36&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;PBL_Zuivel&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;543.287&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;17.564&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;30,93&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;PBS_Traiteur&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;77.681&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;1.795&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;43,28&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;Zuivel_Gekoeld&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;196.775&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;2.715&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;72,48&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;Zuivel_Ongekoeld&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;88.598&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;3.005&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;29,48&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;Total&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;1.805.969&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;53.719&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;33,62&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sum for Rec_Article 5797143 is &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 302px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="110"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;Aisle_Desc&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;&lt;EM style="font-size: 8pt;"&gt;#Colli&lt;/EM&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;&lt;EM style="font-size: 8pt;"&gt;#Pallets&lt;/EM&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;&lt;EM style="font-size: 8pt;"&gt;Avg_IN&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;STRONG&gt;Mosselen_Zuurwaren&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 8pt;"&gt;1.340&lt;/EM&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 8pt;"&gt;3&lt;/EM&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 8pt;"&gt;446,67&lt;/EM&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 8pt;"&gt;Total&lt;/EM&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 8pt;"&gt;1.340&lt;/EM&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 8pt;"&gt;3&lt;/EM&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;STRONG&gt;446,67&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the situation after the exclude should be:&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 282px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="107"&gt;&lt;EM style="font-size: 8pt;"&gt;Aisle_Desc&lt;/EM&gt;&lt;/TD&gt;&lt;TD class="xl67" width="62"&gt;&lt;EM style="font-size: 8pt;"&gt;#Colli&lt;/EM&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="62"&gt;&lt;EM style="font-size: 8pt;"&gt;#Pallets&lt;/EM&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="51"&gt;&lt;EM style="font-size: 8pt;"&gt;Avg_IN&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;GRF&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;422.379&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;10.033&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;42,10&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;Industrieel_Brood&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;22.869&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;968&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;23,63&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;STRONG&gt;Mosselen_Zuurwaren&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 8pt;"&gt;44.003&lt;/EM&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 8pt;"&gt;1.008&lt;/EM&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;STRONG&gt;43,65&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;PAT&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;2.420&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;170&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;14,24&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;PBL_Traiteur&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;214.306&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;6.525&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;32,84&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;PBL_Vlees&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;192.311&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;9.933&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;19,36&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;PBL_Zuivel&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;543.287&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;17.564&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;30,93&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;PBS_Traiteur&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;77.681&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;1.795&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;43,28&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;Zuivel_Gekoeld&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;196.775&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;2.715&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;72,48&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;Zuivel_Ongekoeld&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;88.598&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;3.005&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;29,48&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 8pt;"&gt;1.804.629&lt;/EM&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 8pt;"&gt;53.716&lt;/EM&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;&lt;STRONG&gt;33,60&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is the result I'm getting and I've highlighted the calculations that are wrong in red:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 282px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="107"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;Aisle_Desc&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" width="62"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;#Colli&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="62"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;#Pallets&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="51"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;Avg_IN&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="color: #ff0000;"&gt;GRF&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="color: #ff0000;"&gt;413.437&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="color: #ff0000;"&gt;9.918&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;42,10&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;Industrieel_Brood&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;22.869&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;968&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;23,63&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="color: #ff0000;"&gt;Mosselen_Zuurwaren&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="color: #ff0000;"&gt;42.938&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="color: #ff0000;"&gt;978&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;43,90&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;PAT&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;2.420&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;170&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;14,24&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;PBL_Traiteur&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;214.306&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;6.525&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;32,84&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="color: #ff0000;"&gt;PBL_Vlees&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt; color: #ff0000;"&gt;&lt;EM&gt;192.149&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="color: #ff0000;"&gt;9.913&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;19,38&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="color: #ff0000;"&gt;PBL_Zuivel&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="color: #ff0000;"&gt;542.349&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="color: #ff0000;"&gt;17.520&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;30,96&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="color: #ff0000;"&gt;PBS_Traiteur&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="color: #ff0000;"&gt;77.441&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style=": ; color: #ff0000;"&gt;1.791&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;43,24&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;Zuivel_Gekoeld&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;196.775&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;2.715&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;72,48&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;Zuivel_Ongekoeld&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;88.598&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;3.005&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;29,48&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;Total&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="color: #ff0000;"&gt;1.793.282&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="color: #ff0000;"&gt;53.503&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;33,52&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what I'm doing wrong please?&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63874#M781075</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with set analysis gives wrong calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63875#M781076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;[WH_Cd] -= {12}, [Rec_Article]={"&amp;gt;99999"}-{'4859696', '5797143'}, [Aisle_Facturation] -= {DISPLAY, EMPTIES}&amp;gt;}[Rec_Colli])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 15:01:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63875#M781076</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-05T15:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with set analysis gives wrong calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63876#M781077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does the expression [Rec_Article]={"&amp;gt;99999","&amp;lt;&amp;gt;4859696","&amp;lt;&amp;gt;5797143"} not work?&lt;/P&gt;&lt;P&gt;This worked fine: &lt;SPAN style="font-size: 13.3333px;"&gt;[Rec_Article]={"&amp;gt;99999","&amp;lt;&amp;gt;4859696"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Monique&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 15:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63876#M781077</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2018-04-05T15:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with set analysis gives wrong calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63877#M781078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure, but may be &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌ can answer this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 15:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63877#M781078</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-05T15:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with set analysis gives wrong calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63878#M781079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you 100% sure this one worked?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;EM&gt;[Rec_Article]={"&amp;gt;99999","&amp;lt;&amp;gt;4859696"}&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;I can imagine this does also not work as requested, for several reasons.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 16:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63878#M781079</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-04-05T16:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with set analysis gives wrong calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63879#M781080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not 100% sure but it must work because I can't find any data for that set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you also tell me what the reasons are that it can't work please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 12:44:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63879#M781080</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2018-04-06T12:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with set analysis gives wrong calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63880#M781081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a) The field value list of your set modifier combines the elements with OR logic, not AND logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your first element is a search that returns values larger than 99999, your second search is suppossed to exclude 4859696 (or to return any other value).&lt;/P&gt;&lt;P&gt;This can't work as intended with the default OR logic (if I understand your intention correctly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) a search "&amp;lt;&amp;gt;4859696" does not mean 'not equal 4859696'.&lt;/P&gt;&lt;P&gt;It's a numeric search "&amp;lt;&lt;EM&gt;limit_1_numerical_value&lt;/EM&gt;&amp;gt;&lt;EM&gt;limit_2_numerical_value&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;where you are missing the &lt;EM&gt;limit_1_numerical_value. &lt;/EM&gt;I believe that Qlik will just ignore the first comparison operator then, so your search should equal "&amp;gt;4859696".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you would use "&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;4859696&lt;/SPAN&gt;&amp;gt;4859696", then this may return values to the value list excluding 4859696, but still finding a) would put 4859696 back in the list due to the first search that returns all values larger than 99999 (assuming that 4859696 is a possible field value).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to test both findings with some numeric sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 13:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63880#M781081</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-04-06T13:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with set analysis gives wrong calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63881#M781082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now that you have explained it in great detail... it all makes sense. Thanks &lt;A href="https://community.qlik.com/people/swuehl"&gt;swuehl&lt;/A&gt;‌ &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 13:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63881#M781082</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-06T13:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with set analysis gives wrong calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63882#M781083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the late reaction (I was on holiday)&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cool.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Stefan for the detailed explanation.&lt;/P&gt;&lt;P&gt;For the less experienced developers this is very useful&lt;SPAN style="font-size: 13.3333px;"&gt; and educative&lt;/SPAN&gt; information.&lt;/P&gt;&lt;P&gt;Also thanks to you Sunny for bringing this to Stefan's attention. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 14:00:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-set-analysis-gives-wrong-calculation/m-p/63882#M781083</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2018-04-17T14:00:20Z</dc:date>
    </item>
  </channel>
</rss>

