<?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 How to get total values inside aggr()? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-total-values-inside-aggr/m-p/1291494#M403730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We need to calculate weighted ratings for multiple measures. The formula looks like below.&lt;/P&gt;&lt;P&gt;Rating = Sum( Aggr(MeasureRating * Max(Weight), Measure)) / Sum(Aggr(max(Weight), Measure))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each measure, each organization, there is a MeasureRating. When select any of Organization, it will show Rating for all measures this organization has. We also want to show the overall rating for the whole network (include all organizations). When select any one organization this overall rating should not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already calculated each MeasureRating for the whole network, however, some organization has less number of measures. If I select this kind of organization, the "Measure" I used inside Aggr() is less than total number of measures the whole network has. Is that possible to use Total function inside Aggr to get all measures?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see my attachment, when select o2, it should show same as select o1 or not select anything. (0.82)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2017 15:32:25 GMT</pubDate>
    <dc:creator>fionna51</dc:creator>
    <dc:date>2017-02-03T15:32:25Z</dc:date>
    <item>
      <title>How to get total values inside aggr()?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-total-values-inside-aggr/m-p/1291494#M403730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We need to calculate weighted ratings for multiple measures. The formula looks like below.&lt;/P&gt;&lt;P&gt;Rating = Sum( Aggr(MeasureRating * Max(Weight), Measure)) / Sum(Aggr(max(Weight), Measure))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each measure, each organization, there is a MeasureRating. When select any of Organization, it will show Rating for all measures this organization has. We also want to show the overall rating for the whole network (include all organizations). When select any one organization this overall rating should not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already calculated each MeasureRating for the whole network, however, some organization has less number of measures. If I select this kind of organization, the "Measure" I used inside Aggr() is less than total number of measures the whole network has. Is that possible to use Total function inside Aggr to get all measures?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see my attachment, when select o2, it should show same as select o1 or not select anything. (0.82)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 15:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-total-values-inside-aggr/m-p/1291494#M403730</guid>
      <dc:creator>fionna51</dc:creator>
      <dc:date>2017-02-03T15:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get total values inside aggr()?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-total-values-inside-aggr/m-p/1291495#M403731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;='Network AVG = ' &amp;amp; Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;OrgID&amp;gt;}&lt;/SPAN&gt;Aggr(Only(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;{&amp;lt;OrgID&amp;gt;}&lt;/STRONG&gt;NetworkRating) * Max(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;{&amp;lt;OrgID&amp;gt;}&lt;/STRONG&gt;Weight), Measure)) / Sum(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;{&amp;lt;OrgID&amp;gt;}&lt;/STRONG&gt;Aggr(max(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;{&amp;lt;OrgID&amp;gt;}&lt;/STRONG&gt;Weight), Measure))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 15:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-total-values-inside-aggr/m-p/1291495#M403731</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-03T15:35:23Z</dc:date>
    </item>
  </channel>
</rss>

