Exception Aggregation LAST

Hi all!
We use BCS and in my cube 0FISYEAR, 0FISPER3.
So i need to create KF like       amount in the end of the period
I need to create Exception aggregate for my KF ?
Exception Aggregation LAST and Referen. char. 0FISPER3
Right?
Thanks!

Hello Vikram
One possible solution I can think of is to use an extra ODS in order to hold your data in an aggregated form that suits you. Unfortunately the exceptional aggregation behaviour does not work outside reporting thus in the transfer rules from your data provider to this new ODS you should add a formula checking whether the new record to be transfered to the ODS has a date newer than the ones already transfered in the ODS. Else it should skip the current record and proceed to the next one.
Another possible solution would be to use the APD and transfer the results of the query you are already playing in an ODS (this way you take advantage of the exceptional aggregation behavior) and by transfering your records to a second ODS you can achieve the aggregation you need.
Assign points if any of the above helped

Similar Messages

  • Exception aggregation - Last Value

    Hi,
    We are having requirement where we have a table in non R/3 system for SKU - Customer level closing stocks on particular day are maintained. We want to create a cube for the table in BI. This table contains entries for SKU + Customer for diff days. We want to show the closing stock of last(/latest) day for which Customer+ SKU record exists. To achieve this we have used Calculated Key figure on Closing stock with Exception Aggregation - Last value with ref to Calendar Day.
    It woks fine only if I have Customer & SKU both used in query. But we have to show these stocks aggregated on Plant level. (Customer are linked to Plants and it is directly avbl in our cube). In this case aggregation does'nt work.
    Lets say following are the closing stocks for SKU- M1 & 3 customers from Plant = 1101
              date-> 1/1/2007  2/1/2007  3/1/2007
    Cust1             10                           15
    Cust2                            20
    Cust3             25            
    In above case if i have to see closing stock on 3/1/2007 for SKU-M1 @plant 1101 (sum of latest closing stock @ all customer sites under plant 1101), i should get = 60 (152025). But it gives me 15 only.
    Could anyone explain how to design a query for this? Or in cube design/uploads it can be managed.
    Regards,
    Vikram.

    Hello Vikram
    One possible solution I can think of is to use an extra ODS in order to hold your data in an aggregated form that suits you. Unfortunately the exceptional aggregation behaviour does not work outside reporting thus in the transfer rules from your data provider to this new ODS you should add a formula checking whether the new record to be transfered to the ODS has a date newer than the ones already transfered in the ODS. Else it should skip the current record and proceed to the next one.
    Another possible solution would be to use the APD and transfer the results of the query you are already playing in an ODS (this way you take advantage of the exceptional aggregation behavior) and by transfering your records to a second ODS you can achieve the aggregation you need.
    Assign points if any of the above helped

  • How to determine the "Last Value" in exception aggregation

    Hi gurus,
    I have a KeyFigure with an exception aggregation -Last value- by time.
    I report on a multiprovider ("containing" a infocube and a realtime infocube with BPS-InputLayout). I can correct separate Items with this BPS-Layout. So, at the end I have 2 values for one item.
    So, by these facts, my report shows the the last value for the specific KeyFigure, but I expected that both values (the value in the infocube and the correction via BPS)are sumed up.
    As this is due to the exception aggregation not the case, I could "overwrite" the normal value in the infocube with the BPS.
    But SAP determines the normal value in the Infocube as "Last Value", not the one in the correction cube, which is entered via BPS.
    How does SAP determine the "last value" as I can´t see any date...
    Thanks in advance!

    Thank you for your answer...
    I got the soltion by myself.
    I thought, Last Value means the last Value, depending on the time, but in my opinion the function last value should be called "Greatest Value".
    All figures with the same value for the reference characteristc are aggregated anyway.

  • What is an Exception Aggregation?Give an example?

    What is an Exception Aggregation?Give an example?

    Hi,
    Examples of Exception Aggregation: Last Value and Average
    http://help.sap.com/saphelp_nw04s/helpdata/en/d2/e0173f5ff48443e10000000a114084/frameset.htm
    Scenarios for the Use of an Exception Aggregation
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/e0173f5ff48443e10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0b8dfe6-fe1c-2a10-e8bd-c7acc921f366
    Exception aggregation ?
    Hope this helps............
    Rgs,
    I.R.K

  • First and last exception aggregation

    From one of the doc, I got the below info:
    For FIR, LAS Exception Aggregation,
    If being used for cumulative key figures:  Completeness of values with respect to reference characteristic necessary.
    If the reference charac being used is non time char.  then Sorting is done ascending according to key (internal presentation)
    Whatdo the above two points mean?
    Thanks
    Simmi

    hi Simmi,
    can please point the doc ?
    1st point, with respect to reference characteristic, i think it means which characteristic to be used for reference, normally date (time characteristic);
    date----
    key figure
    01.01.2007---- 10
    02.01.2007-----20
    10.01.2007-----30
    then FIR/first will be 10; and LAS/last = 30
    2nd point
    if reference characteristic is non time characteristic, e.g zcustomer, then sort is done ascending according to key, e.g
    zcustomer-key---description
    001----
    Simmi
    002----
    Linggam
    003----
    Prakash
    and we have data
    zcustomer------key figure
    003----
    10
    001----
    25
    002----
    70
    then consider to FIR/LAS, this will be sorted as
    zcustomer------key figure
    001----
    25
    002----
    70
    003----
    10
    then FIR is 25 and LAS = 10
    hope it's clear for you and help.

  • Last Value Exception Aggregation

    Hi.
    I have a KF with excpetion aggregation with Last Value based on CALWEEK. I have to calculate the 'for the month' and the YTD value for this in a query. When I execute the query, the system fetches the last value for the month for 'for the month'. However, it gets the same last value for the YTD as well. How do I change this to get the sum of last value of all the months for the YTD Value. For example, if I am looking in sep 2008, the for the month value should be the last week of Sep 2008 and the YTD should be the sum of all the last values for months Jan -08 to Sep-08.
    Cheers
    Anand

    Hello Vikram
    One possible solution I can think of is to use an extra ODS in order to hold your data in an aggregated form that suits you. Unfortunately the exceptional aggregation behaviour does not work outside reporting thus in the transfer rules from your data provider to this new ODS you should add a formula checking whether the new record to be transfered to the ODS has a date newer than the ones already transfered in the ODS. Else it should skip the current record and proceed to the next one.
    Another possible solution would be to use the APD and transfer the results of the query you are already playing in an ODS (this way you take advantage of the exceptional aggregation behavior) and by transfering your records to a second ODS you can achieve the aggregation you need.
    Assign points if any of the above helped

  • Constant Selections and Exception Aggregation

    Hi,
    Can You please tell me
    1) what is constant selections?
    2) what is Exception Aggregations?
    Thanks and Regards.
    Naresh.

    Hi,
    example for the use of standard aggregation and exception aggregation for a key figure is a key figure for the non-cumulative value
    with non-cumulative values such as warehouse stock, you want to total up the warehouse stock for various articles and warehouses (standard aggregation), but for the month you want to determine the ending inventory (LAST aggregation) (exception aggregation in regard to the time characteristic Calendar Month)
    for more info go through the below link
    http://help.sap.com/saphelp_nw04/helpdata/EN/d2/e0173f5ff48443e10000000a114084/content.htm
    For constant selection go through the belwo link
    http://help.sap.com/saphelp_nw70/helpdata/EN/46/91f0f090ea13e8e10000000a155369/content.htm
    Regards,
    Marasa.

  • Exception (Aggregation) in Hierarchy nodes results

    Hi All,
    We have a requirement to sum all values (as results in hierarchy levels) based on the value of a specific characteristics. example as below is what we want to achieve. Country, Product group, materials are all characteristics and this is viewed as hierarchy in the query. In each material there is a calculation components that will shown the value of Sales Qty, Price/unit and Amount. What we want is to sum up ONLY the Amount value and presented in the hierarchy nodes so that we can see how much sales we did by product group and subsequently by country as whole. If we drill across we will be able to achieve this but we want to drill down as we have the time characteristics and variances at the columns. and no, we do not want user to drill across the calculation components. This query is used in Integrated Planning for planning purposes integrated with BO and that is the structure of the planning layout we want. "Calculation component" is a infoobject that contains 'sales qty', 'price/unit' and 'sales amount' as master data values. 
    I have tried exception aggregation on calc component infoobject for 'LAST VALUE'. and it did capture only the Sales Amount value as result for node Calc Components. But the other results node State, country and Region also takes LAST VALUE.. which is not what i want. what i want is esseentially summation of all Sales amount for each calculation components by state, country and region.
                                                       Last Year  |  Variance   | Current Year |   Jan | Feb | Mar |......
    Region X                                              200  (sum of all country's sales amount)
    ->Country A                                          200  (sum of all states' sales amount) 
       -> State Y1                                          80 (sum of all components's sales amount)
           ->Calc Components Z1                    30
              - Sales Qty                                   10
              - Price/Unit                                     3
              - Sales Amount                             30
          ->Calc Components Z2                    50
              - Sales Qty                                     5 
              - Price/Unit                                   10
              - Sales Amount                             50
       -> State Y2                                        120
           ->Calc Components Z1                   40
              - Sales Qty                                   10
              - Price/Unit                                     4
              - Sales Amount                             40
          ->Calc Components Z2                    80
              - Sales Qty                                   10 
              - Price/Unit                                     8
              - Sales Amount                             80
    any help would be appreciated...
    eddie

    Please try the below steps and I hope it should work for you.
    Instead of calculated keyfigures,try to use local formula .Because i think sometimes CKF will not give the expected result if you use exception aggregation (not sure though,but i used only local formulas)
    1. Create a first local keyfigure (Say F1)for the calculation and use exception aggreagation as 'Average' and reference characteristics as 'PDU'.
    2. Create  a second keyfigure ( Say F2) using the first keyfigure(F1) and use exception aggregation as 'Average' and reference characteristics as 'Sales Document', if you need the values based on average of the sales documents and hide the first keyfigure(F1)
    I consider Sales document is the first level and PDU is the second level ( i mean lowest  level) . Because you need to consider these sequencens as well when you design the exception aggregation.
    Likewise you can create nested aggregations based on your requirements.
    Please do let me know if it works.
    Thanks.

  • Exceptional Aggregation in Query Designer

    Hello Gurus,
    we have an existing  Report at the Material Level on the InfoCube.
    Each Material may have multiple POs and we are having multiple
    records for each PO varying the date. Now the user want to view
    only the record latest changed Record at the PO level
    and Sum of all the records at the Material Level.
    For this i have created a CKF using the Exception Aggregation
    as Maximum for the 0calday. But client want the Report at Material Level
    he dont want the PO's details. When i remove the PO from the report
    it gives the result for only the latest PO not all the PO for that Material.
    For Example we are having below records in the cube.
    PO             Material     Calday       Qty         Price
    101            ABC          1/12           100         10
    101            ABC          2/12            100         10
    101            ABC          3/12            100         11
    102            ABC          4/12           100         10
    104            ABC          5/12            100         10
    103            ABC          7/12            100         11
    I am getting the result with PO in Rows as Below
    PO             Material     Calday       Qty         Price
    101            ABC          3/12            100         11
    102            ABC          4/12           100         10
    104            ABC          5/12            100         10
    103            ABC          7/12            100         11
    When I remove the PO's From the Rows then it will display
    as below i am placing the calday for under standing the
    question actually it is not present in the  output of the below report only.
            Material     Calday       Qty         Price
              ABC         7/12          100         11
    Which is not currect I have to get the Result as
    Material            Qty         Price
        ABC              500         42
    My Concerns:
    !. Kindly let me know if it is possible and what are the
    other things that i need to consider.
    2. Did it will impact the performance.
    Waiting for your quick replies
    Thanks & Regards
    KK
    Edited by: KK on Dec 23, 2009 11:08 AM
    Edited by: KK on Dec 23, 2009 11:15 AM
    Edited by: KK on Dec 23, 2009 11:22 AM

    Hi KK
    Confirmation:
    First I need to confirm one thing,
    as you mentioned expected output is,
    Material            Qty         Price
        ABC              500         42
    But I think, it should be
    Material            Qty         Price
        ABC              400         42
    right?
    Answer:
    Can you please try below steps and let me know whether it is working as expected or not
    Create a basic Key figure for calday and include it in your InfoCube. In the transformation, assign it to same fileld which is a source of calday.
    In query, Create a calculated key figure based on calday key figure with exception aggr as last value and reference characteristics as PO.
    Regards
    Rohit

  • KF aggregation/exception aggregation options

    Hi
    There is one KF that has defined as
    1)aggregation option SUM ,
    2) Exception aggregation option Last Value
    3) aggregation Ref char 0CALDAY.
    4)cumulative value radio button s option is on in Cumulative/Noncumulative values option.
    These options can be found in KF declaration in the second Tab.
    I understand that from the query point of the KF will display last value/given calday. What is the use of aggregation option SUM (option 1 above)? can you give me one example please.
    also one more question what is the use of Ncum Value with Ncum Value change?
    Thanks
    Vennela

    Hi,
    Here you have specified that aggregation type should be 'last value' for reference characteristic CALDAY. For all other characteristics, it shoule be SUM. That mean if calday is part of query, then KF will have Last value for CALDAY. If calday is not part of query, then it will be summation.
    For ex, lets assume that we have calday, cost center as characteristics and head count as keyfigure. When you have both calday and cost center in your query, then it is going to display last value of KF head count in the result, which is practical.
    if you have only cost center in your query, then head count value will be sum for that particular cost center. We might have many sales offices in a cost center, so head count will get aggregated for all sales offices under cost center.
    Hope this clarifies.
    Best Regards,
    Rajani

  • Exception aggregation 'Average of all values'

    Hi,
    What is Exception aggregation 'Average of all values' wrt a reference characteristic. an how do I use it in Bex?
    -Simmi

    hi,
    it determines how the key figure is aggregated in the BEx in relation to the exception characteristic, in your case it's averaged for all values.
    another case sample maybe you need to report stock, which should not accumulated, but the last value, then you can choose 'last value', with reference chacarteristic to certain time characteristic.
    you may also use it for 'calculated key figure' in BEx to get average value.
    http://help.sap.com/saphelp_nw04s/helpdata/en/82/f2dc37f0f12313e10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/6f/56853c08c7aa11e10000000a11405a/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/9d/76563cc368b60fe10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/d2/e0173f5ff48443e10000000a114084/content.htm

  • How to display top Position Level using conditions / Exception Aggregation

    Hello,
    I have the following problem where I need to list out the row with the highest POSITION LEVEL (with reference to BUSINESS PARTNER). I have tried out all possibilities including Conditions and Exception Aggregation (MAX) but nothing seems to work. Conditions work to an extent i.e. it shows the top position level but unfortunately for the entire query result i.e. only one row is displayed in the result (the first row to satisfy the condition) instead of all the rows for each Business Partner. POSITION LEVEL is a KEY FIGURE value. It also exists as a CHARACTERISTIC under a diferent name in the cube. How can I solve this? Pls help.
    This is how the report looks at present...
    First Name     Last Name     Business Partner Nr.     Date of Birth     Postalcode     City     Position Level
    Testfallini     Enzweiler     3000000020     21.10.1990     63674     New York     1
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     2
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     1
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     1
    Thu-Ha     Tran     3000069951     25.12.1988     93047     Atlanta     2
    Thu-Ha     Tran     3000069951     25.12.1988     93047     Atlanta     1
    This is how the report looks when I use conditions...
    First Name     Last Name     Business Partner Nr.     Date of Birth     Postalcode     City     Position Level
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     2
    This is how the report should look...
    First Name     Last Name     Business Partner Nr.     Date of Birth     Postalcode     City     Position Level
    Testfallini     Enzweiler     3000000020     21.10.1990     63674     New York     1
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     2
    Thu-Ha     Tran     3000069951     25.12.1988     93047     Atlanta     2
    Thanks in advance,
    SD

    Hi Sebastian,
    I thought you need to display all the records with the highest position level at top. But now I realize your requirement.
    It should only display only the maximum position level for each level.
    You can try using the Condition for the position level KF, with Top N operator and value = '1'
    And then go to char assignement tab in the exception and select Most Detail Chars along Rows/Individual Chars. and combinations for the required combination of Chars.
    [List Condition for All Characteristics in Drilldown Independent|http://help.sap.com/saphelp_nw04/helpdata/en/86/dfc405ab60524ea0d3e89db15fb2e7/content.htm]
    [Defining Conditions |http://help.sap.com/saphelp_nw04/helpdata/en/73/702e39074dc93de10000000a114084/frameset.htm]
    Hope this helps....
    Rgs,
    Ravikanth.

  • Exception aggregation for calculated key figure

    Is it possible to have exception aggregation for calculated key figure in BW 3.5? As per Note 1151857, it is possible, however this note applies to BI 7.0.
    As per note 152638, it is possible in older version only simple ckfs like 'CKF = Base key figure'.
    Is there any workaround to define exception aggregation for complex CKFs in BW 3.5?
    My requirement is like this -
    CKF = (sales quantity - forecast) %share (sales quantity).
    Aggregation for CKF over time should be sum whereas, for all other characteristics calculation of CKF should be done after aggregation(normal scenario).
    So, defining exception aggregation of CKF as 'Summation' over time should fulfil my requirement.
    I can not use calculate result as 'summation' setting for CKF because of following design of report.
    Report contains structure(characteristic)
    Elements of structure are -
    Last 3 months(April - June)
    Last 3 months - 1 (Mar - May)
    Last 3 months - 2 (Feb - Apr)
    and so on...
    When data is aggregated for each element of structure, base KFs will be aggregated and calculations will be done on that.
    Changes in the backend are also not possible because, normal aggregation of CKF-alike in backend will be summation for all characteristics.
    Is there any way in BW 3.5 to model such a scenario?
    Thanks and Regards,
    Anup Kulkarni

    Sum of individual values of CKFs is not same as the Calculation on 'sum of basic key figures(result of basic key figures)'.  - Yes, you are right.
    I need to aggregate CKF over time as SUM. However, calculation for result of all other characteristics should be based on results of basic key figures and not the 'Sum of individual values of CKF'.  -
    What i understood is that whenever the time char is in row, then result should be simple on the sum what ur getting but when other char are there then it should go for calculation based on the sum of key figure.
    If im not wrong in getting ur point.
    How can two differenct activites be perofrmed on same key figure depending on the characteristic .....!. For this u have to think some other possibility or let somebody else update the thread.

  • What is the default exception aggregation for the NCKF IO STOCK

    Hi all of you,
    What is the default exception aggregation for the Non Cumulative Key Figure info object Stock?
    When I am selecting Maximum, or minimum or Avereage (all values) its not selecting any of these values but only Average (weighted with the number of days) is getting selected.
    Please explain.
    Thank you.
    TR.

    Hi Vinod,
    Thank you for your reply.
    I had selected Last value as exception aggregation and activated it. But again when I double click on the IO STock, in the aggregation tab besides exception aggregation I find the option Average (Weighted with the number of days).
    Is it getting selected by default when I check the radio button Ncum. value with in- and out-flow?
    Please explain.
    Thank you.
    TR.

  • FBL5 FIAR - exception aggregation - count customers with open items at key

    Hello gurus,
    I have read the information about counting all values in reference to a characteristic. I manage to count how many customers have a FIAR open item 'billing status' = Open in my FIAR cube.
    Now I am asked to replicate transaction FBL5 of R3. This transaction will give you open items at a given key date by adding
    the items with
    A) Item status = 'O' and posting date <= key date
    and the items with
    B) Item status = 'C' and posting date < =key date and clearing date > key date.
    I calculate the net value by creating 2 restricted key figures and then adding them in a CKF.
    But for counting I have a problem. I can count how many customer make up the open items (case A)
    and how many customers makeup items that where cleared between key date and today.(case B).
    But I cannot sum the two numbers as there might be customers that are counted in both cases.
    For example I have 4 customers that correspond to case A : 1000 1011, 1012 and 1014
    And I have 3 customers that correspond to case B  1000 , 1011 and 1013
    I would like to get 5 as the number of customers that verify either case A or case B (or both).
    Is there a way to do this with the exception 'aggregation 'and 'count all values' property of CKF ?
    Claudio

    Hi,
    The logic given in the above post may be a bit confusing to you. Check out this explanation and try to understand what I mean.
    Posting Date - PD
    Key Date - KD
    Clearing Date - CD
    PD--KD--
    CD
    -O(Status)-C--O-----C
    -5107-----8
    Let me explain the above table.
    Between PD & KD there are 5 count with status'O' and 10 counts with status 'C'.
    Between KD & CD there are c counts with status 'O' & 8 counts with status 'C'.
    This means 5 with status 'C' becomes 7 between KD & CD.
    Similarly, 10 status with 'O' becomes 8.
    The logic I am trying to say is..
    If you don't want to get counts with status 'C'(repeated) as I understood) 7-5 = 2. Show this 2 as count for status 'C' between KD & CD.
    So the table will become like this now.
    PD--KD--
    CD
    -O(Status)-C--O-----C
    -5102(7)---2(8).
    In braces shown are the total with status 'O'/'C' for the dates.
    I hope this will solve your problem.
    Message was edited by: AVR - IGA

Maybe you are looking for

  • How do I add an email signature with graphic (logo)?

    On my iPhone 5 Im trying to add an email signature with logo to my email account.

  • Adobe Master Collection CS5.5 download

    Hi, Where can i download Adobe Master Collection CS5.5? I have downloaded the files some time back but my computer got virus infected and i have lost my files?

  • WEBUTIL Usage

    Hi List, This is regarding usage of WEBUTIL in Froms9i . I want to use Host and Text IO Command using client_text_io and client_host . I have attached webutil.obl(Object library) and pll to my form as well.but when i am running it says that some Clas

  • Pls advice

    I am working in an MNC as xi consultant ...And I got an offer from one another mnc to work as an xi consultant .I have one doubt regarding my job offer and i think you can give me correct advice ...the req in my next company is in BPO sector and my d

  • Java.exe crash on P4 machine

    Is anyone aware of issues with running jdk1.2.2_008 or later on Pentium 4 machines? I installed a app server on Windows 2000 on my home machine and when I try and start it, a Windows popup window appears saying java.exe has generated errors. Where sh