<?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 Problem in deriving Aggregated sum based on a Field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-in-deriving-Aggregated-sum-based-on-a-Field/m-p/476266#M177866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Good Afternoon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before going forward with the problem, please refer to the situation where I am representing the following data in a Pivot table: &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="74" style="width: 262px; height: 67px;" width="260"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl73" height="20" width="78"&gt;&lt;STRONG&gt;Warehouse&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl74" width="64"&gt;&lt;STRONG&gt;Plant&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;STRONG&gt;Occupancy in %&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl72" height="40" rowspan="2" style="border-top: medium none;"&gt;K01&lt;/TD&gt;&lt;TD class="xl71" style="border-left: medium none;"&gt;A016&lt;/TD&gt;&lt;TD class="xl71" style="border-left: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="20" style="border-left: medium none; border-top: medium none;"&gt;F013&lt;/TD&gt;&lt;TD class="xl71" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt;Occupancy in % = sum([Bin Occupancy]) of Plant / SUM([Bin Occupancy]) of 'Warehouse'&amp;nbsp; * 100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;** where [Bin Occupancy] is a calculated value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to get the Aggregated sum based on the 'Warehouse' with the below expression. Tried several ways but the problem persists.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum([Bin Occupancy]) / aggr(([Bin Occupancy]), Warehouse)&amp;nbsp; * 100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please assist.&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Nov 2013 08:25:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-11-22T08:25:05Z</dc:date>
    <item>
      <title>Problem in deriving Aggregated sum based on a Field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-deriving-Aggregated-sum-based-on-a-Field/m-p/476266#M177866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Good Afternoon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before going forward with the problem, please refer to the situation where I am representing the following data in a Pivot table: &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="74" style="width: 262px; height: 67px;" width="260"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl73" height="20" width="78"&gt;&lt;STRONG&gt;Warehouse&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl74" width="64"&gt;&lt;STRONG&gt;Plant&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;STRONG&gt;Occupancy in %&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl72" height="40" rowspan="2" style="border-top: medium none;"&gt;K01&lt;/TD&gt;&lt;TD class="xl71" style="border-left: medium none;"&gt;A016&lt;/TD&gt;&lt;TD class="xl71" style="border-left: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="20" style="border-left: medium none; border-top: medium none;"&gt;F013&lt;/TD&gt;&lt;TD class="xl71" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt;Occupancy in % = sum([Bin Occupancy]) of Plant / SUM([Bin Occupancy]) of 'Warehouse'&amp;nbsp; * 100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;** where [Bin Occupancy] is a calculated value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to get the Aggregated sum based on the 'Warehouse' with the below expression. Tried several ways but the problem persists.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum([Bin Occupancy]) / aggr(([Bin Occupancy]), Warehouse)&amp;nbsp; * 100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please assist.&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 08:25:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-deriving-Aggregated-sum-based-on-a-Field/m-p/476266#M177866</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-22T08:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in deriving Aggregated sum based on a Field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-deriving-Aggregated-sum-based-on-a-Field/m-p/476267#M177867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; (aggr(&lt;/STRONG&gt;&lt;STRONG style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum([Bin Occupancy]),Plant) / aggr(sum([Bin Occupancy]), Warehouse) ) * 100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this will not helpful for your then please attach sample file here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ashutosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 08:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-deriving-Aggregated-sum-based-on-a-Field/m-p/476267#M177867</guid>
      <dc:creator />
      <dc:date>2013-11-22T08:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in deriving Aggregated sum based on a Field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-deriving-Aggregated-sum-based-on-a-Field/m-p/476268#M177868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Did you gave a try using Total as below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; line-height: 115%; font-family: 'Helvetica','sans-serif'; font-size: 10pt; mso-ansi-language: EN;"&gt;Occupancy &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; line-height: 115%; font-family: 'Helvetica','sans-serif'; font-size: 10pt; mso-ansi-language: EN;"&gt;in % = sum([Bin Occupancy]) of Plant / SUM(&lt;STRONG&gt;Total&lt;/STRONG&gt; [Bin Occupancy]) of 'Warehouse'&amp;nbsp; * 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; line-height: 115%; font-family: 'Helvetica','sans-serif'; font-size: 10pt; mso-ansi-language: EN;"&gt;=sum([Bin &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; line-height: 115%; font-family: 'Helvetica','sans-serif'; font-size: 10pt; mso-ansi-language: EN;"&gt;Occupancy]) / aggr(&lt;STRONG&gt;Total&lt;/STRONG&gt; ([Bin Occupancy]), Warehouse)&amp;nbsp; * 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; line-height: 115%; font-family: 'Helvetica','sans-serif'; font-size: 10pt; mso-ansi-language: EN;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; line-height: 115%; font-family: 'Helvetica','sans-serif'; font-size: 10pt; mso-ansi-language: EN;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; line-height: 115%; font-family: 'Helvetica','sans-serif'; font-size: 10pt; mso-ansi-language: EN;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; line-height: 115%; font-family: 'Helvetica','sans-serif'; font-size: 10pt; mso-ansi-language: EN;"&gt;NR&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 08:31:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-deriving-Aggregated-sum-based-on-a-Field/m-p/476268#M177868</guid>
      <dc:creator />
      <dc:date>2013-11-22T08:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in deriving Aggregated sum based on a Field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-deriving-Aggregated-sum-based-on-a-Field/m-p/476269#M177869</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;Either case, it's not functioning. Please also make a note that Warehouse has two values = 'K01' and 'B01'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 08:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-deriving-Aggregated-sum-based-on-a-Field/m-p/476269#M177869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-22T08:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in deriving Aggregated sum based on a Field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-deriving-Aggregated-sum-based-on-a-Field/m-p/476270#M177870</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;Even after using dimentionality() function, I found a simple solution:&lt;/P&gt;&lt;P&gt;= &lt;SPAN style="font-size: 8pt;"&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;[Bin Occupancy]&lt;/SPAN&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: #0000ff; font-size: 8pt;"&gt;Total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Warehouse]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Bin Occupancy]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; font-size: 8pt;"&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;Vijit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 09:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-deriving-Aggregated-sum-based-on-a-Field/m-p/476270#M177870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-22T09:04:32Z</dc:date>
    </item>
  </channel>
</rss>

