<?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: AGGR Function Not working for Partial Sum Percentages in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AGGR-Function-Not-working-for-Partial-Sum-Percentages/m-p/121775#M457682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Youssef,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula worked perfectly. Thanks for your assistance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-B-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2018 19:02:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-12T19:02:32Z</dc:date>
    <item>
      <title>AGGR Function Not working for Partial Sum Percentages</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Function-Not-working-for-Partial-Sum-Percentages/m-p/121773#M457680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am developing an app in which the users requirements are to calculate the YoY % Growth for different sales categories by month. Since the user wanted to be able to expand and collapse field dimensions (i.e. Category and Month) I used a Pivot table to display the data. One nuance in the requirements was that the user wanted to be able to see Actuals and Forecast. (i.e. Actual sales would be represented by months that have already completed while current month and future months would be displayed as Forecast sales.) The SUM(AGGR( function works fine with the IF Statement I have in terms of 2018 sales, 2017 sales and YoY Sales Difference. However when I use the AGGR function for the YoY % Growth, the partial sum total is incorrect. In my example below the partial sum reads -40% when it should be +26%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need assistance getting correct value shown on the YoY % Growth line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anything is this request is confusing I'd be glad to help clarify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;-B-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 15:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Function-Not-working-for-Partial-Sum-Percentages/m-p/121773#M457680</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T15:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Function Not working for Partial Sum Percentages</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Function-Not-working-for-Partial-Sum-Percentages/m-p/121774#M457681</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;try this as an expression for YoY %:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(SUM(AGGR(IF(SUM({&amp;lt;YEAR={'2018'},SCENARIO={'ACTUALS'}&amp;gt;}UNITS)=0,SUM({&amp;lt;YEAR={'2018'},SCENARIO={'FORECAST'}&amp;gt;}UNITS),SUM({&amp;lt;YEAR={'2018'},SCENARIO={'ACTUALS'}&amp;gt;}UNITS)),MONTH, CATEGORY))&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;SUM(AGGR(IF(SUM({&amp;lt;YEAR={'2017'},SCENARIO={'ACTUALS'}&amp;gt;}UNITS)=0,SUM({&amp;lt;YEAR={'2017'},SCENARIO={'FORECAST'}&amp;gt;}UNITS),SUM({&amp;lt;YEAR={'2017'},SCENARIO={'ACTUALS'}&amp;gt;}UNITS)),MONTH, CATEGORY)))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;SUM(AGGR(IF(SUM({&amp;lt;YEAR={'2017'},SCENARIO={'ACTUALS'}&amp;gt;}UNITS)=0,SUM({&amp;lt;YEAR={'2017'},SCENARIO={'FORECAST'}&amp;gt;}UNITS),SUM({&amp;lt;YEAR={'2017'},SCENARIO={'ACTUALS'}&amp;gt;}UNITS)),MONTH, CATEGORY))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 15:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Function-Not-working-for-Partial-Sum-Percentages/m-p/121774#M457681</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-09-12T15:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Function Not working for Partial Sum Percentages</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Function-Not-working-for-Partial-Sum-Percentages/m-p/121775#M457682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Youssef,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula worked perfectly. Thanks for your assistance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-B-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 19:02:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Function-Not-working-for-Partial-Sum-Percentages/m-p/121775#M457682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T19:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Function Not working for Partial Sum Percentages</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Function-Not-working-for-Partial-Sum-Percentages/m-p/121776#M457683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 19:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Function-Not-working-for-Partial-Sum-Percentages/m-p/121776#M457683</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-09-12T19:33:44Z</dc:date>
    </item>
  </channel>
</rss>

