<?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 function: possible solution? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-function-possible-solution/m-p/225696#M77963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;i'm not sure you need AGGR&lt;/P&gt;&lt;P&gt;why not sum( if ( score = 100 , 1 , 0 )) using Unit as dimension.&lt;/P&gt;&lt;P&gt;but maybe i don't understand the structure of your data. could you post a sample, if it doesn't work.&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jan 2010 21:36:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-28T21:36:48Z</dc:date>
    <item>
      <title>aggr function: possible solution?</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-possible-solution/m-p/225695#M77962</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 question which I believe can be solved using the aggr fucntion, but I'm a littlle unsure of how to apply. I have an expression:&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;(count ({$&amp;lt;ResponseText = {"Compliant"}&amp;gt;} ResponseText) + count ({$&amp;lt;ResponseText = {"Not applicable"}&amp;gt;} ResponseText)) / (count(System) *38)*100&lt;/PRE&gt;I have a table in which I have a column listing all systems and the corresponding score arising from the expression noted above. I have also created another dimension in which if the score = 100, 'Yes', if score &amp;lt; 100, it returns 'No'. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;However, i want to have a table which shows the number of '100 scored' systems within each unit. the problem when i replace system with unit in the table is that it takes a single figure average of all the system scores within that unit. so if 10 systems had a score of 100 and 10 had a score of 50 it would give a singular score of 75 for that unit. Is there a way in which i can count the number of systems in that unit that have a score of 100 using the aggr function?&lt;/P&gt;&lt;P&gt;I appreciate your help on this. thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 14:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-possible-solution/m-p/225695#M77962</guid>
      <dc:creator />
      <dc:date>2010-01-28T14:46:32Z</dc:date>
    </item>
    <item>
      <title>aggr function: possible solution?</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-possible-solution/m-p/225696#M77963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;i'm not sure you need AGGR&lt;/P&gt;&lt;P&gt;why not sum( if ( score = 100 , 1 , 0 )) using Unit as dimension.&lt;/P&gt;&lt;P&gt;but maybe i don't understand the structure of your data. could you post a sample, if it doesn't work.&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 21:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-possible-solution/m-p/225696#M77963</guid>
      <dc:creator />
      <dc:date>2010-01-28T21:36:48Z</dc:date>
    </item>
    <item>
      <title>aggr function: possible solution?</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-possible-solution/m-p/225697#M77964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The problem is....when I try to do this, the average score of the whole unit is applied. So this may be 95% and therefore a 0 will be applied to the whole unit. What I require is, the score of each system to be taken into account within a table only displaying the unit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 10:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-possible-solution/m-p/225697#M77964</guid>
      <dc:creator />
      <dc:date>2010-01-29T10:33:25Z</dc:date>
    </item>
    <item>
      <title>aggr function: possible solution?</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-possible-solution/m-p/225698#M77965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to make it clearer, can create a table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width:294pt;border-collapse:collapse;" width="392"&gt;&lt;COLGROUP&gt;&lt;COL style="width:70pt;mso-width-source:userset;mso-width-alt:3401;" width="93" /&gt;&lt;COL span="2" style="width:48pt;" width="64" /&gt;&lt;COL style="width:128pt;mso-width-source:userset;mso-width-alt:6253;" width="171" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" height="17" style="background-color:transparent;width:70pt;height:12.75pt;border:windowtext 0.5pt solid;" width="93"&gt;Unit&lt;/TD&gt;&lt;TD class="xl25" 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;System&lt;/TD&gt;&lt;TD class="xl25" 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;Score&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom:windowtext 0.5pt solid;border-left:windowtext;background-color:transparent;width:128pt;border-top:windowtext 0.5pt solid;border-right:windowtext 0.5pt solid;" width="171"&gt;if(Score = 100, 1,0 )&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" 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;A&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom:windowtext 0.5pt solid;border-left:windowtext;background-color:transparent;border-top:windowtext;border-right:windowtext 0.5pt solid;"&gt;1&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom:windowtext 0.5pt solid;border-left:windowtext;background-color:transparent;border-top:windowtext;border-right:windowtext 0.5pt solid;"&gt;100&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom:windowtext 0.5pt solid;border-left:windowtext;background-color:transparent;border-top:windowtext;border-right:windowtext 0.5pt solid;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" 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;A&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom:windowtext 0.5pt solid;border-left:windowtext;background-color:transparent;border-top:windowtext;border-right:windowtext 0.5pt solid;"&gt;2&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom:windowtext 0.5pt solid;border-left:windowtext;background-color:transparent;border-top:windowtext;border-right:windowtext 0.5pt solid;"&gt;100&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom:windowtext 0.5pt solid;border-left:windowtext;background-color:transparent;border-top:windowtext;border-right:windowtext 0.5pt solid;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" 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;A&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom:windowtext 0.5pt solid;border-left:windowtext;background-color:transparent;border-top:windowtext;border-right:windowtext 0.5pt solid;"&gt;3&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom:windowtext 0.5pt solid;border-left:windowtext;background-color:transparent;border-top:windowtext;border-right:windowtext 0.5pt solid;"&gt;98&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom:windowtext 0.5pt solid;border-left:windowtext;background-color:transparent;border-top:windowtext;border-right:windowtext 0.5pt solid;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" 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;A&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom:windowtext 0.5pt solid;border-left:windowtext;background-color:transparent;border-top:windowtext;border-right:windowtext 0.5pt solid;"&gt;4&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom:windowtext 0.5pt solid;border-left:windowtext;background-color:transparent;border-top:windowtext;border-right:windowtext 0.5pt solid;"&gt;98&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom:windowtext 0.5pt solid;border-left:windowtext;background-color:transparent;border-top:windowtext;border-right:windowtext 0.5pt solid;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" 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;A&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom:windowtext 0.5pt solid;border-left:windowtext;background-color:transparent;border-top:windowtext;border-right:windowtext 0.5pt solid;"&gt;5&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom:windowtext 0.5pt solid;border-left:windowtext;background-color:transparent;border-top:windowtext;border-right:windowtext 0.5pt solid;"&gt;100&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom:windowtext 0.5pt solid;border-left:windowtext;background-color:transparent;border-top:windowtext;border-right:windowtext 0.5pt solid;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If I remove System as a dimension and I add a sum(if(Score = 100, 1,0)), it takes an average of the scores i.e. (100+100+98+98+100)/5 and therefore returns 0 as a value where I would like it to be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width:227pt;border-collapse:collapse;" width="302"&gt;&lt;COLGROUP&gt;&lt;COL style="width:70pt;mso-width-source:userset;mso-width-alt:3401;" width="93" /&gt;&lt;COL style="width:157pt;mso-width-source:userset;mso-width-alt:7643;" width="209" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" height="17" style="background-color:transparent;width:70pt;height:12.75pt;border:windowtext 0.5pt solid;" width="93"&gt;Unit&lt;/TD&gt;&lt;TD class="xl24" style="border-bottom:windowtext 0.5pt solid;border-left:windowtext;background-color:transparent;width:157pt;border-top:windowtext 0.5pt solid;border-right:windowtext 0.5pt solid;" width="209"&gt;SUM(if(Score = 100, 1,0 ))&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" 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;A&lt;/TD&gt;&lt;TD class="xl24" style="border-bottom:windowtext 0.5pt solid;border-left:windowtext;background-color:transparent;border-top:windowtext;border-right:windowtext 0.5pt solid;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Any thoughts on how to achieve this?&lt;/P&gt;&lt;P&gt;I appreciate all help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 13:07:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-possible-solution/m-p/225698#M77965</guid>
      <dc:creator />
      <dc:date>2010-02-02T13:07:03Z</dc:date>
    </item>
    <item>
      <title>aggr function: possible solution?</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-possible-solution/m-p/225699#M77966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;you are right , you need to use aggr function&lt;/P&gt;&lt;P&gt;the expression should look like this&lt;/P&gt;&lt;P&gt;=sum(aggr(if(score=100,1,0),system))&lt;/P&gt;&lt;P&gt;i attached an example too.&lt;/P&gt;&lt;P&gt;hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 13:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-possible-solution/m-p/225699#M77966</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2010-02-02T13:23:25Z</dc:date>
    </item>
    <item>
      <title>aggr function: possible solution?</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-possible-solution/m-p/225700#M77967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great,&lt;/P&gt;&lt;P&gt;Thanks for the help, that sorted it out! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 13:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-possible-solution/m-p/225700#M77967</guid>
      <dc:creator />
      <dc:date>2010-02-02T13:39:11Z</dc:date>
    </item>
  </channel>
</rss>

