<?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 Within Aggr Functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Within-Aggr-Functions/m-p/188795#M51912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Lukas,&lt;/P&gt;&lt;P&gt;I changed my expression to :&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=&lt;B&gt;sum&lt;/B&gt;({1&amp;lt; &lt;B&gt;Unit&lt;/B&gt; = &amp;gt;} &lt;B&gt;aggr&lt;/B&gt;(&lt;B&gt;if&lt;/B&gt;(&lt;B&gt;Status&lt;/B&gt; = 'LtO Compliant',1,0),&lt;B&gt;System&lt;/B&gt;))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;but unfortunately it still produced the same results. &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Mar 2010 12:12:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-22T12:12:32Z</dc:date>
    <item>
      <title>Set Analysis Within Aggr Functions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Within-Aggr-Functions/m-p/188793#M51910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I have a requirement from a customer in which we would like a table to be unaffected by any selection (basically going against Qlikview methodology!). The trouble I am having is that I can't seem to implement set analysis into my aggr function. I have created a simple(ish) example:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 297pt; border-collapse: collapse;" width="396"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 105pt; mso-width-source: userset; mso-width-alt: 5120;" width="140" /&gt;&lt;COL span="4" style="width: 48pt;" width="64" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="background-color: transparent; width: 105pt; height: 12.75pt; border: windowtext 0.5pt solid;" width="140"&gt;Unit&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 48pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="64"&gt;A&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 48pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="64"&gt;B&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 48pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="64"&gt;C&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 48pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="64"&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Total&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;20&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;30&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;40&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Compliant&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;10&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;8&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;12&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Not Compliant&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;10&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;22&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;28&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;We have units A,B,C,D and the corresponding total, number of complaint systems and number of not compliant systems within a unit. These calcs are created using aggr functions involving counting the number of compliant systems within a unit as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=&lt;B&gt;sum&lt;/B&gt;({$&amp;lt; &lt;B&gt;Unit&lt;/B&gt; = &amp;gt;} &lt;B&gt;aggr&lt;/B&gt;(&lt;B&gt;if&lt;/B&gt;(&lt;B&gt;Status&lt;/B&gt; = 'LtO Compliant',1,0),&lt;B&gt;System&lt;/B&gt;))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Howvever if I now select, for example unit A, all the figures for the rest of the table return 0. Is there any way in which this can be overcome?&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 12:04:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Within-Aggr-Functions/m-p/188793#M51910</guid>
      <dc:creator />
      <dc:date>2010-03-22T12:04:19Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Within Aggr Functions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Within-Aggr-Functions/m-p/188794#M51911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;basically your set analysis should be based on "1" and not on "$", as you want to work on all the records as opposed to the current selection only.&lt;/P&gt;&lt;P&gt;Cheers, Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 12:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Within-Aggr-Functions/m-p/188794#M51911</guid>
      <dc:creator />
      <dc:date>2010-03-22T12:06:08Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Within Aggr Functions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Within-Aggr-Functions/m-p/188795#M51912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Lukas,&lt;/P&gt;&lt;P&gt;I changed my expression to :&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=&lt;B&gt;sum&lt;/B&gt;({1&amp;lt; &lt;B&gt;Unit&lt;/B&gt; = &amp;gt;} &lt;B&gt;aggr&lt;/B&gt;(&lt;B&gt;if&lt;/B&gt;(&lt;B&gt;Status&lt;/B&gt; = 'LtO Compliant',1,0),&lt;B&gt;System&lt;/B&gt;))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;but unfortunately it still produced the same results. &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 12:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Within-Aggr-Functions/m-p/188795#M51912</guid>
      <dc:creator />
      <dc:date>2010-03-22T12:12:32Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Within Aggr Functions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Within-Aggr-Functions/m-p/188796#M51913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;Just wondering if anyone had some other ideas to this problem?&lt;/P&gt;&lt;P&gt;Any comments would be welcome,&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 10:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Within-Aggr-Functions/m-p/188796#M51913</guid>
      <dc:creator />
      <dc:date>2010-03-23T10:53:54Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Within Aggr Functions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Within-Aggr-Functions/m-p/188797#M51914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't really use Aggr. My understanding was that you usually put an aggregation function within the Aggr function but you don't have one, just a 1 / 0 calculation.&lt;/P&gt;&lt;P&gt;But I'd suggest trying also putting the set extension {1&amp;lt;Unit = &amp;gt;} within the aggr function.&lt;/P&gt;&lt;PRE style="margin:0px;"&gt;&lt;B&gt;sum&lt;/B&gt;({1&amp;lt; &lt;B&gt;Unit&lt;/B&gt; = &amp;gt;} &lt;B&gt;aggr&lt;/B&gt;({1&amp;lt; &lt;B&gt;Unit&lt;/B&gt; = &amp;gt;} &lt;B&gt;if&lt;/B&gt;(&lt;B&gt;Status&lt;/B&gt; = 'LtO Compliant',1,0),&lt;B&gt;System&lt;/B&gt;))&lt;BR /&gt;&lt;BR /&gt;May have to try some other placements, eg. within the If statement.&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 12:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Within-Aggr-Functions/m-p/188797#M51914</guid>
      <dc:creator>michael_anthony</dc:creator>
      <dc:date>2010-03-23T12:08:11Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Within Aggr Functions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Within-Aggr-Functions/m-p/188798#M51915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, could you perhaps post a sample QVW, that yould make things easier. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 12:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Within-Aggr-Functions/m-p/188798#M51915</guid>
      <dc:creator />
      <dc:date>2010-03-23T12:34:00Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Within Aggr Functions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Within-Aggr-Functions/m-p/188799#M51916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Was this solved ... you could perhaps detach the table ... that will remove it from being included in selections I believe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 17:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Within-Aggr-Functions/m-p/188799#M51916</guid>
      <dc:creator />
      <dc:date>2011-02-14T17:11:41Z</dc:date>
    </item>
  </channel>
</rss>

