<?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: Aggregation issue in Straight Table/Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation-issue-in-Straight-Table-Pivot-Table/m-p/68196#M777871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Youssef,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks For your Email. Yes both are correct . Also i am using Second Dimensions as ContSize.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Problem is that there are three divisions and all three divisions will have all the three Cont Size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this % Share column should be the Sum of the Value for that Row / Sum of the value for that whole Division&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i am trying to so the same by giving the numerator as Sum and Denominator as Aggr(Sum(),Division).&lt;/P&gt;&lt;P&gt;The Problem is that Since we have another Value in Dimension it is not happening Properly. But i need the Second Dimension as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2018 09:36:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-20T09:36:13Z</dc:date>
    <item>
      <title>Aggregation issue in Straight Table/Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-issue-in-Straight-Table-Pivot-Table/m-p/68194#M777869</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 have an particular requirement where i am trying to aggregate the data based on an One dimension. There are two dimensions in Total for the same graph. The Sum of the Values is getting calculated properly for this Year and Last Year. But i need to calculate the sum based on division as well and divide the individual numbers by this cumulative sum to get the percentage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e for instance Last Year Under Division A say i am getting 20 for Container A and 40 for Container B and 40 for Container C then i need to get 20 % for A's Share and 40% for B's Share and 40 % for C's Share. But the Problem is that the Aggregation is not happening properly under Division Alone. I need to specify the ContainerType as well which will be common for Division B and Division C as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Note : The First Dimension is DivisionNaming(based on which Aggregation Should Happen) and the second dimension is ContSize. If i remove ContSize it is correct. But need that dimension as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached an Sample Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Formula that i am using is below&lt;/P&gt;&lt;P&gt;((Sum({&amp;lt;FinYear={'$(=MAX(FinYear)-1)'},originalCostingDate= {"&amp;gt;=$(=MonthStart(today()-365))&amp;lt;=$(=today()-365)"},ContType=,ContSize=&amp;gt;} LineTEU))/&lt;/P&gt;&lt;P&gt;Sum(Aggr(Sum({&amp;lt;FinYear={'$(=MAX(FinYear)-1)'},originalCostingDate= {"&amp;gt;=$(=MonthStart(today()-365))&amp;lt;=$(=today()-365)"},ContType=,ContSize=&amp;gt;}TOTAL LineTEU),DivisionNaming1))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vigneshwaran.M.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-issue-in-Straight-Table-Pivot-Table/m-p/68194#M777869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation issue in Straight Table/Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-issue-in-Straight-Table-Pivot-Table/m-p/68195#M777870</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 can't find the Measure_field used on your expression a&lt;SPAN style="font-size: 13.3333px;"&gt;nd the dimension name used in the aggr() function &lt;/SPAN&gt;above in the file you have attached:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Measure field :LineTEU&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Dimension: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DivisionNaming1&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 08:10:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-issue-in-Straight-Table-Pivot-Table/m-p/68195#M777870</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-04-20T08:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation issue in Straight Table/Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-issue-in-Straight-Table-Pivot-Table/m-p/68196#M777871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Youssef,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks For your Email. Yes both are correct . Also i am using Second Dimensions as ContSize.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Problem is that there are three divisions and all three divisions will have all the three Cont Size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this % Share column should be the Sum of the Value for that Row / Sum of the value for that whole Division&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i am trying to so the same by giving the numerator as Sum and Denominator as Aggr(Sum(),Division).&lt;/P&gt;&lt;P&gt;The Problem is that Since we have another Value in Dimension it is not happening Properly. But i need the Second Dimension as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 09:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-issue-in-Straight-Table-Pivot-Table/m-p/68196#M777871</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-20T09:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation issue in Straight Table/Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-issue-in-Straight-Table-Pivot-Table/m-p/68197#M777872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you misunderstood me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your attached file, where is the field: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LineTEU ??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;you're making the sum on that field&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 09:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-issue-in-Straight-Table-Pivot-Table/m-p/68197#M777872</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-04-20T09:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation issue in Straight Table/Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-issue-in-Straight-Table-Pivot-Table/m-p/68198#M777873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi v&lt;SPAN style="font-size: 13.3333px;"&gt;igneshwaran,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Try the below expressions&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;((Sum({&amp;lt;FinYear={'$(=MAX(FinYear)-1)'},originalCostingDate= {"&amp;gt;=$(=MonthStart(today()-365))&amp;lt;=$(=today()-365)"},ContType=,ContSize=&amp;gt;} LineTEU))/&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;((Sum({&amp;lt;FinYear={'$(=MAX(FinYear)-1)'},originalCostingDate= {"&amp;gt;=$(=MonthStart(today()-365))&amp;lt;=$(=today()-365)"},ContType=,ContSize=&amp;gt;} Total&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DivisionNaming1&lt;/SPAN&gt;&amp;gt;LineTEU))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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;Basically for numerator you want to total as per the Division naming field.In total you could pass the fields from the chart which should only be considered for calculation.&lt;BR /&gt;&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;Hope this helps.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 10:55:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-issue-in-Straight-Table-Pivot-Table/m-p/68198#M777873</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-20T10:55:09Z</dc:date>
    </item>
  </channel>
</rss>

