<?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 Aggr and Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-and-Set-analysis/m-p/442868#M485445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there qlikview community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used aggr and set analysis to product my expression which is:&lt;/P&gt;&lt;P&gt;Aggr(Count({&amp;lt;SensorValue={"= SensorValue&amp;gt;= HighControlLimit"} + {"= SensorValue&amp;lt;= LowControlLimit"}&amp;gt;}SensorValue),ValidatorUnit,Sensor,SensorParam)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that my expression does not behave as intented.As you can see in the attached pictures below it works perfectly when i select onle one sensor&lt;/P&gt;&lt;P&gt;but it gives me some null values when i sellect all of them.&lt;/P&gt;&lt;P&gt;Any idea why this is happening???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 May 2013 10:26:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-09T10:26:46Z</dc:date>
    <item>
      <title>Aggr and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-Set-analysis/m-p/442868#M485445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there qlikview community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used aggr and set analysis to product my expression which is:&lt;/P&gt;&lt;P&gt;Aggr(Count({&amp;lt;SensorValue={"= SensorValue&amp;gt;= HighControlLimit"} + {"= SensorValue&amp;lt;= LowControlLimit"}&amp;gt;}SensorValue),ValidatorUnit,Sensor,SensorParam)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that my expression does not behave as intented.As you can see in the attached pictures below it works perfectly when i select onle one sensor&lt;/P&gt;&lt;P&gt;but it gives me some null values when i sellect all of them.&lt;/P&gt;&lt;P&gt;Any idea why this is happening???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 10:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-Set-analysis/m-p/442868#M485445</guid>
      <dc:creator />
      <dc:date>2013-05-09T10:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-Set-analysis/m-p/442869#M485446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Aggr(Count({&amp;lt;SensorValue={"&amp;gt;=$(HighControlLimit)&amp;lt;=$(LowControlLimit)"}&amp;gt;} SensorValue),ValidatorUnit,Sensor,SensorParam)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 10:32:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-Set-analysis/m-p/442869#M485446</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-09T10:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-Set-analysis/m-p/442870#M485447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately that did not solve ethe proble ..Insted i got as a result everything null...&lt;/P&gt;&lt;P&gt;I can not think a reason that this expression works for one sellection and not for many.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 10:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-Set-analysis/m-p/442870#M485447</guid>
      <dc:creator />
      <dc:date>2013-05-09T10:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-Set-analysis/m-p/442871#M485448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;HighControlLimit&lt;/SPAN&gt; and &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;LowControlLimit field names? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;If they are, then your expression is comparing &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;SensorValue&lt;/SPAN&gt; with the entire list of values, which does not work as you see. When you make a selection, then &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;SensorValue&lt;/SPAN&gt; is being compared with specific values for the limits and that works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;If I am correct, then I assume that you are trying to compare &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;SensorValue&lt;/SPAN&gt; with limit values in the same record. You cannot do this with set analysis. You must either use a Sum(If()) expression, or set a flag value in the load script and use the flag in your set expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Hope that helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Jonathan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 10:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-Set-analysis/m-p/442871#M485448</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-05-09T10:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-Set-analysis/m-p/442872#M485449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you are right Jonathan HighControlLimit and LowControlLimit are field names...Aha that is why..Happy to &lt;/P&gt;&lt;P&gt;managed to sort out the logic on that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 10:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-Set-analysis/m-p/442872#M485449</guid>
      <dc:creator />
      <dc:date>2013-05-09T10:51:41Z</dc:date>
    </item>
  </channel>
</rss>

