<?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 Conditions in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditions-in-Set-Analysis/m-p/1174859#M462499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having some trouble including a condition in my set analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goal: count the products id from my max month year ( it works), for a certain level type (also works), and for when the field value is greater than the 3% of the total value sum (with the same filters). This is where I am having trouble. The field value can be positive and negative, but I need to ignore it and just use absolutes, the fabs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the following set analysis, it will only give back the values ( not absolute values) that are grreater than the 3% of total value (colored in orange in the image), which is almost what i want, i just need to include the absolute values somewhere. It is counting 2 ids instead of 7 (see image):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;count({&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;month={"$(=Max(month))"},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;[Nivel 3]={'No explicadas'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Valor={"&amp;gt; $(=sum({&amp;lt;month={'$(=Max(month))'},[Nivel 3]={'No explicadas'}&amp;gt;}fabs(Valor)) *0.03)"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;gt;}ID_operacion)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136946_Captura.PNG" style="height: 141px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I have also tried the following set analysis, using the 3% of the total sum as a number, and it is counting the 7 ids.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;month={"$(=Max(month))"},&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;[Nivel 3]={'No explicadas'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Valor={"=fabs(Valor) &amp;gt; 2235184.339 "}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;gt;}ID_operacion)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when i mix them both, they dont work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=count({&amp;lt;month={"$(=Max(month))"},&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;[Nivel 3]={'No explicadas'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Valor={"=fabs(Valor) &amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt; $(=sum({&amp;lt;month={'$(=Max(month))'},[Nivel 3]={'No explicadas'}&amp;gt;}fabs(Valor)) *0.03)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt; &lt;SPAN style="font-size: 10pt;"&gt;&amp;gt;}ID_operacion)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any suggestions about how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2016 10:04:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-09-09T10:04:21Z</dc:date>
    <item>
      <title>Conditions in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Conditions-in-Set-Analysis/m-p/1174859#M462499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having some trouble including a condition in my set analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goal: count the products id from my max month year ( it works), for a certain level type (also works), and for when the field value is greater than the 3% of the total value sum (with the same filters). This is where I am having trouble. The field value can be positive and negative, but I need to ignore it and just use absolutes, the fabs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the following set analysis, it will only give back the values ( not absolute values) that are grreater than the 3% of total value (colored in orange in the image), which is almost what i want, i just need to include the absolute values somewhere. It is counting 2 ids instead of 7 (see image):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;count({&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;month={"$(=Max(month))"},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;[Nivel 3]={'No explicadas'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Valor={"&amp;gt; $(=sum({&amp;lt;month={'$(=Max(month))'},[Nivel 3]={'No explicadas'}&amp;gt;}fabs(Valor)) *0.03)"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;gt;}ID_operacion)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136946_Captura.PNG" style="height: 141px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I have also tried the following set analysis, using the 3% of the total sum as a number, and it is counting the 7 ids.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;month={"$(=Max(month))"},&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;[Nivel 3]={'No explicadas'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Valor={"=fabs(Valor) &amp;gt; 2235184.339 "}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;gt;}ID_operacion)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when i mix them both, they dont work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=count({&amp;lt;month={"$(=Max(month))"},&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;[Nivel 3]={'No explicadas'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Valor={"=fabs(Valor) &amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt; $(=sum({&amp;lt;month={'$(=Max(month))'},[Nivel 3]={'No explicadas'}&amp;gt;}fabs(Valor)) *0.03)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt; &lt;SPAN style="font-size: 10pt;"&gt;&amp;gt;}ID_operacion)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any suggestions about how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 10:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditions-in-Set-Analysis/m-p/1174859#M462499</guid>
      <dc:creator />
      <dc:date>2016-09-09T10:04:21Z</dc:date>
    </item>
  </channel>
</rss>

