<?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 Re: Weighted calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Weighted-calculation/m-p/467982#M487359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you weight your "value2" with a "val&lt;SPAN style="font-size: 10pt;"&gt;ue1". Then a straightforward&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum([value1] * [value2]) / Sum( [value1] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2013 17:15:42 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2013-02-25T17:15:42Z</dc:date>
    <item>
      <title>Weighted calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Weighted-calculation/m-p/467981#M487358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey @all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to bring this calculation to a QlikView expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp; [value1_month1] * [value2_month1] + &lt;/P&gt;&lt;P&gt;&amp;nbsp; [value1_month2] * [value2_month2] + &lt;/P&gt;&lt;P&gt;&amp;nbsp; [value1_month3] * [value2_month3]&lt;/P&gt;&lt;P&gt;) / (&lt;/P&gt;&lt;P&gt;&amp;nbsp; [value1_month1] + [value1_month2] + [value1_month3]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is just an example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result should be reacting on the selection of the month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you select March, April, June and July this 4 should be used in the calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made a few tries with the aggr() function before but have not a working result yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any possibilities instead of using a fixed number of months?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S.Koenen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 16:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weighted-calculation/m-p/467981#M487358</guid>
      <dc:creator />
      <dc:date>2013-02-25T16:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Weighted-calculation/m-p/467982#M487359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you weight your "value2" with a "val&lt;SPAN style="font-size: 10pt;"&gt;ue1". Then a straightforward&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum([value1] * [value2]) / Sum( [value1] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 17:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weighted-calculation/m-p/467982#M487359</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-02-25T17:15:42Z</dc:date>
    </item>
  </channel>
</rss>

