<?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>Question Re: Query exception aggregation with SUMCT, SUMRT, SUMGT in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/query-exception-aggregation-with-sumct-sumrt-sumgt/qaa-p/10659453#M3885303</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your theoritical feedback I am already aware of them and they don't solve my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimitris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Oct 2014 07:20:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-10-21T07:20:39Z</dc:date>
    <item>
      <title>Query exception aggregation with SUMCT, SUMRT, SUMGT</title>
      <link>https://community.sap.com/t5/technology-q-a/query-exception-aggregation-with-sumct-sumrt-sumgt/qaq-p/10659451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Hello all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;We have the following scenario in which the BEx Query designer behaves in an unexpected way. There is an infocube which contains the employee id, the calendar month and the payroll amount for this combination. There is also the cost center of the employee which will be drilldown characteristic in rows of the following query.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;In the query we want to calculate the average payroll amount for a user-given calendar month interval drilled down in rows with the hierarchy of cost center -as already mentioned-, and as a second column the headcount of the employees whom the payroll amount is above average. For example, we have 3 employees in the Cost center A with the following salaries;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Employee A: 1000 euros&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Employee B: 1500 euros&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Employee C: 2500 euros&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;The average calculation is 1666,67 euros and consequently the correct headcount for cost center A is 2. The average payroll amount calcucation is implemented correctly with an exception aggregation of payroll amount to Employee characteristic with average of all non-zeros values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;For the headcount of the employees above average payroll we tried to implement a formula, let's call it "formula A", like the following; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;payroll amount &amp;gt;= SUMRT, SUMCT, SUMGT (Average Payroll Amount)&amp;nbsp; (all three options returned the same result).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;The result for the cost center hierarchy display was a boolean "1" in every node as certainly there were employees with salary over the average of every node (see attached and compare with the result if we use employee in the drilldown).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;If we used exception aggregation for the headcount formula A mentioned above, there was a warning that&amp;nbsp; that operators like SUMCT etc. cannot be used with exception aggregation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;If anyone has any idea about this calculation it would be very helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Thank you in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Dimitris Kakogiannis&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 21:47:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-exception-aggregation-with-sumct-sumrt-sumgt/qaq-p/10659451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-20T21:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Query exception aggregation with SUMCT, SUMRT, SUMGT</title>
      <link>https://community.sap.com/t5/technology-q-a/query-exception-aggregation-with-sumct-sumrt-sumgt/qaa-p/10659452#M3885302</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;Result&lt;/P&gt;&lt;P&gt;SUMCT &amp;lt;Operand&amp;gt;&lt;/P&gt;&lt;P&gt;Delivers the result of the operand in all rows or columns (see&lt;/P&gt;&lt;P&gt;Percentage Functions %CT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overall Result&lt;/P&gt;&lt;P&gt;SUMGT&amp;lt;Operand&amp;gt;&lt;/P&gt;&lt;P&gt;Delivers the overall result of the operand (see Percentage Functions&lt;/P&gt;&lt;P&gt;%GT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report Result&lt;/P&gt;&lt;P&gt;SUMRT&amp;lt;Operand&amp;gt;&lt;/P&gt;&lt;P&gt;Delivers the report result of the operand (to distinguish between the&lt;/P&gt;&lt;P&gt;overall and the report result, see also Percentage Functions %GT and&lt;/P&gt;&lt;P&gt;%RT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find the below link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/EN/03/17f13a2f160f28e10000000a114084/content.htm" title="http://help.sap.com/saphelp_nw70/helpdata/EN/03/17f13a2f160f28e10000000a114084/content.htm"&gt;http://help.sap.com/saphelp_nw70/helpdata/EN/03/17f13a2f160f28e10000000a114084/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.stechno.net/sap-notes.html?view=sapnote&amp;amp;id=635109" title="http://www.stechno.net/sap-notes.html?view=sapnote&amp;amp;id=635109"&gt;Problems with the SUMGT and SUMRT or %GT and %RT operators&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Phani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 03:53:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-exception-aggregation-with-sumct-sumrt-sumgt/qaa-p/10659452#M3885302</guid>
      <dc:creator>KodandaPani_KV</dc:creator>
      <dc:date>2014-10-21T03:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Query exception aggregation with SUMCT, SUMRT, SUMGT</title>
      <link>https://community.sap.com/t5/technology-q-a/query-exception-aggregation-with-sumct-sumrt-sumgt/qaa-p/10659453#M3885303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your theoritical feedback I am already aware of them and they don't solve my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimitris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 07:20:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-exception-aggregation-with-sumct-sumrt-sumgt/qaa-p/10659453#M3885303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-21T07:20:39Z</dc:date>
    </item>
  </channel>
</rss>

