<?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: Multiplication for multiple filters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiplication-for-multiple-filters/m-p/1210961#M462081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Avg({$&amp;lt;VARIABLEID={'GENMARKETFUELPRICE'}&amp;gt;}STATVALUE)&amp;nbsp; *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Avg({$&amp;lt;VARIABLEID= {'AVERAGEHEATRATE'}&amp;gt;}STATVALUE)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;, Date))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Oct 2016 20:12:03 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-10-21T20:12:03Z</dc:date>
    <item>
      <title>Multiplication for multiple filters</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-for-multiple-filters/m-p/1210960#M462080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to multiply 2 filtered sets from 1 Item but can't figure out how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My variable STATVALUE contains all the data, and my variable VARIABLEID contains the filters.&amp;nbsp; In this case I want to multiply the STATVALUE for VARIABLEID = AVERAGEHEATRATE with the STATVALUE for VARIABLEID = GENMARKETFUELPRICE.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried without sucess&lt;/P&gt;&lt;P&gt;avg( &lt;SPAN style="font-size: 13.3333px;"&gt;{$&amp;lt;VARIABLEID={'GENMARKETFUELPRICE'}&amp;gt;}STATVALUE * &lt;/SPAN&gt;{$&amp;lt;VARIABLEID={'AVERAGEHEATRATE'}&amp;gt;}STATVALUE )&lt;/P&gt;&lt;P&gt;avg( STATVALUE(IF(VARIABLEID='GENMARKETFUELPRICE')) * &lt;SPAN style="font-size: 13.3333px;"&gt;STATVALUE(IF(VARIABLEID='AVERAGEHEATRATE')) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;These values span over dates so if I split out the average to each piece it works for the monthly level but doesn't compute like I want at the annual level.&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Below I have&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;avg( &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;{$&amp;lt;VARIABLEID={'GENMARKETFUELPRICE'}&amp;gt;}STATVALUE)&amp;nbsp; * avg(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;{$&amp;lt;VARIABLEID={'AVERAGEHEATRATE'}&amp;gt;}STATVALUE )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/141592_Capture.PNG" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I compress to the annual level I want to see sum(GENMARKETFUELPRICE(ii)*HR(ii))&lt;/P&gt;&lt;P&gt; Any help with this would be much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 20:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-for-multiple-filters/m-p/1210960#M462080</guid>
      <dc:creator />
      <dc:date>2016-10-21T20:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication for multiple filters</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-for-multiple-filters/m-p/1210961#M462081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Avg({$&amp;lt;VARIABLEID={'GENMARKETFUELPRICE'}&amp;gt;}STATVALUE)&amp;nbsp; *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Avg({$&amp;lt;VARIABLEID= {'AVERAGEHEATRATE'}&amp;gt;}STATVALUE)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;, Date))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 20:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-for-multiple-filters/m-p/1210961#M462081</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-21T20:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication for multiple filters</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-for-multiple-filters/m-p/1210962#M462082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you that worked.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 21:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-for-multiple-filters/m-p/1210962#M462082</guid>
      <dc:creator />
      <dc:date>2016-10-21T21:11:57Z</dc:date>
    </item>
  </channel>
</rss>

