<?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 Set analysis behavior in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-behavior/m-p/216842#M70117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer Miguel, however I think I over simplified the requirement, it is not completely static, it should get affected by some selections and if I detached the table, it gets stuck into the same value no matter what.&lt;/P&gt;&lt;P&gt;Thanks again, good thinking&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jul 2010 17:47:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-07T17:47:20Z</dc:date>
    <item>
      <title>Set analysis behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-behavior/m-p/216839#M70114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, I am building a set analysis expression which I do not want to be affected by selections:&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;AÑO={$(=max(AÑO))}, MES={$(=max(MES))}, BC_TERRITORIO= {"=rank(AGGR(sum({1&amp;lt;LINEA={'LPM'}, AÑO={$(=max(AÑO))}, MES={$(=max(MES))}&amp;gt;} ME_VALUE_INC),BC_TERRITORIO),4,1)&amp;lt;=10"}&amp;gt;} ME_VALUE_INC) / 10&lt;/P&gt;&lt;P&gt;As you can see, I am using prefix 1 to work with the whole set, however it does get affected by selections on any field, for example BC_TERRITORIO, any ideas??, am I misunderstanding the behavior??&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 16:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-behavior/m-p/216839#M70114</guid>
      <dc:creator />
      <dc:date>2010-07-07T16:01:45Z</dc:date>
    </item>
    <item>
      <title>Set analysis behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-behavior/m-p/216840#M70115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ivan,&lt;/P&gt;&lt;P&gt;If I'm not wrong, you can detach your chart so it will show the same data regardless any selections are done. As far as I understand, that 1 (set identifier) prefixing your set modifier means the set modifier won't use the current selections but all records, while "$" or nothing prefixing the set modifier means the current selections will be used (records returned by current selections).&lt;/P&gt;&lt;P&gt;But it doesn't mean the expression/chart won't be affected by further changes. That's why "Detach" makes sens. Anyone: please, let me know if I'm wrong.&lt;/P&gt;&lt;P&gt;EDIT: Deleted and rewritten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 16:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-behavior/m-p/216840#M70115</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-07-07T16:17:02Z</dc:date>
    </item>
    <item>
      <title>Set analysis behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-behavior/m-p/216841#M70116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What I see is that there is a function whithin the Set Expression that is using the Selections and therfore everytime you change your selections the Set will change. This function is Rank.&lt;/P&gt;&lt;P&gt;Whenever I use set analysis whithin an aggr expression, I usually need to specify the same set expression for the function outside the aggr expression, in this case Rank. However, Rank does not take Set Expressions. So I would recommend to append the max function before the rank function like this:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({1&amp;lt;AÑO={$(=max(AÑO))}, MES={$(=max(MES))}, BC_TERRITORIO= {"=rank(Max({1&amp;lt;LINEA={'LPM'}, AÑO={$(=max(AÑO))}, MES={$(=max(MES))}&amp;gt;} AGGR(sum({1&amp;lt;LINEA={'LPM'}, AÑO={$(=max(AÑO))}, MES={$(=max(MES))}&amp;gt;} ME_VALUE_INC),BC_TERRITORIO)),4,1)&amp;lt;=10"}&amp;gt;} ME_VALUE_INC) / 10&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I really have not tested if, once the set expression is outside the aggr, it needs to be in the function inside aggr, in this case sum.&lt;/P&gt;&lt;P&gt;Let me know if it works for you.&lt;/P&gt;&lt;P&gt;Mike.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 16:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-behavior/m-p/216841#M70116</guid>
      <dc:creator>mike_garcia</dc:creator>
      <dc:date>2010-07-07T16:25:51Z</dc:date>
    </item>
    <item>
      <title>Set analysis behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-behavior/m-p/216842#M70117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer Miguel, however I think I over simplified the requirement, it is not completely static, it should get affected by some selections and if I detached the table, it gets stuck into the same value no matter what.&lt;/P&gt;&lt;P&gt;Thanks again, good thinking&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 17:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-behavior/m-p/216842#M70117</guid>
      <dc:creator />
      <dc:date>2010-07-07T17:47:20Z</dc:date>
    </item>
    <item>
      <title>Set analysis behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-behavior/m-p/216843#M70118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mike, it worked just fine for me.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 17:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-behavior/m-p/216843#M70118</guid>
      <dc:creator />
      <dc:date>2010-07-07T17:48:40Z</dc:date>
    </item>
  </channel>
</rss>

