<?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 Weighted Average by sub-dimension Straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Weighted-Average-by-sub-dimension-Straight-table/m-p/818720#M288665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is probably an easy solution for you guys, but I have been struggling with it past 3 hours. &lt;/P&gt;&lt;P&gt;I scanned the community and there are many questions on weighted average but I cant seem to figure out my issue. Hopefully it is easy.&lt;/P&gt;&lt;P&gt;Current weighted Average formula for EGG_AGE:&lt;/P&gt;&lt;P&gt;Sum(Total EGG_AGE * Aggr(Sum(EGGS_SET), EGG_AGE)) / Sum(Total Aggr(Sum(EGGS_SET),EGG_AGE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works perfectly if I select a LOCATION_FROM (picture 1). However in a straight table with multiple LOCATION_FROM. It is a fixed value (See picture 2.)&lt;/P&gt;&lt;P&gt;The weighted EGG_AGE is based on the unique combination of EGG_SET by HATCH_ID (see picture 3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried adding LOCATION_FROM, or HATCH_ID in the AGGR function but none of them seemed to work correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Nov 2014 14:39:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-12T14:39:21Z</dc:date>
    <item>
      <title>Weighted Average by sub-dimension Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Weighted-Average-by-sub-dimension-Straight-table/m-p/818720#M288665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is probably an easy solution for you guys, but I have been struggling with it past 3 hours. &lt;/P&gt;&lt;P&gt;I scanned the community and there are many questions on weighted average but I cant seem to figure out my issue. Hopefully it is easy.&lt;/P&gt;&lt;P&gt;Current weighted Average formula for EGG_AGE:&lt;/P&gt;&lt;P&gt;Sum(Total EGG_AGE * Aggr(Sum(EGGS_SET), EGG_AGE)) / Sum(Total Aggr(Sum(EGGS_SET),EGG_AGE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works perfectly if I select a LOCATION_FROM (picture 1). However in a straight table with multiple LOCATION_FROM. It is a fixed value (See picture 2.)&lt;/P&gt;&lt;P&gt;The weighted EGG_AGE is based on the unique combination of EGG_SET by HATCH_ID (see picture 3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried adding LOCATION_FROM, or HATCH_ID in the AGGR function but none of them seemed to work correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 14:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weighted-Average-by-sub-dimension-Straight-table/m-p/818720#M288665</guid>
      <dc:creator />
      <dc:date>2014-11-12T14:39:21Z</dc:date>
    </item>
  </channel>
</rss>

