<?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: Calculating in pivot table with aggregation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-in-pivot-table-with-aggregation/m-p/563133#M210145</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;yes, please attach QVW if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jul 2013 12:12:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-16T12:12:08Z</dc:date>
    <item>
      <title>Calculating in pivot table with aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-in-pivot-table-with-aggregation/m-p/563129#M210141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Hi everybody,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;I have an expression like this in a pivot table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 4.3pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 4.3pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Functionality Availability Weighted = &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; padding-left: 26.099999999999998px; margin-top: 4.32pt; text-indent: -0.29in;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp; Sum (ServiceMinutesWeighted) - Sum(OutageWeighted))/ Sum (ServiceMinutesWeighted)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; padding-left: 26.099999999999998px; margin-top: 4.32pt; text-indent: -0.29in;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;In Qlikview, I put like this and it works:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 4.3pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Functionality Availability Weighted = &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; padding-left: 26.099999999999998px; margin-top: 4.32pt; text-indent: -0.29in;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt; (sum(aggr(sum({$&amp;lt; TempDate = {'&amp;gt;=$(vDateMin)&amp;lt;=$(vDateMax)'}&amp;gt;}&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;ServiceMinutesWeighted),[Application Name PlanningIT],ApplicationElement,Functionality)) &lt;BR /&gt;&lt;SPAN style="color: black;"&gt;-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; padding-left: 26.099999999999998px; margin-top: 4.32pt; text-indent: -0.29in;"&gt;&lt;SPAN style=": ; color: black; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;sum( {$&amp;lt; StartDateOutagenum = {'&amp;gt;=$(vDateMin)&amp;lt;=$(vDateMax)'}&amp;gt;} OutageWeighted))&lt;BR /&gt;/&lt;BR /&gt;(sum(aggr(sum({$&amp;lt; TempDate = {'&amp;gt;=$(vDateMin)&amp;lt;=$(vDateMax)'}&amp;gt;} ServiceMinutesWeighted),[Application Name PlanningIT],ApplicationElement,Functionality))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Now I need to calculate the following expression, which uses the result of the expression above:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;A&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;plication Availability Weighted = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt; ( Sum (Functionality Availability weighted * weight Functionality))/&amp;nbsp; Sum (weight Functionality)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;I do not know how to calculate this because the field weight Functionality is different for each functionality and I need to do the agregation only by ),[Application Name PlanningIT],ApplicationElement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;My&amp;nbsp; example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;IMG __jive_id="43929" class="jive-image-thumbnail jive-image" height="192" onclick="" alt="imagep4.gif" src="https://community.qlik.com/legacyfs/online/43929_imagep4.gif" width="840" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; margin-left: 0.29in; margin-top: 4.32pt; text-indent: -0.29in;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; padding-left: 26.099999999999998px; margin-top: 4.32pt; text-indent: -0.29in;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; The column p3 represents the first calculation, that is&amp;nbsp; for &lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Functionality Availability Weighted. The column p4 is the&amp;nbsp; Functionality Availability weighted * weight Functionality. I need to do a sum of 13.686+20+25.417+7+25.417 and divide by sum (weight Functionality), that in this case is 100.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; padding-left: 26.099999999999998px; margin-top: 4.32pt; text-indent: -0.29in;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; padding-left: 26.099999999999998px; margin-top: 4.32pt; text-indent: -0.29in;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Could you help me?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; padding-left: 26.099999999999998px; margin-top: 4.32pt; text-indent: -0.29in;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; padding-left: 26.099999999999998px; margin-top: 4.32pt; text-indent: -0.29in;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: arial,helvetica,sans-serif; color: #000066;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 11:19:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-in-pivot-table-with-aggregation/m-p/563129#M210141</guid>
      <dc:creator />
      <dc:date>2013-07-11T11:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating in pivot table with aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-in-pivot-table-with-aggregation/m-p/563130#M210142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any suggestions, please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 12:03:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-in-pivot-table-with-aggregation/m-p/563130#M210142</guid>
      <dc:creator />
      <dc:date>2013-07-16T12:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating in pivot table with aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-in-pivot-table-with-aggregation/m-p/563131#M210143</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;Attach your sample applicaiton if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 12:08:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-in-pivot-table-with-aggregation/m-p/563131#M210143</guid>
      <dc:creator />
      <dc:date>2013-07-16T12:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating in pivot table with aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-in-pivot-table-with-aggregation/m-p/563132#M210144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;what kind of information you would need?&amp;nbsp; The document?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 12:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-in-pivot-table-with-aggregation/m-p/563132#M210144</guid>
      <dc:creator />
      <dc:date>2013-07-16T12:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating in pivot table with aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-in-pivot-table-with-aggregation/m-p/563133#M210145</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;yes, please attach QVW if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 12:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-in-pivot-table-with-aggregation/m-p/563133#M210145</guid>
      <dc:creator />
      <dc:date>2013-07-16T12:12:08Z</dc:date>
    </item>
  </channel>
</rss>

