Exception Aggregation for a Calculated Key Figure in a Structure

Hello BI world,
Please can someone tell me if it is technically possible to use "exception aggregation (count) in a calculated key figure within a structure.
The definition of the structure is:
Rows: Characteristic (Selection) = Problem type (0CATCODE_FE)  = "AF01"
Colums (Selections) Month 1 , Month 2, Month 3, etc .. Total
             Details of the selection for each month
                       0CALMONTH = Variable (offset+1 for Month 2 , 3 etc)
                               1KYFNM = CKF
Calculated Key Figure (CKF) =
                   General Tab:  = Key Figure "0CAUSE_CNT"
                   Aggregation Tab - Exception Aggregation = Count All Values
                                             Ref Characteristic = Problem type (0CATCODE_FE)
                                                Calculation After Aggregation = not ticked
                   Local Calculations Tab = All "Nothing Defined"
What I am trying to achieve is the "count" of "Category codes"  for each month specified in the structure.
I have looked in the cube and there should be a "category Code" count of "9" for Jan 2008 for notifcation type AF01 but the query shows 0?
Thanks in advance, points will be awarded.
Steve

Still not working? Not sure why? Have tried both answers and just not counting...
Is there any restrictions on using "exception aggregation" in a calculated key figures in a structure?
The structure is in the columns and it is a selection that includes the CKF with the exception aggregation plus a restriction on calendar month using a variable?
Any help greatly appreciated.
Thanks in advance.
Steve

Similar Messages

  • 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

  • Exception Aggregation for RKF

    Hi Experts,
    Is there a way to set Exception aggregation for a restricted key figure?
    Thanks
    GMS

    Hi Prasad,
      A restricted key figure is a normal key figure, so u can set the exception aggregation in the Bex Options in the Key figure properties.
    Thanks,
    Krish

  • Calculated key figures before aggregation

    Hi,
    I'm having trouble creating a new calculated key figure. Here's the situation.
    I have two key figures: stock, value A. Now I want to create a new calculated key figure (in 3.x) using both key figures. The calculation would look something like: "stock * (value A == 0)". Now I want this key figure to work before aggregation. When creating this calculated key figure however I am unable to set the aggregation setting to before aggregation. Now, with any other key figure besides stock, this is no problem. Something like "profit * value A == 0)" works fine and I can set the aggregation setting to before aggregation. I suspect the reason I can't use stock in a calculated key figure set the calculate before aggregation is because of the exception aggregation of the stock key figure. It's set to last value in exception aggregation.
    Does anyone know how to solve this problem? Thanks in advance.
    Alex

    Hi Alex,
    please read this:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/75/21054da1392649948e5b94e4fc4bce/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a62f8e07211d2acb80000e829fbfe/frameset.htm
    The reason that somtimes the propertie is available or not depends on the key figure type - e.g. if it is complex or not. I think that here is a lot of info available in the forum.
    Regards,
    Adem

  • Currency translation problem for calculated key figure

    Hi All
    I have a problem with the currency translation for a calculated key figure.
    I have a requirement to show the MM consignment stock value in the specified currency from the selection screen.
    For consignment stock, there is no value maintained in the system. So for this we need to calculate the value as below
    Restricted key figure: RKFConsignment stock: Total stock with special stock indicator restriction "K"
    Calculated keyfigure: Consignment stock value = Nodim( RKFConsignment stock) * (Standard cost / price unit).
    Here, in the calculated keyfigure properties --> I have used a currency translation for the 0CALMONTH.
    The query has selection on the 0calmonth.
    But in the result the I am getting unexpected results.
    Do we have any inconsistencies in the currency translation on the formulas?
    Please help me on this.
    Regards
    S.R

    Hi All
    I have noticed something. I changed my query date selection to Calendar day - Keydate instead of calendar month.
    And I have changed the currency variable to fixed exchange rate "CHF", it is working fine.
    I think I have some problem with the currency translation variable.
    Could anyone of you please send me the currency translation variable for Calendar month with the below parameters
    exch rate  type :  M
    Time reference : 0CALMONTH
                               End of month
    Target currency for a variable : < var created on 0currency>
    For my report,  i need calendar month selection, currency selection.
    Please help me with your ideas.
    Thank you
    Regards
    S.R

  • ELSEIF in calculated key figure

    Dear gurus
    We have recently upgraded to NW2004s, and would need some help on the formula for my calculated key figure. This calculated key figure is meant to replicate IF... ELSEIF statement, depending on what the user enters. The logic that we have are as below :
    IF Var=1, then display key figure A
    ELSEIF Var=2, then display key figure B
    ELSEIF Var=3, then display key figure C
    ELSEIF Var=4, then display key figure D
    where Var is a Formula Variable, Processing By User Entry/Default value.
    The formula that we have originally, in BW3.5 is :
    <i>(Var == 1) * 'Amount in TC' + (Var== 2) * 'Amount in Comp Code' + (Var == 3) * 'Amount in Parall USD' + (Var == 4) * 'Amount in Hard Cur' </i>
    This formula has served us well in BW 3.1 to BW 3.5, and never had any problems with it. However, when we migrated over to BW 7.0, we could not get values for this formula (eventhough we have data in our cubes). The only data that get is when we key in Var=1, but when we try with Var=2, 3 or 4, no data is displayed in our key figure.
    We tried to debug, but somehow we could not figure out how the new BW7.0 calculates these type of key figures, and whether is there a change in the formula variable. We believe that the problem may lie in the way that BW 7.0 interprets the formula above, and only obtains the first portion of the formula (Var==1).
    We would appreciate any helps, and of course, points will be awarded if problem can be solved.
    Thanks a lot

    Dear all
    With some luck in searching, I manage to find an OSS note which depicts this error and resolve it. For those who have the same problem, please use this OSS Note 994194.
    Cheers

  • Currency Translation on Calculated Key Figure in BW7.0

    I am trying to use a currency translation in BW7.0 on a calculated key figure.  Unfortunately the options for this are greyed out in the conversions tab for the calculated key figure.
    I took a simple example.  I have a KF that is revenue.  I put this KF in the query and I can specify the conversion for it.
    I then took the same KF and put it as the only argument for a CKF.  For this CKF whether it is local to the query or a global CKF, I cannot specify a currency conversion.
    If I do the same experiment in the 3.5 design tool, I am able to specify the currency translation.
    Is there some system setting that enables it in the 7.0 query designer?
    Thanks.
    KB

    Hi,
    Have a look at the links:
    http://help.sap.com/saphelp_nw70/helpdata/en/80/1a682de07211d2acb80000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/f1/0a5529e09411d2acb90000e829fbfe/frameset.htm
    Best Regards,
    Rajani

  • Restricted/Calculated Key Figures in Query vs MDX?

    Hello All,
    We are embarking on our first project utilizing SAP BW as the Data Warehouse and Web Intelligence as the presentation tool.
    We plan on creating the universes on BW Queries.
    What are the pros and cons of using Restricted and Calculated Key Figures in the query versus creating them in the Universe?  Also from a performance impact point of view if there is any?
    Best Regards,
    Dan Krieg

    Hi Dan,
    I would suppose that there is no big influence on performance. If the calculation for the calculated key figures are very complex I would propose to calculate them on query level. So its easier to use them also in other environments.
    Please take into consideration that OLAP universes are not supported in Crystal Reports. More information you find in the thread [OLAP universes and Crystal Reports|OLAP universes and Crystal Reports;.
    Regards,
    Sebastian

  • Calculated Key Figures Issue!

    Hello Experts -
    I'm getting error messages for the calculated key figures. The message says that the key figure is not defined correctly. Therefore, I started breaking down the calculated key figures and use them in the eventual calculated key figure. I have included all the calculated key figures. And I've hidden the ones that I dont need to show in my query result. I'm in BI 7.0. Also, I had to remodel my multi-provider after making the initial query. Do I have to start fresh?
    I have the following calculated key figure:
    1. Price = (Price > 0) * Price + (Vendor Price - (Vendor Price * (Cust Discount + Vendor Discount)))
    This is supposed to be an if calculation. If Price is greater than 0, then Price else the calculation.
    Cust Discount and Vendor Discount are CKFs.
    What am I doing wrong?

    Thanks Ajay!
    I added a couple of NODIMs and the query is now working!
    I have couple more questions:
    1. Is there a way to say Not Null in Bex? In my if condition, I want to say if Price is not equal to NULL instead of greater than 0.
    2. The above requirement leads me to another question: how do I account for the negative values. I mean I need to add them but I cannot suppress them? I hope it makes sense!

  • Problems in using a calculated key figure in the Clustering Model

    We have a problem in using a calculated key figure in the clustering model. With the limitation of the standard, in the Field tab, each calculated key figure cannot be selected from the selection screen directly. According to the SAP help, we have to use a dummy infoobject for a calculated key figure.
    Are there any other ways to use a calculated key figure without using a dummy infoojbect?

    Hi,
    Make use of aggragation property of the keyfigure, for summing the values of that KF.
    Regards,
    Rajkandula

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

  • Aggregation in Calculated key figures

    hi Experts,
    Can anyone explain me how aggregation(normal and exception) works in calculated key figures.Plz cite some eg if possible.

    Hi,
    You need Service Market ID.Ask your PL/Basis guy to get it.
    https://websmp206.sap-ag.de/notes
    With rgds,
    Anil Kumar Sharma .P

  • Currency Translation for Calculated Key figures

    Hello Friends I want to use the Currency Translation for Calculated Key figures.
    But when I go to Query and go to conversion tab it is always greyed out. Does that mean we can set the fixed conversion type for calculated key figures. like ZSAD Total debit - credit -flow value.
    What is the way to do fixed currency translation in query for calculated key figures.
    All the below is done now just want to specify this in query but I can'nt since it is greyed out.
    All the below is done
    I have created a Currency Translation Type " FiscperConversion" "ZVHGR" now this has Exchange Rate Type from Variable "ZVARN" (Which is a variable single value manual input on 0RTYPE Infoobject for exchange rate.)
    2. Now Currency Tab: Target Currency is selected from Variable placed in the Report. ZRPVAR.
    3. Now the Variable Time Reference is used. Standard Infoobject 0FISCPER
    which is beginning of period.

    Hi soniya
    Your calculated KF is result of some calculation ...so system will not allow u to do any translation on it...to get CT on CKF you should do it on base key figure...still if you wish to do then you can create a formula variable having processing type a customer exit...write code in cmod to rad exchange rate and multiply ur CKF by this formula variable....
    Thanks
    Tripple k

  • Calculated key figures from multicubes before aggregation

    Hi,
    I am calculating a total using a calculated key figure
    that has one key figure from a multicube and two other key figures from another multicube.
    Also I factor the total using a variable with a replacement path on the dummy attribute (Constant) to "force" the calculation at the material level.
    Cost = Cost(CUBE1) / Quantity(CUBE1) * Quantity(Cube2) * ZVRMATER1
    Problem:
    If I split the calculation this works before aggregation at the material level. Also this works fine using calculations that use key figures that must be calculated before aggregation if they all are from the same cube at the time.  The required formula above will not work (zero divide) since during selection the OLAP processor retrieves in phases and with value 0 from the key figure of CUBE2.
    Any suggestion on how to solve this without new back-end development?
    Thanks.

    Hi,
    I am calculating a total using a calculated key figure
    that has one key figure from a multicube and two other key figures from another multicube.
    Also I factor the total using a variable with a replacement path on the dummy attribute (Constant) to "force" the calculation at the material level.
    Cost = Cost(CUBE1) / Quantity(CUBE1) * Quantity(Cube2) * ZVRMATER1
    Problem:
    If I split the calculation this works before aggregation at the material level. Also this works fine using calculations that use key figures that must be calculated before aggregation if they all are from the same cube at the time.  The required formula above will not work (zero divide) since during selection the OLAP processor retrieves in phases and with value 0 from the key figure of CUBE2.
    Any suggestion on how to solve this without new back-end development?
    Thanks.

  • BADI for populating virtual Key Figure : Exception Occurs

    Hello,
    I am using BADI for populating virtual Key Figure.
    Since my info provider in a Cube , query is built on it with addition to Virtual Key figure.
    I have used select statement for retrieving data from cube as input for the variables in BADI.
    But after debugging it , it stop or exception occurs at the select statement.
    Need help for the same.
    My code :  Cube name : ZGMR_C01
    DEFINE ******
    method IF_EX_RSR_OLAP_BADI~DEFINE.
      DATA: l_s_chanm TYPE rrke_s_chanm,
      l_kyfnm TYPE rsd_kyfnm.
      FIELD-SYMBOLS:
      <l_s_chanm> TYPE rrke_s_chanm.
    Insert Code
      CASE i_s_rkb1d-infocube.
        WHEN 'ZGMR_C01'.
          l_s_chanm-chanm = 'ZEC_PLOAD'.
          l_s_chanm-mode = rrke_c_mode-read.
          APPEND l_s_chanm TO c_t_chanm.
          l_s_chanm-chanm = 'ZCOM_BLM'.
          l_s_chanm-mode = rrke_c_mode-read.
          APPEND l_s_chanm TO c_t_chanm.
          APPEND 'ZVKF_TTBL' TO c_t_kyfnm.
      ENDCASE.
    endmethod.
    DEFINE ******
    COMPUTE *****
    method IF_EX_RSR_OLAP_BADI~COMPUTE.
    FIELD-SYMBOLS <fs_ZVKF_TTBL> TYPE ANY.   -
    Virtual Key Figure
    FIELD-SYMBOLS <fs_ZEC_PLOAD> TYPE ANY.  -
    Variable 1
    FIELD-SYMBOLS <fs_ZCOM_BLM> TYPE ANY.   -
    Variable 2
    DATA: l_ZVKF_TTBL TYPE /BIC/OIZVKF_TTBL.
    TYPES : BEGIN OF TY_ITAB,
    PLOAD TYPE /BIC/OIZEC_PLOAD,
    BLMONTH TYPE /BIC/OIZCOM_BLM,
    TOTBL TYPE /BIC/OIZKF_TOTBL,
    END OF TY_ITAB.
    data: IT_ITAB TYPE STANDARD TABLE OF TY_ITAB,
          WA_ITAB type TY_ITAB.
    data: IT_ITAB1 TYPE STANDARD TABLE OF TY_ITAB,
          WA_ITAB1 type TY_ITAB.
    ASSIGN COMPONENT P_KYF_ZVIR_TOT OF STRUCTURE c_s_data
    TO <fs_ZVKF_TTBL>.
    ASSIGN COMPONENT P_CHA_ZVIR_POL OF STRUCTURE c_s_data
    TO <fs_ZEC_PLOAD>.
    ASSIGN COMPONENT P_CHA_ZVIR_MON OF STRUCTURE c_s_data
    TO <fs_ZCOM_BLM>.
    break-point id z_routines.
    SELECT  /BIC/DZGMR_C011SID_ZEC_PLOAD  /BIC/DZGMR_C01TSID_0CALMONTH /BIC/VZGMR_C01F~/BIC/ZKF_TOTBL
    FROM /BIC/VZGMR_C01F
    INNER JOIN /BIC/DZGMR_C011 ON /BIC/VZGMR_C01FKEY_ZGMR_C011 = /BIC/DZGMR_C011DIMID
    INNER JOIN /BIC/DZGMR_C01T ON /BIC/VZGMR_C01FKEY_ZGMR_C01T = /BIC/DZGMR_C01TDIMID
    INTO TABLE IT_ITAB
    WHERE /BIC/DZGMR_C011~SID_ZEC_PLOAD = <fs_ZEC_PLOAD>
    AND /BIC/DZGMR_C01T~SID_0CALMONTH = <fs_ZCOM_BLM>.
    break-point id z_routines.
    LOOP AT IT_ITAB INTO WA_ITAB.
    WA_ITAB1-PLOAD = WA_ITAB-PLOAD.
    WA_ITAB1-BLMONTH = WA_ITAB-BLMONTH.
    WA_ITAB1-TOTBL = WA_ITAB-TOTBL.
    COLLECT WA_ITAB1 INTO IT_ITAB1.
    CLEAR : WA_ITAB1 , WA_ITAB.
    ENDLOOP.
    break-point id z_routines.
    IF sy-subrc EQ 0.
    <fs_ZVKF_TTBL> = WA_ITAB1-TOTBL.
    endif.
    endmethod.
    COMPUTE *****

    Exception :
    Exception CX_SY_NO_HANDLER triggered
    An exception with the type CX_SY_OPEN_SQL_DB occured, but was not handled
    This comes when i debug the BADI.

Maybe you are looking for

  • CF Standard and 64-bit OS

    Hi I posted this in the CFML - General Discussion area but I'm not sure if it was the right place to put it, so I've posted it here too. We have a memory intensive application which runs on CF Standard. We are considering moving to 64-bit but CF 8 St

  • Re:Role of an Abaper in support projects

    Hi, What can be the role of an abaper in support projects and moreover what is production support and development support.How do we handle issues in production supoort i.e., we directly login to the production server and solve or we copy the code in

  • Command + f2 doesn't work!

    Hi! Sorry for my english... but i try to explain my problem! I have an iMac27, two months ago i have bought a Dr. Bott for playing with my ps3. Ok, all works fine! Two weeks ago i came back from my holiday, i try to play but "command + f2" doesn't wo

  • Infopackage scheduler

    hi sap gurus,      In the INFOPACKAGE ,scheduler (maintain infopackage Screen ) --->in the SCHEDULE TAB  - > i changed the option "START LOAD IMMIDIATELY" TO "START LOAD LATER IN BACKGROUND" by mistake .I am not able to revert back the option. can an

  • 4 player split screen games with online modes?

    Hey guys! I am looking for a game with a 4 player split screen possibility AND a online possibility.I organise gamenights with 2 screens, 2 ps3's, 8 controllers and 8 players.I think the only game i found is Black Ops 2 (zombie mode with 2 teams). I'