<?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: creating aggregation in total table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/creating-aggregation-in-total-table/m-p/485300#M181310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;The correct formula is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vPYAVGMAT)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TOTAL_QUANTITY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MAT_MATERIAL_CODE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MONTH_MONTH_OF_YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Nov 2013 11:15:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-06T11:15:48Z</dc:date>
    <item>
      <title>creating aggregation in total table</title>
      <link>https://community.qlik.com/t5/QlikView/creating-aggregation-in-total-table/m-p/485295#M181305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have to create a total table started from another one which is more detailed, so I'm talking about an aggregation.&lt;BR /&gt;My actual table is highlighted in violet in the attachment.&lt;BR /&gt;It displays the quantity and the Previous Year Price for each material. Now I have to create the same indicators but at a higher level namely Material_Group.&lt;BR /&gt;Being an average, the calculation is made in this way:&lt;BR /&gt;First, I have to multiply the quantity by the PY price for each material, then I'll summarize the results and finally I'll divide it by the total quantity. Is in fact the weighted average:&lt;BR /&gt;sum(Qty*PY Price)/sum(Qty).&lt;BR /&gt;Considering in my table I won't have the detail for material, I think it will be necessary to use some aggregations.&lt;BR /&gt;I've tried to do something like this:&lt;BR /&gt;(sum(aggr(PY_Price, MAT_MATERIAL_CODE))*&lt;BR /&gt;sum(aggr(QUANTITY,MAT_MATERIAL_CODE)))/&lt;BR /&gt;sum(QUANTITY)&lt;BR /&gt;but I've got an wrong numerator. &lt;BR /&gt;Do you have any ideas?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 22:19:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-aggregation-in-total-table/m-p/485295#M181305</guid>
      <dc:creator />
      <dc:date>2013-11-05T22:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: creating aggregation in total table</title>
      <link>https://community.qlik.com/t5/QlikView/creating-aggregation-in-total-table/m-p/485296#M181306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should probably use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(PY_Price*QUANTITY)/Sum(QUANTITY) &lt;/P&gt;&lt;P&gt;and use MAT_MATERIAL_CODE as dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 06:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-aggregation-in-total-table/m-p/485296#M181306</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-11-06T06:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: creating aggregation in total table</title>
      <link>https://community.qlik.com/t5/QlikView/creating-aggregation-in-total-table/m-p/485297#M181307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried but I didn't get any correct results. I'm focusing on getting the numerator value (PY*QTY)&lt;/P&gt;&lt;P&gt;I've attached my application. In the MATERIAL LEVEL block I have all the materials, on the row PY AVG MAT*QTY I calculated the product between PY and QTY.&lt;/P&gt;&lt;P&gt;Now I should do the same in the GROUP LEVEL block, on the row avg*QTY, but I don't get any result.&lt;/P&gt;&lt;P&gt;For example, for January I'm expecting to get the sum of&amp;nbsp; PY AVG MAT*QTY for all materials. It would be 157126.346.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 10:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-aggregation-in-total-table/m-p/485297#M181307</guid>
      <dc:creator />
      <dc:date>2013-11-06T10:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: creating aggregation in total table</title>
      <link>https://community.qlik.com/t5/QlikView/creating-aggregation-in-total-table/m-p/485298#M181308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I did it. It was missing the aggregation for month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 10:35:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-aggregation-in-total-table/m-p/485298#M181308</guid>
      <dc:creator />
      <dc:date>2013-11-06T10:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Re: creating aggregation in total table</title>
      <link>https://community.qlik.com/t5/QlikView/creating-aggregation-in-total-table/m-p/485299#M181309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I wa wrong. It works only for the january e february. For march I got wrong numbers. I don't understand why. It's very strange.&lt;/P&gt;&lt;P&gt;Please, see in the attachment the formula I used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 11:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-aggregation-in-total-table/m-p/485299#M181309</guid>
      <dc:creator />
      <dc:date>2013-11-06T11:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: creating aggregation in total table</title>
      <link>https://community.qlik.com/t5/QlikView/creating-aggregation-in-total-table/m-p/485300#M181310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;The correct formula is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vPYAVGMAT)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TOTAL_QUANTITY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MAT_MATERIAL_CODE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MONTH_MONTH_OF_YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 11:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-aggregation-in-total-table/m-p/485300#M181310</guid>
      <dc:creator />
      <dc:date>2013-11-06T11:15:48Z</dc:date>
    </item>
  </channel>
</rss>

