<?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: Needs to aggregate at the highest level in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Needs-to-aggregate-at-the-highest-level/m-p/1274335#M400439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the explanation Sunny, I did replaced those labels and now the expressions are behaving as expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jan 2017 15:16:58 GMT</pubDate>
    <dc:creator>clondono</dc:creator>
    <dc:date>2017-01-19T15:16:58Z</dc:date>
    <item>
      <title>Needs to aggregate at the highest level</title>
      <link>https://community.qlik.com/t5/QlikView/Needs-to-aggregate-at-the-highest-level/m-p/1274329#M400433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to create an aging table, the issue is that the same product ID may be sold by different business.&amp;nbsp; As a result the only way to get the correct results is to include the Product Id (lowest level) in the charts (table 1 and table 2 screenshot).&amp;nbsp; I need to create a chart that has no product ID as a column (table 3 screenshot), see screenshot below:&lt;/P&gt;&lt;P&gt;When product ID is not included in the chart then the results are not as expected.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149940_Capture.JPG" style="height: 306px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;This are my formulas for aging:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aging 0-3:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=If([13WK_Bill]&amp;gt;0 and [13WK_Bill]&amp;lt;= [CurrentInv], [13WK_Bill], if([13WK_Bill]&amp;gt; 0 and [13WK_Bill]&amp;gt; [CurrentInv], [CurrentInv],0))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aging 4-6:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=if(([CurrentInv]-[Aging0-3]=0) or ([CurrentInv] &amp;lt; ([13WK_Bill] + [26Wk_Bill])), ([CurrentInv]-[Aging0-3]), [26Wk_Bill])&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aging 7-9:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=if(([CurrentInv]-[Aging0-3]-[Aging4-6]= 0) or ([Aging0-3]+[Aging4-6]+([CurrentInv]-[Aging0-3]-[Aging4-6]))&amp;lt; ([13WK_Bill]+[26Wk_Bill]+[39Wk_Bill]),([CurrentInv]-[Aging0-3]-[Aging4-6]), [39Wk_Bill])&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aging 10-12:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=if(([CurrentInv]-[Aging0-3]-[Aging4-6]-[Aging7-9]= 0) or ([Aging0-3]+[Aging4-6]+[Aging7-9]+([CurrentInv]-[Aging0-3]-[Aging4-6]-[Aging7-9]))&amp;lt; ([13WK_Bill]+[26Wk_Bill]+[39Wk_Bill]+[52Wk_Bill]),([CurrentInv]-[Aging0-3]-[Aging4-6]-[Aging7-9]), [52Wk_Bill])&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aging &amp;gt;12:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=[CurrentInv]-[Aging0-3]-[Aging4-6]-[Aging7-9]-[Aging10-12]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 21:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Needs-to-aggregate-at-the-highest-level/m-p/1274329#M400433</guid>
      <dc:creator>clondono</dc:creator>
      <dc:date>2017-01-18T21:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Needs to aggregate at the highest level</title>
      <link>https://community.qlik.com/t5/QlikView/Needs-to-aggregate-at-the-highest-level/m-p/1274330#M400434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be Aggr() over the Product dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Sum(Aggr(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;If([13WK_Bill]&amp;gt;0 and [13WK_Bill]&amp;lt;= [CurrentInv], [13WK_Bill], if([13WK_Bill]&amp;gt; 0 and [13WK_Bill]&amp;gt; [CurrentInv], [CurrentInv],0))&lt;SPAN style="color: #ff0000;"&gt;, Business, ProductID))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 21:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Needs-to-aggregate-at-the-highest-level/m-p/1274330#M400434</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-18T21:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Needs to aggregate at the highest level</title>
      <link>https://community.qlik.com/t5/QlikView/Needs-to-aggregate-at-the-highest-level/m-p/1274331#M400435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your confusion might be whether you're referring to the column name from your straight table or a field name within a table that has the same name.&lt;/P&gt;&lt;P&gt;For example is 'CurrentInv' a field in a table within your data model as well as the name of the column in your straight table?&lt;/P&gt;&lt;P&gt;I think in your Aging expressions you are wanting it to refer to the column name in your straight table.&lt;/P&gt;&lt;P&gt;If so, then you either need to restate the expression you are using for the 'CurrentInv' column(probably sum(CurrentInv) and put it in your aging expressions everywhere that you have [CurrentInv].&amp;nbsp; &lt;/P&gt;&lt;P&gt;Or change the name of the column to a name that doesn't exist in the data model lik 'Current Invoices'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 22:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Needs-to-aggregate-at-the-highest-level/m-p/1274331#M400435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-18T22:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Needs to aggregate at the highest level</title>
      <link>https://community.qlik.com/t5/QlikView/Needs-to-aggregate-at-the-highest-level/m-p/1274332#M400436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny.&amp;nbsp; This works very well for the first expression (aging 0-3), still getting the incorrect results when applying the logic to the other expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 04:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Needs-to-aggregate-at-the-highest-level/m-p/1274332#M400436</guid>
      <dc:creator>clondono</dc:creator>
      <dc:date>2017-01-19T04:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Needs to aggregate at the highest level</title>
      <link>https://community.qlik.com/t5/QlikView/Needs-to-aggregate-at-the-highest-level/m-p/1274333#M400437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Wallo, yes I am using the table columns names in the expressions.&amp;nbsp; I dont have any field names like those in my data model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 04:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Needs-to-aggregate-at-the-highest-level/m-p/1274333#M400437</guid>
      <dc:creator>clondono</dc:creator>
      <dc:date>2017-01-19T04:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Needs to aggregate at the highest level</title>
      <link>https://community.qlik.com/t5/QlikView/Needs-to-aggregate-at-the-highest-level/m-p/1274334#M400438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I saw that you mentioned below that you are using expression labels, but for Aggr() function to work, you will have to replace those labels with the actual expressions. Aggr() function doesn't recognize labels. So, as soon your replace the labels with there actual definition, you should be good to go with all your expressions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 10:13:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Needs-to-aggregate-at-the-highest-level/m-p/1274334#M400438</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-19T10:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Needs to aggregate at the highest level</title>
      <link>https://community.qlik.com/t5/QlikView/Needs-to-aggregate-at-the-highest-level/m-p/1274335#M400439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the explanation Sunny, I did replaced those labels and now the expressions are behaving as expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 15:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Needs-to-aggregate-at-the-highest-level/m-p/1274335#M400439</guid>
      <dc:creator>clondono</dc:creator>
      <dc:date>2017-01-19T15:16:58Z</dc:date>
    </item>
  </channel>
</rss>

