Exception Aggregation or Avg Inventory

Hi,
While I am doing Inventory Development, got some issues in reporting. Below is my reporting info.
Chars in rowsr:  CompCode, Sector(Nav attribute to plan), Calmonth.
1. We get Closing Inventory in runtime ( 0valstockval )
2. Turnover (Just a KF)
3. Avg Inventory is a moving avg of Closing Inventory
4. Ratio = Turnover / Avg Inventory.
Problem in getting Moving avg in Sector Level. If I use moving avg option in Calculation tab, It is working till the end of the report not breaking at Sector level.  If I use exception aggregation, its not working and also that will calculate only Avg not a moving avg.
So how to get avg inventory and Ratio values.
If you give me solution in workbook also ..it ll be fine ..
Thanks,
_R

Create one original query
and another view of the original query with the navigation state for sector level.
If you embed both in workbook, will it be OK?
The roundabout is bit cumbersome. You need to go for table interface or macros.

Similar Messages

  • Exception Aggregation help in Bex !

    Hi Experts
        Iam creating a query with date calculations. I have the following calculations in my qry...
    1 . Cycle Time      :  ( Doc Date - Quote sent date) ....I created two replacement path variables and use them in formula.
    2 . Nr of Quotes    :  ( Count of all sales orders with Block L1 & L2) ...I created a CKF for counting the nr of docs then used that CKF in an RKF to filter by block. 
    3 . Avg Tender Time :  ( Nr of Quotes / Doc date - Quote rec Dt) .........Created a formula same as 1 with Quote rec dt instead of Quote sent then created another formula to make 2/3.
        Now when I execute the query Iam getting numbers but
        Cycle Time I took Exception Aggregation as Counter for all detailed values and ref char as Doc Date....Its giving some nr as output...but my question is if I take doc date as Ref char how it gets the calculation from replacement
        Does any one have worked on date calculations as the above situation / any one have any how to's which explaines how to find date calculations with exception aggregations?
    Thanks in advance...

    fixed

  • Exception aggregation on Non-cumulative key figure

    Dear experts,
    I have a problem. We have an InfoCube in BW in which the Activity Journals are loaded every day. In this Activity Journals it is registered that a Material was listed (available) at a customer (value 0 or 1).
    We have a non-cumulative key figure MXW_LISTN with inflow (MXW_LISTI) and outflow (MXW_LISTO). In time this key figure receives +1 or -1 for a customer, material combination.
    I want to use MXW_LISTN in the query in a specific way. The key figure on itselve tells me how many listings there are. However, I want to know how many business partners there are with a listing.
    I was thinking about an exception aggregation on MXW_LISTN with reference characteristic 0BPARTNER and "Count <> 0". BW however refuses to do so and only lets me do simple aggregations such as AVG, MIN, MAX etc.
    Can you think with me and come with an proper solution to count the number of business partners with a listing?
    Your help is very much appreciated and rewarded!
    Best regards, Hans de Klein

    Maybe a solution with virtual key figures is an option?
    Please help me out!
    Best regards, Hans de Klein

  • 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:

  • 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.

  • 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

  • How to find the value of date char used as exception aggregation reference

    Hi BI Gurus,
    On a BEx report I need to list three things by material:
    1)   the open (not yet delivered) Purchase Order quantities
    2)   the PO quantity to be delivered next and
    3)   the date that belongs to the next delivery
    The model supports these data i.e. for each material I can list all open quantities by Purchase Order / Item / Schedule line and the scheduled delivery dates are also available as a characteristic.
    Determining 1) is easy – as the drilldown is fixed (materials only) the open quantities get summarized for all PO-s belonging to the materials.
    To determine 2) I used a Calculated KF simply including KF 1) “=Open PO Qty” in the definition and setting Exception Aggregation (first value) with a reference char of the delivery date. This gives back the Open PO Quantity to be delivered first.
    My question is about how to determine the 3rd value (actually this is not a KPI but a characteristic value). In other words, for each materials I would need to determine the first among all of the possible delivery date char values of the open PO Items / schedule lines. This is the date the quantity shown in the 2nd KPI will be delivered on.
    Does anybody have an idea how to approach this issue?
    Thanks for you help in advance,
    Attila

    Hi Olivier,
    Thanks for your suggestion. I got a bit closer with the replacement path formula variable and the CKF. I tried to apply the same logic of KPI 2) but for some reason it did not work. Actually, it delivers the right value but only when 0SCL_DELDAT (Scheduled delivery date) is in the drilldown… But what I need is the first delivery date by Material only, and without this 0SCL_DELDAT drilldown.
    Any other ideas?
    Thanks and bye,
    Attila

  • How to find the list of Queries/Reports which are using Exceptional Aggregation in SAP BI?

    Hi All,
    We are interested to know how to find the list of Queries/ Reports which are using Exceptional aggregation in SAP BI.
    Please let us know is there any table's to check the list of reports using Exceptional Aggregation in SAP BI.

    Hi,
    Here you go..
    1) Go to table RSZCALC and get list of ELTUID where AGGREXC is not INITIAL and AGGRCHA is not initial; now you get only exception aggregation set based on some chars. Also you can further add STEPNR = 1 since your intention is just to get query name , not the calculation details; this will reduce number of entries to lookup and save DB time for next steps.
    Here you will get list of exception aggregation UUID numbers from which you can get properties from RSZELTDIR.
    2) Pass list of RSZCALC-ELTUID to table RSZELTXREF - TELTUID and get list of RSZELTXREF -SELTUID - this table stores query to it's elements maping kind.
    3) Now again pass RSZELTXREF - SELTUID into same table but into different field RSZELTZREF - TELTUID and get RSZELTXREF - SELTUID
    This step you get query reference sheet or column or query general UUID for next step.
    4) Pass list of RSZELTXREF - SELTUID into RSZELTDIR - ELTUID with DEFTP as 'REP'. Now you get list of query names in RSZELTDIR - MAPNAME and description in TXTLG.
    Note: you can also get the reference chars used for exception aggregation from RSZCALC - AGGRCHA field.
    Hope this helps.
    Please keep in mind, it might take more time depends on how many query elements you have in the system...
    Comments added for better DB performance by: Arun Thangaraj

  • Bex Exception Aggregation in 3.5 equivalent to 'TOTAL'

    Hi All,
    Can anyone help me in getting a functionality equivalent to exception aggregation 'TOTAL' in BW 3.5.
    I have  a requirement which can only be fixed using the exception aggregation 'TOTAL', my bad in my current client they dont have BI 7.0. So can anyone tell me what is the equivalent function of 'TOTAL' in BW 3.5.
    Regards,
    Anand

    I need to develop a report which will show Org unit & degree (education data) wise head count and annual salary.
    As the education records for an employee will be more than one, the annual salary will be doubled or tripled in the DSO or cube.
    If I do an average of annual salary based on employee the overall result goes wrong.
    Say for example, empl 20045789 as three record with KF value 10,000, the result in the report I see as 30,000.
    SAY in the backend
    EMPLOYEE    |  Degree | Annual Salary
    20045788  |     A | 50,000
    20045788  |     B | 50,000
    20045789  |     A |10,000
    20045789  |     B |10,000
    20045789  |     C |10,000
    In the query I get it as
    Org Unit |      Employee |     Annual Salary |  Average(Annual salary/ Number of employee)
    100001 |           20045788 |     100,000 |          50,000
    100001 |          20045789 |     30,000    |          10,000
    overall result                130,000 |          26,000  (130,000/5)
    The expected result is 50,000 + 10,000 = 60,000 / 2 = 30,000.
    Pls provide me solution.
    Regards,
    Anand
    Edited by: araj123 on Jun 3, 2011 3:45 AM
    Edited by: araj123 on Jun 3, 2011 3:46 AM
    Edited by: araj123 on Jun 3, 2011 3:47 AM
    Edited by: araj123 on Jun 3, 2011 3:48 AM
    Edited by: araj123 on Jun 3, 2011 3:50 AM
    Edited by: araj123 on Jun 3, 2011 2:25 PM

  • 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.

  • 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

  • Exception Aggregation (Average of all values 0)  -  Non cumulative KF

    Hi Experts,
    I am using the Exception Aggregation (Average of all values <> 0) on a Non Cumulative KF. Most of the times i am not getting the desired results but some times it gives me the desired result.
    my doubt is whether we can use  Exception Aggregation on Non cumulatives?????
    Thanks for any help
    boobal

    Hi,
    Non-cumulative valuesare those key figures that are measured in relation to a period in time; that is to say they cannot be meaningfully cumulated over time. Non-cumulative values are summarized over time using so-called exception aggregation.
    Example:stock quantities/-values, number of employees, account balances, etc.
    Please check this document:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d61b1e95-0501-0010-dfbe-a03970712ef1
    Hope this helps.
    Regards,
    Mona
    Edited by: Mona Kapur on Jan 17, 2008 10:45 AM

  • Exceptional aggregation.

    Hi Experts I have made exceptional aggregation to KF 0DEB_CRE_LC with 0FISCPER.
    But in query run time it is saying to do establish Fiscal year variant to that Key figure.
    This settings whare I have to do.
    Please help me in details.
    Thanks in Advance,
    Raghav.

    Hi Raghav,
                We will not do settings for fiscper in BI .
    We will extract this from source system, by extracting(transfering from R/3) "transfer gloabal settings".
    you can check this in TX:OB29(IN SOURCE SYSTEM)
    If you have authorization for TX: OB37 you can fiscal varinat which is assigned to your comp code.
    Hope this will help you.
    Thanks,
    Vijayabhaskar.

  • Problem in Nested Exception Aggregation

    Hi Experts,
    Can you please give me an idea of how & Steps to do the nested exception aggregation based on the 3 to 4 characteristic and agregate the volume for 1 key figure,
    Thanks Regards
    Dolly.

    Hi AL,
    here is my requirement what i have been asked to get this output result.
    i have keyfigures KF1, KF2 and total KF.
    three characteristics dist,inch,load.
    dist-inch-load--KF1-KF2-Total KF                         
      5---A--010-0-----10=10                         
      5---A--120-20----20+10=30                         
    10--B---050-0-----50                         
    12--C---160-60----60                         
    13--D---270-70----70                         
    14--E---080-0-----80                         
    15--E---120-20----20+80=100                         
    15--E---230-30----302080=130     
    KF1 is the initial volume coming from the file directily.based on this keyfigure i have to calculate KF2,Total KF.     
    In order to calcuate KF2 and Total KF i have some conditions.which are mentioned below;
    KF2---> if  load=0 then KF2=0 elseif load>0 then KF2=KF1 ;
    Total KF--->if load=0 then Total KF=KF2KF1 elseif load>0 then KF2=KF2KF1
    How to achieve this dynamic summation.Do i have to do nested exception aggregation based on the above three characteristics. what would be the open options.please do help me.

  • 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

Maybe you are looking for

  • Communication between JVMs..

    Goodmornig to everybody! My name is Giorgio and i'm a Java programmer. I have this problem: i have a java application already running on my OS; some time later i have to invoke a method of the java application by another minijavaapplication running i

  • Error in server log when bringing up OBIEE 11.1.1.5

    We get the following error during startup in the nqServer log, after upgrading our own repository(rpd) from 10.1.3.4 to 11.1.1.5. Does anybody have suggestions on what to try? I have done all the Regenerating User GUID's steps. [2011-08-22T19:07:32.0

  • Swapped out AE for TC and now can't connect to Internet!

    Hello all. I just swapped out an Airport Express base station (the square one, not the old spaceship-shaped one) for a shiny new 1-TB Time Capsule. I figured that since 500 GB external hard drive for Time Machine backups is running out of space, so w

  • Inbound interface??

    Hi,    Iam working on inbound interface.Can any one tell me how to store the flat file data into custom table?what is the procedure? Regards, Sujan

  • I learned a spellcheck trick from iPad forum

    I FOUND WHEN I AM IN PAGES OR WRITING AN EMAIL THAT SPELLCHECK DOESN'T RECOGNIZE CERTAIN WORDS AND UNDERLINES THEM IN RED. I WAS GETTING FRUSTRATED BECAUSE THEY ARE VERY GOOD WORDS LIKE CYMBALTA, FIBROMYOLOGIA ETC. THEN WHEN I WAS HAVING THE SAME PRO