Problem with Exceptional Aggregation

Hi Gurus
I have problem with Exceptional Aggregation.I have a cube which as following data
Plant , Fromcostcenter,ToCostcenter, g/l,fiscalyear/period, allocation %,amount
1             101234            102355       888881      001/2006            10       1000
1             101234            102355       888881      002/2006            10       1000   
1             101234             102345      888882      001/2006            10       1000
1             101234             102346      888893       001/2006            90      1000
1             101234             102346      888893       002/2006            90      1000
1            101234             102346      888984        001/2006           90       1000
I need summarized report as follows
Fromcostcenter tocostcenter  allocation%
101234                   102355         10
101234                   102346          90
But iam getting report as follows
101234   102355  30
101234   102355  270  
The allocation% keyfigure should not be accumulated, so for this i specified Exceptional aggregation but not worked.
Any Suggestions,please help me.
Thanks
Raghu

Hi
I am also having same problem. Did you get a solution for your problem? Can you please tell me how did u manage to display 10 and 90 instead of 30 and 270?
I also tried exceptional aggregation if more than one value. but not working.
Thanks

Similar Messages

  • Query Problem With Exception Aggregation

    Hello,
             I have two I/O 0Customer and 0Cont_Acct and also I have a Infoset made out of both. Here is the problem i am trying to solve,
    I want to figure out the customers who has more than five contract accounts associated with each customer number.
    Here is the solution I approached....
        1) Created a formula variable counter on the KF # of data records (which is provided in the Infoset automatically ) with exception aggregation total while referencing the contract acct I/O.
       2) Kept my customer #  and Contract acct on my rows area.
    The results I am getting is less than satisfying.  I am expecting   this output below.
    Customer #                 Cont Acct                  Total No of Cont.acct
    A                                  1001                                1
                                         1002                                1
                                         1003                                1
                                                                                  3
    B                                  1007                                 1
    I would appreciate anybody's help in this.  Thanks a lot.
    -A

    Hi,
    We have the same problem and raised an OSS ticket. They replied us with the note 1257455 which offers all ways of improving performance in such cases. I guess there s nothing else to do, but to precalculate this exception aggregated formula in data model via transformations or ABAP.
    By the way, cache can not help you in this case since exc. agg. is calculated after cache retrieval.
    Hope this helps,
    Sunil

  • Problem with exception aggregation

    Hi forums,
      Can any one help in this issue?
    We checked the data in the ECOM cube for the order 63349312 where it is giving 6 records eventhough we are deleting the adjacent duplicates of the order number in the start routine. (Is it like the deletion of adjacent duplicates happen in data packet level instead of happening in the entire cube level? B'cos the same order might present in the different packets.)
        Hence the data is aggregating for the key figure, 'Number of Days' in the ECOM report. But if we check the keyfigure properties in the RSA1, there we selected the Exception Aggregation as 'First Value' and aggregation reference char as 'ZN_CORD' (Order number). Still it is aggregating the number of days value in the report.
    Regards,
    Charan.

    Hi Rohit,
             We are doing same procedure as you mentioned. We assigned order number as refer characteristic to keyfigure No. of days in infi object level. But this operation is not working in report level
          Order number     ZCUDATE                  ZN_GSTRP            ZN_CORDKF     ZN_DAYSKF
            63349312     18.01.2009     01.10.2008     1,000     109
            63349312     18.01.2009     01.10.2008     1,000     109
            63349312     18.01.2009     01.10.2008     1,000     109
            63349312     18.01.2009     01.10.2008     1,000     109
            63349312     18.01.2009     01.10.2008     1,000     109
            63349312     18.01.2009     01.10.2008     1,000     109
    I want o/p as
    Order number     ZCUDATE                   ZN_GSTRP               ZN_CORDKF     ZN_DAYSKF
            63349312     18.01.2009     01.10.2008     1,000     109
    but it is showing as
    Order number     ZCUDATE                      ZN_GSTRP     ZN_CORDKF  ZN_DAYSKF
            63349312     18.01.2009     01.10.2008     1,000            676

  • Query issue with exception aggregation

    Dear all,
    I have to solve the following reporting issue with BEx:
    Cube Structure:
    Cube A:
    Characteristics: Company Code, Article, Distribution Channel, Customer, FiscalYear/Period
    Key-Figures: Sales Val., Sales Qty.
    Cube B:
    Characteristics: Company Code, Article, FiscalYear/Period
    Key-Figures: COGS
    I simply want to multiply:  Sales Qty@COGS = NODIM(Sales Qty) * COGS,
    but this calculation should be valid for all characteristics of my cube A, even if I do not have them available in Cube B (like Customer and Distribution Channel). Additionally the calculated totals of my characteristics must be correct so that I can apply in second step a Margin Calculation: Sales Val. - Sales Qty@COGS which is valid on single level, as well as on total level.
    I started to setup calculated key-figures
    COGS1 = NODIM(Sales Qty) * COGS   with Exception aggregation TOTAL by Company Code
    COGS2 = COGS1 with Exception Aggregation TOTAL by Article
    and this worked fine for both characteristics. If I use COGS2 in my report I get correct figures in a drilldown by Company Code and Article.
    I enhanced the calculation by
    COGS3 = COGS2 with Exception Aggregation TOTAL by Distribution Channel, but the result in this case is 0. I guess the result is 0, as the characteristic Distribution Channel is not availble in Cube B.
    Any ideas how to solve this? Is there probably a different (more elegant) approach, as I fear that having all the exception aggregations my query runtime/ressource consumption will be awful.
    Thanks for any idea,
    Andreas

    Hi,
    You should define a new selection for COGS having Constant Selection on DC as defined in following link for PRICE with CUSTOMER.
    [http://help.sap.com/saphelp_nw70/helpdata/en/46/91f0f090ea13e8e10000000a155369/content.htm]
    and then apply your formulas....
    hope it will solve the problem...
    Regards.

  • Non Cumulative KF VS Normal KF with exception aggregation

    What is the purpose that is served by "non-cumulative key figures" and is not served by "normal key figures with exception aggregation"?
    Inflow and Outflow can also be mapped into a single key figure at update rules level.
    Why un-necessary complications like two additional KFs and marker update etc?
    Why can't we store actual inventory value on daily basis in a NORMAL key figure with exception aggregation on time?
    Also, I heard that data amount will be huge if you don't use non-cumulative key figure. I am not able to understand why?
    I HAVE ALREADY GONE THROUGH ALL THE HELP DOCUMENTATION AND ALL THE PREVIOUS THREADS. I DID NOT GET ANSWER TO THESE QUESTIONS.
    THANKS IN ADVANCE,
    Anup

    Anup,
    Q1: Why can we not store the actual inventory against the person -
    In this case you will end up storing day wise information of stock for the person / material - this will lead to increase of your data volumes depending on the scenario.
    Example :
    Day Level stock only
    Record Structure :
    Material | End of day snapshot Stock| date
    pipe | 100|20.2.2008
    pipe|100|21.02.2008
    pipe|100|22.02.2008
    pipe|80|23.02.2008
    Here you can notice that the material pipe has been sold on 23.03.3008 and no sale has happened previously - however since your extractor will give you end of day stock for all materials you will get 2 additional records
    In an opening and closing stock scenario
    Opening stock
    Marker|
    pipe|100|20.02.2008
    opening stock|closing stock
    pipe|100|100
    pipe|100|100
    pipe|100|80
    Here the values will get overwritten and compared with the marker and calculate that the stock is 80 or 100 depending on the date. I am not able to give a proper example but hope I have addressed it in part.
    Also it is a Non *** KF because if you look at stock for pipe over 3 days you will get 300 in the first scenario - this is wrong
    and for the next scenario with opening and closing stock
    it will ideally be
    100 ( your marker) -100100-100100-100+80 = 80
    this calculation is done at runtime and gives the right output.
    In the other case you can check stock only on a date basis and with the assumption that the stock data is current for that day.
    Hope it addresses youor question.
    Arun
    Day 1:

  • Forumla Variable with Exception Aggregation

      Hello,
    I've CKF in BEx, in this CKf there is replacement path Formula variable calculating number of documents.
    Formula variable is replacing the value of Document number infoobject.
    So definition of CKF is -> Replacement path Formula variable *1
    Ckf is restricted to summation with  Exception aggregation on Document number.
    This implementation is working fine but issue is its taking lot of time in query ,like while checking RSRT olap :data transfer(Event ID) is taking lot of time,majority of the query execution time and counter is going somewhere around 100K.
    Do you know is there a way we can implement this count in transformation?
    Thanks in Advance!

    Hi,
    Doing SUM in transformation takes a long time as you need to read all the content in target.
    So it is better to fine tune the query.
    1) Is query running long time for small selections ?
    2) Trace the query in RSRT and check where it is taking long time like Data base level , Application level
    Thanks
    Jagan

  • Query Performance with Exception aggregation

    Hello,
    My Query Keyfigures has exception aggregation on order line level as per requirement.
    Currently cube holds 5M of records, when we run query its running more than 30min.
    We cont remove exception aggregation.
    Cube is alredy modeled correctly and we dont want to use the cache.
    Does anybody can please advice if there is any other better approach to improve query performance with exception agg?
    Thanks

    Hi,
    We have the same problem and raised an OSS ticket. They replied us with the note 1257455 which offers all ways of improving performance in such cases. I guess there s nothing else to do, but to precalculate this exception aggregated formula in data model via transformations or ABAP.
    By the way, cache can not help you in this case since exc. agg. is calculated after cache retrieval.
    Hope this helps,
    Sunil

  • Problem with ROLAP Aggregations

    Hi there
    I am having trouble with specifying aggregations in a ROLAP cube in OWB 10gR2.
    I have a cube that contains a number of measures as well as a degenerate dimension and a Date/Time field.
    Problem is that I cannot find out how to specify agreggation for only some measures in the cube.
    Obviously I don't want to aggregate the degenerate dimension or the date/time field. But additionally, only some of the measures need to be aggregates and furthermore I want to be able to specify a different method of aggregation on different measures.
    Please help, am going nuts!
    Thanks in advance
    Jays :-)

    Hi, Beverley.  
    Thank you for visiting Apple Support Communities.  
    I understand that you are unable to trim clips using iMovie.  I would need a little more information on how you were attempting to trim a clip to provide a better answer.  However, make sure you have the movie project open and are selecting the clip that you wish to trim as this will activate the clip trimmer.  
    Trim clips
    -Jason H.  

  • Problem with exceptions in the query designer

    Hi all,
    i got this problem, there is a formula, than calculate  "A"   %A   "B", This bring a value %, ok.
    in my exceptions i got this ranges:
    1  to  99,4  Bad 9
    99,5 to 100  Good 1,
    i execute the query and this bring the results, when there is a line with value 99,5, this appear without color, the rest is ok,
    why this happend? whats the solution? please guys, i'll award you

    i m sorry the values are
    0 to 99,4 Bad 9
    99,5 to 100 Good 1
    i solve it by this way
    0  to 99,49999999999  Bad 9
    99,5000000001 to 100 Good 1
    i looks like the internal value of the KF is with a lot of decimal, the problem here is, when the value is 99,5 exactly, dont appear color, but i dont know how else solve it, any advice?

  • DataBaseMetadata.getAttributes - Problem with Exception

    I am Using Oracle 10g and have an exception when I run this code:
    public void getAttributes(String schema, String type){
         try{
              md=conn.getMetaData();
              rs=md.getAttributes(null,"SYSTEM","TABLE1", null);
              while(rs.next()){
                   System.out.println(rs.getString("ATTR_NAME"));
         }catch(SQLException ex){
              System.out.println(ex.getSQLState());
              System.out.println(ex.getErrorCode());
              System.out.println(ex);
    The Error code which is written by System.out.println(ex), it might be in greek font and doesn't appear in distinguishable font, so I can't understand in what the error refers to.
    The ex.getSQLState() has the value null
    and
    the ex.getErrorCode() has the value 17023
    I try it and the exception is triggered in this line:
    rs=md.getAttributes(null,"SYSTEM","TABLE1", null);
    Can someone help me with what this problem might be?

    If you want to use a JDBC standard technique and don't want to query Oracle's dictionary tables (such as USER_TABLES or ALL_TABLES), then your choices are pretty much DatabaseMetaData and ResultSetMetaData.
    In my limited experience, both of these work fine on Oracle 10g; I don't understand why you're having problems.
    You might try testing against a different schema, something other than SYSTEM. SYSTEM is special, and it wouldn't surprise me if it was different here. Also, SYSTEM should never ever ever be used for anything but Oracle's own database objects; if you have used SYSTEM for your own things, I would encourage you to reinstall your database, or at least to stop immediately. Also, your programs should never connect to the database as the SYSTEM user; only DBAs shuld use this account for the (very rare) upgrade and maintenance tasks that require it; most DBA tasks should be done from a seperate account that has been granted the DBA role.

  • Problem with Exception Worksheet using Data from Supply Plan Data Table

    I added a series for a flag that indicates whether product is sourced from multiple manufacturing sites for a given customer and item. The flag is on the supply plan data table because it depends on the scenario. I created an exception worksheet for when the flag is set but all combinations are being displayed. If the flag is not set for a given combo then "Selected Page Item has No Data" is displayed in place of the table. I want only the combinations that meet the exception to be shown. I tried setting up an exception worksheet for customer shipments which is also on the supply plan data table but saw the same issue with all combinations being displayed whether or not the condition is met. Does anyone know of any issues with using exception worksheets with the supply plan data table? I searched the documentation and saw that exceptions behave differently with promotion series but this isn't a promotion.
    I'm using Demantra version 7.2. Thanks for any help!
    Edited by: user9253208 on Mar 30, 2010 6:40 AM

    Thanks. We have come up with a workaround. While the combinations on the left are not affected by the exception, the data in the main table is so we moved as many levels as possible into the table. The performance is slow but the data is more useful, especially when exported into Excel. I was hoping for a better solution but I guess we'll just have to stick with what we've come up with.

  • Problem with Exception

    Hi,
    I don't understand why I get a error here, any help really appreciatet :)
    this is the error I get from the last catch block:
         Unreachable catch block for IOException. This exception is never thrown from the try statement body
    import java.io.*;
    import java.net.*;
    public class OutputThread extends Thread
         PrintWriter write;
         protected static Socket out;
         protected static DataOutputStream output;
         protected String choice = "";
         protected String newProduct = "";
         protected String newPrice = "";
         protected String newAmount = "";
         public OutputThread (Socket clientSocket)
                   out = clientSocket;
                   write = null;
         public void setChoice(String choice)
              this.choice = choice;
         public void addProduct(String newProduct, String newPrice)
              this.newProduct= newProduct;
              this.newPrice = newPrice;
         public void addSale (String newProduct, String newAmount)
              this.newProduct = newProduct;
              this.newAmount = newAmount;
    protected static void initialize()
         try
              output = new DataOutputStream(out.getOutputStream());
         catch(IOException e)
              System.out.println(e.getMessage());
    public void sendData(double data)
         try
              output.writeDouble(data);
         catch(IOException e)
              System.out.println(e.getMessage());
         public void run()
              try
                   write = new PrintWriter(out.getOutputStream(), true);
              catch (UnknownHostException e)
                   System.out.println(e.getMessage());
                   System.exit(1);
              catch (IOException e)
    System.err.println(e.getMessage());
    System.exit(1);
              try
                        BufferedReader stdIn = new BufferedReader(
    new InputStreamReader(System.in));
                        String userInput;
                   while (!choice.equals(null))
                        if(choice.equals("1"))
                             write.println("addProduct");
                             userInput = newProduct;
                             write.println(userInput);
                             userInput = newPrice;
                             write.println(userInput);
                             choice = "0";
                        else if(choice.equals("2"))
                             write.println("addSales");
                             userInput = newProduct;
                             write.println(userInput);
                             userInput = newAmount;
                             write.println(userInput);
                             choice = "0";
                        else if(choice.equals("3"))
                             write.println("getTotalValue");
                             choice = "0";
              catch(IOException e)
              System.out.println(e.getMessage());
    }

    I mena that in here make your try and catch statement consecutive with each other.
    ry
    BufferedReader stdIn = new BufferedReader(
    new InputStreamReader(System.in));
    String userInput;
    while (!choice.equals(null))
    if(choice.equals("1"))
    write.println("addProduct");
    userInput = newProduct;
    write.println(userInput);
    userInput = newPrice;
    write.println(userInput);
    choice = "0";
    else if(choice.equals("2"))
    write.println("addSales");
    userInput = newProduct;
    write.println(userInput);
    userInput = newAmount;
    write.println(userInput);
    choice = "0";
    else if(choice.equals("3"))
    write.println("getTotalValue");
    choice = "0";
    catch(IOException e)
    System.out.println(e.getMessage());
    }

  • Problem with Task Aggregation from Project Server with old Project Server permissions mode.

    Hi, I have installed Sharepoint 2013 with all CU, and Project Server 2013 with June CU update. Later, I attached database from old Project Server 2010 database, all was OK, but now I have my PWA with old Project Server permissions mode.
    After that I have created MySite with users from AD of my company, it's OK, but Task Aggregation not working. Moreover, I have not any errors on the MyTask page.
    You can see that I can insert private tasks, but I can not see any tasks from pwa, however I have a lot of tasks there. Please help me.
    My search works well amd WMA Service too.
    Where directly crawler search the tasks? Maybe there are errors in search log with that ulrs?

    Hi,
    did you setup the Work Management Service Application in the Central Administration? If yes, please check if the Applicationpool account of the Work Managment Service has full Access to the User Profile Service Application (over the Ribbon | Permissions).
    Check also if your Projects are published so that you have a Project Workspace for each Project. In the workspaces you should have a list "Tasks" or "Tasks1" for migrated workspaces. This is important because only Tasks from the workspaces' Tasklist are
    shown in the Mysite
    In any other cases please check the ULS Log and/or the Application Event log. Especially have a look to Distributed Cache Service and the Feed Cache.
    Bernhard Fischer [MVP] | www.wodey.de

  • Problem with Exception - "Content not allowed in Prolog"

    I was using org.w3c.dom package to handle all my XML data in JDK 1.4.1 environment. Recently, I have upgraded my Java version to JDK 1.5. When I run my code, while parsing the XML data, it is throwing an Exception - "Content not allowed in Prolog". I know that this Exception is because the XML data does not contain xml declaration in prolog.
    But, I have the code that queries the database and builds the records in XML format. The sample XML is as follows.
    <list>
    <row>
    <fld1>Val1</fld1>
    <fld2>Val2</fld2>
    </row>
    <row>
    <fld1>Val3</fld1>
    <fld2>Val4</fld2>
    </row>
    </list>
    I want to know why the JVM is validating for XML declaration? Why can't it continue parsing the XML in case it is well formed? Is there any way so that I can skip this validation?
    Please reply. I am in a big trouble because, in case some changes are required, I need to implement in many places of my API.

    The isELIgnored flag just fixes this page.
    If you want to use EL on your pages a better solution is to update your web.xml file:
    EL Expressions in JSP2.0 containers:
    In order to evaluate EL expressions, your web.xml file must be up to date.
    If web.xml states that it is version 2.3 or less, then EL evaluation is disabled by default for backwards compatibility.
    So if your web.xml starts with this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>Replace it with this
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
    Cheers,
    evnafets

  • Problem with exception raised in UDM_GENWL

    Exception "CNTRL ERROR" is raised when UDM_GENWL transaction code is to be executed in background. Please tell me how to correct that one.

    Please reply whether I have to apply any SAP-NOTE

Maybe you are looking for

  • Inbox empty in Mail 3 after 10.5.2 update and IMAP prefix "fix"

    After updating to 10.5.2, Mail detected an "error" in my IMAP configuration and asked me if I wanted to "fix" it by changing the prefix (or root or some such) to "INBOX". Since I assumed it knew what it was talking about, I said yes. It completely ch

  • Unable to view iMessage photos on iPhone6

    Hi,  Today I received my new iPhone 6, My brother sent me a photo through iMessage, but I am not able to view the photo in my iPhone 6, where as I can see the photo on my mac.   Any suggestions?

  • Make finder search current folder by default

    Is there a way to do this. I don't like that when I'm in a folder and type to search it searches the whole mac and not the folder I'm in primarily. Thanks in advance.

  • Center the Spry Menu?

    How does one get the Spry menu to align center (relative to page size)? I'm doing a horizontal menu and it always stays left-justified. I can't seem to get it to stay center via CSS editing or anything like that. Any help? Thanks!

  • Not getting Data on to Mobile Device

    Hi All, We have configured MAM3.0 SR05 Laptop version. The application is working fine with some users and not getting any data on some other users. Even we are able to see that data in the backend and middleware using MEREP_MON. Even it shows status