Calculations for Key Figure at CUBE Level or REPORTING Level

Hi Folks,
What are the conditions to decide whether we need to go for keyfigure calculations at infocube level or at reporting level.
How to achieve them if done at cube level.
Could anyone provide some KT with examples?
Regards
Kittu

Hi,
I got your point.
Could you tell me how to use below mentioned formula at transformation time?
In brief the formula calculates the number of policies using field  " s endorsement type".
Formula is as below:
SUM(CASE WHEN S Endorsementtype IN ('004','015') THEN -1 WHEN S Endorsementtype IS NULL  AND S Gross IS NOT NULL  THEN 1 ELSE 0 END)
No of policies is a calculated keyfigure.I dont have this field in my datasource.
could you tell me the steps ?
Regards
kittu

Similar Messages

  • How to filter rows according to calculated key figures in cube?

    in my cube , i use V3 update for scheduleding lines of sales items.For example , in last delta update , valid row is last column ,other two rows make zero each other for key figures but i dont want to display first two rows in Bex.i want to get rid of these rows.because of not deleting previous data in cube, how to discard the rows , can i filter by calcuated key figures in query analyzer (like not display if sum of key figures zero)   
    Doc_No       Doc_Type   Reject_St          Item_No     Net_Price(Key_Fig)     Total_Pric(K_F)
    0002207615    TA           99               10        17,000             295.630,00
    0002207615    TA           99               10        17,000-            295.630,00-
    0002207615    TA           04               10        17,000             295.630,00

    if you do compression with <b>Zero Elimination</b> your problem will be sloved.
    or
    In the calculated Keyfigure, set to After Aggregation.
    Nagesh Ganisetti.

  • How to create Calculated/Restricted Key Figures in AO

    All,
    In our project we are consuming Bex Queries for AO Analysis. In these  we have lot of calculated/restricted key figures. In bex we can restrict 2 characterstics to one Keyfigure, So can we able to create calculated/restricted KF in AO
    Regards,
    John

    Hello Tammy,
    We are having a reqauirement in which we have 5 Bex queries built on the same infoporvider and we are trying to consolidate all the 5 queries to one single generic Bex query or two. So in AO we would like to consume this query and build different AO workbooks to meet all the old 5 queries requirement.
    So as part of this process, I would like to know can we create calculate/restricted KF's in AO , that way i can make a better decision to create them in Bex VS AO.
    Thanks for your inputs in advance.
    Regards,
    John
    Message was edited by: sunny johnson

  • Unit 0ORDER_CURR for key figure 0ORDER_VAL is not recognized in the update

    Hello Experts,
    I am getting the below warning while I am installing the business content for Purchasing Cube 0PUR_C04 update Rules
    "Unit 0ORDER_CURR for key figure 0ORDER_VAL is not recognized in the update rules"
    And the business content activation is terminated.
    Can you please let me know how i could resolve.
    Thanks
    Padma

    Hi Amrit,
    Nice to know Toons suggestions have helped you to resolve your issue.
    There is one bug waiting to explode soon although.
    Check this out after your last insert
    INSERT INTO mth_equipment_shifts_d(equipment_fk_key,availability_date,shift_workday_fk_key,from_date,To_Date,line_num,availability_flag,entity_type,creation_date,last_update_date,creation_system_id,
    last_update_system_id) (
    SELECT b.entity_pk_key entity_pk_key,a.shift_date shift_date,a.shift_workday_pk_key shift_workday_fk_key,Trunc(a.shift_date) from_date,Trunc(a.shift_date) To_Date,1 line_num,'Y',
    b.entity_type entity_type,SYSDATE,SYSDATE,-1,-99999
    --INTO l_site_id,l_entity_pk_key,l_entity_name,l_entity_type,l_production_entity,
    --l_shift_workday_pk_key,l1_shift_date,l_from_date,l_to_date
    FROM mth_workday_shifts_d a ,
    SELECT plant_fk_key site_id, entity_pk_key, entity_name, entity_type, production_entity production_entity
    FROM mth.mth_equip_entities_mst
    UNION ALL
    SELECT plant_pk_key site_id, plant_pk_key entity_pk_key, plant_name entity_name, 'Site', production_site production_entity
    FROM mth.mth_plants_d
    UNION ALL
    SELECT plant_fk_key site_id, resource_pk_key entity_pk_key, resource_name entity_name, 'Resource', production_resource production_entity
    FROM mth.mth_resources_d
    UNION ALL
    SELECT plant_fk_key site_id, equipment_pk_key entity_pk_key, equipment_name entity_name, 'Equipment', production_equipment production_entity
    FROM mth.mth_equipments_d
    )b
    WHERE b.site_id = a.plant_fk_key
    AND a.plant_fk_key=l_plant_fk_key
    AND shift_date>=l_start_date
    AND shift_date<=l_end_date
    AND UPPER(a.shift_type)='BOTH'
    AND a.FROM_DATE IS NULL
    AND a .To_Date IS NULL
    --AND a.line_num=NULL
    AND a.shift_num IS NULL
    There is no COMMIT
    You may want to check that out.
    Cheers!!!
    Bhushan

  • Can we give the more than 2 decimals for key figure

    Hi,
    can we give the more than 2 decimals for key figure while entering the manuall planning.
    Ex:There is keyfigure called 0DEBIT which is having values as 1000.00 USD, 137688.00 USD.which are displaying bydefault whenever we entered the values while planing or File.
    what Customer is asking us 0DEBIT keyfigure values should be display 1000.0000 USD, 137688.0000 USD. ( added two more decimals for keyfigure value).
    Can we maintained decimals more than two.........?
    Thanks,
    Ven
    Edited by: vanarasi venkat on Apr 13, 2009 4:35 AM

    Hi,
    Though you can specify the no of decimal places for each keyfigure in the 2nd screen of layout builder but say if you have entered scaling factor as 1 and decimal places as 4 and user enters value as 15.2546, then in the cube it will be stored as 15.25 because physically the keyfigure can store values only upto two decimal places, so it will round up the figure to two decimal places. But, if you specify the scaling factor as 2 and decimal places as 4 than value 15.2546 will be stored in the cube as 1525.46.
    If above explanation doesn't help you i finding out the solution for your requirement than you have to either change the number of decimal places in the keyfigure or tell user that technically it's not possible in BPS.
    Regards,
    Deepti

  • Currency translation for key figure in bex not working.

    Hi friends,
    i want to do currency translation for key figure(invoice value in local currency).
    i have followed the steps as under:
    1st Transferring Global Table Contents: Currencies from R/3 Systems
    2nd than transfer exchange rate - from r/3 to bi
    3 than In SPRO settings of BW there is option "consider translation ratios in translation"
    4th than used transaction RSCUR for creating currency translation type: parameter(exchange rate:m, soure currency fom data records, target currency ISK, time ref: current date)
    5th than in BEX query designer have sated this for key figure
    but when i run query in RSRT, curreny amount not getting convert?
    am i missing any step?
    pl. guide.
    thanks dushyant.

    Hi Dushyant,
    Are these steps followed in Query designer??
    In the Query designer, for that particular key figure property, under Conversion tab >> Currency Translation >> Conversion Type, select the currency translation type you created in RSCUR.
    And in the target currency, select accordingly.
    If you are going to use a variable, use the following link..
    http://help.sap.com/saphelp_nw04/helpdata/en/08/81b98b95e911d4b2ca0050da4c74dc/content.htm
    See also..
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/287bab90-0201-0010-f48e-cc55b0cd13d0
    Hope this helps..!
    -Pradnya
    Edited by: Pradnya Rane on Apr 8, 2009 7:58 AM

  • How to write conversion routine for key figure?

    Our customer has this requirment:
    we need to know the last time of some TV program in BEx report, If a TV program last 500 seconds, we need show the key figure like this:  00:08:20, If a TV program last 100000 seconds, we need show the key figure like 27:46:40 (27 hours and 46 minitues and 27 seconds), If we define a key figure as time,  BW system will report a error that say it is not acceptable time.  If we want to define a integer, but we need display it like hhmmss format.  We know we can write conversion routine for char.  but I don't how to write conversion routine for key figure.   Please give me any hint if any other solutions?
    Edited by: SY DONG on Dec 2, 2010 3:36 AM

    If you want to do in Transformation Layer :
    You can use routine ...break up the seconds into minute hour and seconds
    you will have to handle few cases in this:
    let say your variable lv_seconds holds the number of seconds you want to convert to hour min and seconds
    DATA: lv_seconds type i,
               lv_hrs  type  i,
              lv_sec type i,
              lv_min type i.
    lv_hrs = lv_seconds / 3600
    if lv_hrs >= 1.
    lv_min = (lv_hrs - trunc(lv_hrs))*60
    here again handle seconds if min >60.
    else.
    lv_hrs = '00'.
    lv_min = lv_hrs*60
    It is just hint ..how you can manipulate the seconds to get it...you will have to think about the complete algorithm
    Regards,
    RK

  • Dynamic Texts from Bex ( for Key Figures ) not coming to WEBI Query

    Hi Gurus,
    We have a Query in BEx : Each  Key figure column text changes dynamically - Like based on Present month
    it will Display Month +1 Month +2  up to Month +12.  Used  dynamic Text variables .
    But when i created the universe and Webi report , i am missing the text in the column for Key figures .
    How should i get the column text in Webi which is same as in Bex : Points will be awarded for helpful
    answers.
    Thanks
    Magge

    Hi,
    text variables with replacement path are supported in BO4.0, see following document: SAP BusinessObjects BI4 - Supported BEx Query Elements
    As an example after entering 2012 in the prompts window, the name of the corresponding key figure will dynamically change:
    After refreshing and selecting 2013, the column name will update:
    Im not sure though if this is the case with unv universe access to BEx queries.
    Best regards,
    Victor

  • Key figure description for key figure YKFRFCFGD does not exist in liveCache

    Dear SAP Gurus,
    We have upgraded our APO 3.10 to SCM 5.1,
    Sopport Pack details:
    SAP_BASIS 700 16
    SAP_ABA 700 16
    ST-PI 2005_1_700 6
    PI_BASIS2006_1_700 6
    SAP_BW 700 18
    SAP_AP 700 13
    LCAPPS 2006_700 4
    EA-IPPE 400 13
    SCEMSRV 510 7
    SCM 510 6
    SCMBPLUS 510 6
    SCMEWM 510 6
    SCMSNC 510 6
    SCM_BASIS 510 9
    BI_CONT 703 10
    QIE 200 5
    ST-A/PI 01K_SCM500 0
    and Live cache 7.4.02.29 from to 7.7.03.23
    We facing following issue during APO operation in live cache.
    Error details:
    "Characteristic combinations with liveCache anchor but without time series"
    "Key figure description for key figure YKFRFCFGD does not exist in liveCache"
    "There is an inconsisteny between the key figure descriptions in liveCache and in the database. The key figure description of key figure YKFRFCFGD exists in the database but not in liveCache."
    Kindly help me out on this.

    Please execute Live cache consistecny check:
    for Planning area , check all the option.
    /SAPAPO/TS_LCM_CONS_CHECK
    MPOS:
    /SAPAPO/TS_PSTRU_CONS_CHECK            
    Manish

  • How to find if one key figure is used in any report

    Dear Experts ,
    I have one key figure info object .I wanted to know how to find this key figure is used in which report .
    As I know "where used list " but this will not help me .
    Any suggestions please share .
    Puru

    Hi Puru,
    Try following approach,
    goto RSZELTTXT table and put your key figure name in the long text and click on execute. Get the list of all the ETULID's and go to table RSZCOMPDIR from this table for all the ETLUID's get all the list of COMPUID's and from COMPUID's you will be able to find all the reports from RSRREPDIR in which that key figure is getting used.
    Regards,
    Durgesh.

  • Maintenance Cost Key Figures in MCI3 and MCI8 Reports

    we are using ECC6 EHP4 version. Maintenance Cost Key Figures in MCI3 and MCI8 Reports are not reflected the cost as given in different value categories in work orders. I have configrured the PMIS "Assign Value Categories to Maintenance Cost Key Figures" and Valuation Cateogies are also rightly configured. is it some bug or am I missing some thing. Please help

    Thanks for your help.
    I checked transaction code OMOS. all infor structure are on monthly update which is fair. however, I rebuilt the info structure through folllowing navigation path and it worked.
    believe ur info structure S070-MCI7 is not getting update correctly , suggest u to run a statistical update via
    Logistics - General + Logistics Information System (LIS) + Logistics Data Warehouse + Data Basis + Tools + Setup of Statistical Data + Application-specific Setup of Statistical Data + Perform Setup - Plant Maintenance ..

  • Changing  the Log level to report level

    hi
    how to change the log level from admin level to report level so that if any reports fail sto excute we can have error information .
    Thanks in Advance

    Hi Marcus,
    once again to clarify: I know it from oracle: Is it right that , If I activate in SAP DB "Owerwrite mode is. ON" no new logfiles will be created.
    Only the existing logfiles will be overwrtiten.
    It means I "save" space, because no new log files a 4,5 GB will be created, is not?
    I am not familiar with SAP DB.
    How should I proceed with Backup (online, offlne)?
    Thank you
    regards

  • Report on hierarchy with different levels for key figures

    Within 1 BEx query report, is there a way to report on a hierarchy where one key figure is at level 6 and another key figure at level 5? Level 6 being the lowest leaf node. That is the key figure at the level 5 wouldn't have data at level 6 aggregated or summed up to level 5. Doesn't seem possible because how would the data be modeled in the IC but has this ever been done?

    This could be easily done at the query level. If you are using 7.x query designer drag the key fig you want at level 1 (top) first. Then drag the key figure you want at level 2 and drop on the level 1 key fig. Now drag and drop level 3 key fig on level 2 key fig. This way you can create a sort of hierarchy for key fig, but the lower level key figures would not be aggregated to the upper level key figures.
    If you use 3.x query designer, you have to use level up and level down options after right clicking on the key figure. Place all your key fig (all levels) in the columns. now right click on the level 2 key fig and choose level down option. right click on the level 3 key figure and choose level down twice.

  • ABAP Code for Key Figure selection in Report

    Hello Experts,
    I am working on one of the development request that requires following logic to be implemented at query execution. There will one KF column and based on valid combination of characteristics value from the cube, Key Figure value from the same cube will be selected and reported.
    If ((Plant = A1) and (Division = B1))
      OR ((Plant =A2 ) and (Division = B1))
      OR ((Plant = A3) and (Division = B2))
      OR ((Plant = A6) and (Division = B2)).
      Price = Moving Avg.
    Else
      Price = Standard.
    Can somebody please suggest, how to do this? Thanks in advance.
    Regards,
    Nimesh

    Nimesh,
    Step 1.Create a formula (say F1)variable with customer exit. In the customer exit code read the values of Plant and Division. If the Plant and Division combination is the one that you specified below return a 1 (for Moving Avg.) or return a 0 (for Standard).
    Step 2. Create a column with a formula having the following definition
             (F1=1)'Moving Avg.' + (F1=0)'Standard'
    So, if the combination satisfies Moving Avg will be shown else Standard will be shown.
    You can avoid customer exit coding by using  replacement variables and using them in a formula, this would make your calculation clumsy and confusing. Let me know if you cannot get the customer exit solution work.
    Hope it helps...

  • Removing Drill Down is not summing up the values for key figure

    Hi ,
    While analysing the data in BW report , I have encounter the problem in getting the correct data.
    BW report is showing two records for material , having different customer ie. customer1 & customer 2 .
    If i remove the customer from the Drill down , then values is not summed up , rather it is showing the values only for customer1
    Scenario:
    With  customer drill Down:
    Material    Customer   Key Figure1   Key Figure 2
    Mat1       Customer1     1000          2000
    MAt1       Customer2     3000          4000
    Without customer Drill Down
    Material  Key figure1  Key Figure2
    Mat1          3000          4000
    In the query designer there is restriction of customer on two characteristic in default value pane.
    The issue is happening for particular material , for other material , BW report is working fine.
    Please suggest , to resolve the issue.
    Regards,
    Sudheer

    Hi Sudheer,
    What properties are set on your key figures 1 & 2.  Could they be set to Min or Max.
    There may be an aggregation level set if they are calculated key figures that is worth checking.
    With regards
    Gill

Maybe you are looking for

  • Windows and OS-X partitions on external drive

    Has anyone had any experience/problems with partitioning an external drive for OS-X and Windows? How about 3 partitons: HFS+, FAT32, NTFS. Or is that pushing my luck too far? I just received a new LaCie, primarily for backing up Vista Ult 64-bit, but

  • Importing iphone contacts to new macbook air address book

    I haven't discovered a way to get all my iphone contacts onto my macbook air address book - can anyone advise how this can be done?

  • Printing, Soft Proofing & Color Management in LR 1.2: Two Questions

    Printing, Soft Proofing, and Color Management in LR 1.2: Two Questions There are 2 common ways to set color management in Adobe CS2: 1. use managed by printer setting or, 2. use managed by Adobe CS2 program. I want to ask how Color Management for Ado

  • Oracle 10g database in AIX 6.1.

    Hello ALL! Would anyone know what are the parameters or settings that need to be configured in AIX 6.1. before you can install Oracle 10g database? Should you know any helpful and related links, please share. Thanks so much!!!

  • Dynamic SQL Stored Procedure call in Pro*C Application

    Hello All Could you help with a sample Pro*C program (or snippet) which has a dynamic call to a stored procedure? The procedure to be called is determined at run time and so also the number of parameters to it. Is this even possible using Pro*C? Than