<?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: How to aggregate an expression based on dimensions in a pivot or straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-aggregate-an-expression-based-on-dimensions-in-a-pivot-or/m-p/63213#M767875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems to have worked... had to make few changes in the script though&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(TOTAL &amp;lt;Name, Month, Year, Quarter&amp;gt;Aggr($(w1)/Sum(TOTAL &amp;lt;Name,Month,Year,Quarter&amp;gt; $(w1))*(Aggr(RangeSum(Above(if(IsNull($(E%M)),10,$(E%M)), 0, RowNo())), ItemId, Name, YearMonth)/Aggr(RowNo(), ItemId, Name, YearMonth)), ItemId, Year, Quarter, Month, Name))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206148_Capture.PNG" style="height: 203px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2018 15:25:55 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-06-25T15:25:55Z</dc:date>
    <item>
      <title>How to aggregate an expression based on dimensions in a pivot or straight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-aggregate-an-expression-based-on-dimensions-in-a-pivot-or/m-p/63208#M767870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new in using QlikView and I am not able to figure out a problem that I supposed pretty simple to solve (at least I hope it).&lt;/P&gt;&lt;P&gt;Following my scenario: I have a table with an expression (MPE_w1) linked to other ones and I need to sum the rows of this column based on dimensions of 'Month' and 'Name'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to calculate this quantity using this expression: sum(aggr(sum(MPE_w1),Name,Month)) but the result is equal to 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached you will find an excel file with an example of my data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for the help&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/How-to-aggregate-an-expression-based-on-dimensions-in-a-pivot-or/m-p/63208#M767870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How aggregate an expression based on dimensions in a pivot or streight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-aggregate-an-expression-based-on-dimensions-in-a-pivot-or/m-p/63209#M767871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;Sum(TOTAL &amp;lt;Name, Month, Year, Quarter&amp;gt; Aggr(&lt;/SPAN&gt;$(w1)/Sum(TOTAL &amp;lt;Name, Month, Year, Quarter&amp;gt; $(w1))*MPE&lt;SPAN style="color: #ff0000;"&gt;, ItemId, Year, Quarter, Month, Name))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 17:12:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-aggregate-an-expression-based-on-dimensions-in-a-pivot-or/m-p/63209#M767871</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-21T17:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: How aggregate an expression based on dimensions in a pivot or streight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-aggregate-an-expression-based-on-dimensions-in-a-pivot-or/m-p/63210#M767872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just tried your solution but the result still is zero for the whole column&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2018 07:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-aggregate-an-expression-based-on-dimensions-in-a-pivot-or/m-p/63210#M767872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-22T07:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate an expression based on dimensions in a pivot or straight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-aggregate-an-expression-based-on-dimensions-in-a-pivot-or/m-p/63211#M767873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a qvw to test and play around with?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2018 16:02:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-aggregate-an-expression-based-on-dimensions-in-a-pivot-or/m-p/63211#M767873</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-22T16:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate an expression based on dimensions in a pivot or straight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-aggregate-an-expression-based-on-dimensions-in-a-pivot-or/m-p/63212#M767874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached you will find the qvw file with both pivot and straight tables, thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 09:34:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-aggregate-an-expression-based-on-dimensions-in-a-pivot-or/m-p/63212#M767874</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-25T09:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate an expression based on dimensions in a pivot or straight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-aggregate-an-expression-based-on-dimensions-in-a-pivot-or/m-p/63213#M767875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems to have worked... had to make few changes in the script though&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(TOTAL &amp;lt;Name, Month, Year, Quarter&amp;gt;Aggr($(w1)/Sum(TOTAL &amp;lt;Name,Month,Year,Quarter&amp;gt; $(w1))*(Aggr(RangeSum(Above(if(IsNull($(E%M)),10,$(E%M)), 0, RowNo())), ItemId, Name, YearMonth)/Aggr(RowNo(), ItemId, Name, YearMonth)), ItemId, Year, Quarter, Month, Name))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206148_Capture.PNG" style="height: 203px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 15:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-aggregate-an-expression-based-on-dimensions-in-a-pivot-or/m-p/63213#M767875</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-25T15:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate an expression based on dimensions in a pivot or straight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-aggregate-an-expression-based-on-dimensions-in-a-pivot-or/m-p/63214#M767876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect, I will study your project to understand how it works, but in any case the output is what I was looking for. Thank you!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 16:12:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-aggregate-an-expression-based-on-dimensions-in-a-pivot-or/m-p/63214#M767876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-25T16:12:29Z</dc:date>
    </item>
  </channel>
</rss>

