<?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 not rolling up properly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Weighted-Average-not-rolling-up-properly/m-p/201089#M59344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why aggregate anything in the script? How about simply using the formula in the chart expression?&lt;/P&gt;&lt;P&gt;If you could post a sample, it would be easier to find out what else might be wrong...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV id="refHTML"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Apr 2010 05:35:18 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2010-04-06T05:35:18Z</dc:date>
    <item>
      <title>Weighted Average not rolling up properly</title>
      <link>https://community.qlik.com/t5/QlikView/Weighted-Average-not-rolling-up-properly/m-p/201085#M59340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have weighted averages in my app and when I start to roll them up in dimensions the weighted averages are not working. Has anyone faced this issue? I compute the weighted average in script as x= SUM(A * B)/SUM(B).&lt;/P&gt;&lt;P&gt;The chart expression is Avg(x) and it is not giving me the right answer at higher dimensions. At the lowest level of detail and 2-3 dimensions up the numbers look fine but start skewing beyond that point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 21:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weighted-Average-not-rolling-up-properly/m-p/201085#M59340</guid>
      <dc:creator>avastani</dc:creator>
      <dc:date>2010-04-01T21:27:00Z</dc:date>
    </item>
    <item>
      <title>Weighted Average not rolling up properly</title>
      <link>https://community.qlik.com/t5/QlikView/Weighted-Average-not-rolling-up-properly/m-p/201086#M59341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Avg() is a simple average. So your chart is taking the simple average of some precalculated weighted averages. As you've found out, that doesn't work.&lt;/P&gt;&lt;P&gt;You need to do the weighting in the chart itself, not in the script. Your chart expression needs to be sum(A*B)/sum(B) in order for the weighted averages to roll up properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 22:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weighted-Average-not-rolling-up-properly/m-p/201086#M59341</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-04-01T22:21:41Z</dc:date>
    </item>
    <item>
      <title>Weighted Average not rolling up properly</title>
      <link>https://community.qlik.com/t5/QlikView/Weighted-Average-not-rolling-up-properly/m-p/201087#M59342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that is correct, so I modified that and do sum(A*B) and sum(B) separately in the script and the sum(A*B)/sum(B) as a separate expression in the chart itself.&lt;/P&gt;&lt;P&gt;however, qlikview is still not reporting the right answers when rolled up for both of them.&lt;/P&gt;&lt;P&gt;in case 1 where I am do the sum/s in the script, it works fine at low levels but starts giving problems at higher levels of roll up say roll up 4 onwards&lt;/P&gt;&lt;P&gt;in case 2 it gives incorrect results when the rolled up values are broken at lower levels.&lt;/P&gt;&lt;P&gt;i know it is something really simple that i am missing but can't get what it is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Apr 2010 15:07:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weighted-Average-not-rolling-up-properly/m-p/201087#M59342</guid>
      <dc:creator>avastani</dc:creator>
      <dc:date>2010-04-02T15:07:34Z</dc:date>
    </item>
    <item>
      <title>Weighted Average not rolling up properly</title>
      <link>https://community.qlik.com/t5/QlikView/Weighted-Average-not-rolling-up-properly/m-p/201088#M59343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what to say. Sounds like it should work. Do you have an example of the problem that you could post?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 01:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weighted-Average-not-rolling-up-properly/m-p/201088#M59343</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-04-06T01:00:17Z</dc:date>
    </item>
    <item>
      <title>Weighted Average not rolling up properly</title>
      <link>https://community.qlik.com/t5/QlikView/Weighted-Average-not-rolling-up-properly/m-p/201089#M59344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why aggregate anything in the script? How about simply using the formula in the chart expression?&lt;/P&gt;&lt;P&gt;If you could post a sample, it would be easier to find out what else might be wrong...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV id="refHTML"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 05:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weighted-Average-not-rolling-up-properly/m-p/201089#M59344</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-04-06T05:35:18Z</dc:date>
    </item>
  </channel>
</rss>

