Key Figure based on selection criteria

Hi SDNers,
I have Key figures which  i would like to display based on multiple selection criteria... for this we donot have master data data restricted at the query level it should be at the key figure leve...
Eg:
Sales which i would like to display based on SORG,DIV,MATERIal Etc.. Kindly can anyone will help...
Thanks
Sonu

You can create restricted key figures if you want to use the same selection criteria in multiple queries.  In which you can get value for key figure for selcted filters on that perticular key figure.
If you need it for just one query  you can create a structure and in that structure you can create a new selection which has your restrictions on that key figures.
Search on help you will get to know hot to create structures and restricted key figures.

Similar Messages

  • Calculated Key Figures based on Attributes

    Hi
    In one of our queries we need to create a calculated key figure based on an attribute. Any suggestions on the best way to do this?
    I have looked at a Virtual Key Figure, but because our Cube name contains underscores (_) it shortdumps. Is there a way around this?
    Thanks in advance.
    Chami Herath

    Hi,
    what do you mean with calculated key figure based on an attribute? Is your attribute a characteristic in the cube or is it just a attribute of a characteristic? Let me know more details.
    regards
    Siggi

  • Syntax for sum in Smart Form based on Selection criteria in Program.

    Hi,
    We have created smart form for printing confirmation entries in desired format. We have given some selection criteria in the program. Now, we want to do the sum of certain fields in the smart form based on selection criteria given in program and selection screen.
    But we are getting wrong sum in the smart form than expected.
    When we debug the program during run time, we are getting correct records as per our expectations. But result of sum in the out put is not as per given selection criteria.
    Do we need to establish link between "select option" and "Smart form"? How can we use internal table created for select option in the smart form?
    Thanks & regards
    Vijay

    Hi,
    There will be no option to sum the values in smartforms, You just have to sum and append the data to internal table and display the internal table data in the form.
    Regards,
    Satish

  • Restricted key figure as a selection screen

    hi
    in my fs they gave selection screen and restricted key figures are same things?
    can i use this restricted kf as a selection also?

    Hi,
    If u are talking about 'selection' vs 'restricted key figure: -
    Restricted key figure is the selection that u create globally and are avaible for all queries which are built on the multiporvider on which u created your restricted key figure.
    when u right click in ur query desinger row or column and create a 'new selection'  that also basically is a restricted key figure -b ut available only locally within that particular query.
    whereas the globally created RKF will be available to all queries on that info provider.
    And 'selection screen' will show all variables u have set as 'ready for input' . it will ask for user to enter the value when query is executed.
    hope it helps
    Regards,
    Rathy
    Edited by: Rathy Moorthy on Feb 25, 2009 11:59 AM

  • Use of key figure based on period

    Hello All,
    I have 2 key figures in my multiprovider, e.g. Actual Amount and Budget Amount.  I need to display one of the key figure based on period.  Reports have January to December columns.  Now, if current period is October, I have to display Actual Amount from January to October.  For future periods i.e. November & December, I need to show Budget Amount. 
    Can anoybody please provide a solution for this?  How should I proceed?
    Thanks and Kind regards,
    Ajay

    HI Ajay
    Looks like you are creating a Capital Forecasting report. In order to show amounts period by period what you need to do is
    - Create one key figure for actual amount which might be based on 0Amount key figure with Debit/Credit indicator as S. (If this is not the case then please do so according to your requirement)
    - Create one key figure for Budget amount (according to your requirement)
    - Create one customer exit "Formula" variable called actual indicator. This variable will be populated with a number of 1 to 12 for each record in your cube based on the user entered month. i.e. if user enters October. assume your cube has 12 records one for each month the first 10 records will be populated with 1 and the records for Nov and Dec will be populated with a 0.
    - Create one customer exit "Formula" variable called Forecast indicator. This variable will be populated with a number of 1 to 12 for each record in your cube based on the user entered month. i.e. if user enters October. assume your cube has 12 records one for each month the first 10 records will be populated with 0 and the records for Nov and Dec will be populated with a 1.
    - Create a calculated key figure that is defined as (Actual Amount)Actual indicator + (Forecast Amount)Forecast Indicator.
    - Create twelve restricted key figures with the CKF created in the previous step restricted with the month (Jan to Dec)
    - Add the above created twelve RKFs in the query.
    Regards,

  • No values when using key figure with constant selection?

    Hi experts,
    I have built a Webi on top of a universe that is sitting on top of a Bex query.
    In my Bex query I have a bunch of key figures defined that are restricted on time and category.
    This Webi works fine.
    Then I added an additional key figure that required a constant selection on time and on category.
    When I first added this to my Webi report it was fine. But once I refreshed my report showed no values.
    The report still seems to know that it is meant to retrieve values because it is bringing back the correct records - just no values. (ie I am showing time in my columns and it's showing the correct periods that are meant to have data)
    I refreshed a number of times and sometimes it would bring "#TOREFRESH" in some cells but once I refreshed again the cells are blank. Sometimes it would even show me a value in a couple of cells and others would show the "#TOREFRESH"
    I went back to my Bex query and removed the key figure with constant selection and the report is working again?
    Has anyone experienced something similar? Is there a way to make this work?
    Thank you!
    Sabine

    #TOREFRESH error message appears for smart measures (measure object with aggregation type Database Delegated) when the context for the measure is changed. Refreshing data will solve the issue. Database delegated measures are used for some non-additive aggregation which webi is not able to handle properly. If you are not using such aggregation, then tou can change the aggregation type to something other than database delegated to avoid #TOREFRESH.

  • Key Figure based on condition between characterisics

    Hello Guys
    I have a key figure which needs to be displayed based on condition between 2 characteristics.
    Scenario:
    I have 2 fiscal periods : FP1 and FP2. and a Key Figure KF.
    Condition:
    Show KF only when FP1 not equals FP2.
    EX: If FP1 = May and FP2 = May dont show KF.
          If FP1 = May and FP2 = June then show KF.
    How do i display a key figure based on a condition between 2 characteristics?
    Please advise.
    Thanks.

    Create two formula variables based on replacement path that get the FP1 and FP2 (numeric values).
    Let us say these are ckf1 and ckf2.
    Create another CKF3 which is = "ckf1==ckf2"
    Now, CKF3 will be 0 if these two are not equal, and 1 otherwise.
    Create a condition on CKF3 so as to show only the records with a 0 value.
    Finally hide CKF3.
    That should be it.

  • Webtemplates - Disply Group Of Key Figures based on the selection criteria

    Hello,
    I have a requirement of displaying Kefigures based on the selection criteria in the browser.
    Assume that I have Query with the following set of key figures.
    Plan_KF in units CSE
    Actual_KF in units  CSE
    Difference in units CSE
    Plan_KF in units T3
    Actual_KF in units T3
    Difference in units T3
    Plan_KF in units PAK
    Actual_KF in units PAK
    Difference in units PAK
    1) I should have drop down box with values
    CSE
    T3
    PAK
    2) If user selects PAK then query should display only the key figures with units in PAK
    i.e.
    Plan_KF in units PAK
    Actual_KF in units PAK
    Difference in units PAK
    If user selects CSE the query should display only key figures
    Plan_KF in units CSE
    Actual_KF in units  CSE
    Difference in units CSE
    I tried using the DropDown Box - (not much usefull to select more than one Key Figure)
    and CheckBox web items - I have to do multiple selections (Not very much suitable if the Key figures are too many).
    I appreciate your timely help.
    system specifications:
    SAP_BW - 310
    Front-End - 6.20
    Advanced Thanks,
    Ramana

    Hi,
    One alternative would be to save two additional copies of the query (each with different units) and code your dropdown box with the RESET_DATA_PROVIDER command.
    So if your queries were:
    Z_QUERY_CSE
    Z_QUERY_T3
    Z_QUERY_PAK
    You would define the default unit (I'll assume CSE) in yoru web template, and code your dropdown box entries to switch the Data Provider (I'll asume DP1) to the appropriate query.
    The code behind "T3" in your dropdown box would be:
    <SAP_BW_URL DATA_PROVIDER='DP1' CMD='RESET_DATA_PROVIDER' INFOCUBE='Z_CUBE1' QUERY='Z_QUERY_T3'>
    http://help.sap.com/saphelp_nw04/helpdata/en/bd/43143c1ab8ff1ae10000000a11405a/frameset.htm
    Two things to look out for in this work-around:
    1) Number of queries increases by a factor of 3
    2) Performance implication in replacing the data provider with a new query.

  • Fixed value Statistical key Figures based on Profit Centers - 9KE5

    Hi all,
    We have a Statistical Key Figure that is of Fixed Value category, based on Profit Centers. We are manually entering it in 9KE5.
    Since it is of fixed value category, am I right to say that: once we enter in one period,  it will automatically be updated in subsequent periods? But the current situation is, it does not update in subsequent periods, only the period which we enter.
    Does anyone know how to correct this? So that once it is updated in 1 period, it will be automatically be updated in subsequent periods.
    Thanks in advance!

    Hi,
    Yes, I saw the field and chose 1- Equal distribution.
    I then select period 1, enter the quantities and save. Go back to 9KE5 and choose period 2, I expect the quantities entered in period 1 to be reflected in period 2. But this is not the case- there is no value for period 2.
    I also managed to change the selection screen to have Period as select-options. If I choose Periods 1 to 12, the quantity I entered in 1 period is divided into 12, and it will only show that divided quantity. However, if I choose another Period, Period 3 for example, no value is shown.
    Is this the correct behaviour? I am expecting the quantity entered in period 1 will also be shown in any other period.
    Thanks!

  • How to controle the output of a key figure based on an attribute

    As part of following up on a select range of materials during their launch period a report is needed, where the key figures are controlled by a specific attribute.
    The attribute is called End Launch Control Date and it holds the specific day where the product goes from launch to replenishment. When the product goes into repleneshment it is no longer relevant to follow up on.
    The follow up list contains around 80 materials (SKU's) and the challenge is that they have different End Launch Control Dates.
    So, I would like to design a report that does the following:
    1) When drill on material, the key figures only show values before the End Launch Control Date for the specific material. After this date, the key figure should state either zero or blank cells.
    2) The key figures should not be controlled by a specific date in the prompt, because the End Launch Control date is different for each material.
    Does anyone have experience in constructing this functionality?

    Hi,
    you could maybe do this with using formula variables and and IF statement in the keyfigure you want to be blank after a certain date
    basically you want/need to compare a date (which date would that be, one in the columns or smth?) with the end launch control date and if this date is bigger then this leave KF 0.
    so you need to create a formula using two formula variables (of type replacement path and being replaced by the 2 dates) and compare these two in the formula. Then you use the outcome of this (which should be 0 or 1) in a new formula with the keyfigure (statement true * KF ) + (statement false * KF). This will give a value when comparison is ok and 0 when it is not ok.
    This description might be not complete and bit short but I dont have the time to fully look it up, please let me know if you didnt understand the idea behind it.
    Regards
    C.

  • Key and Text in selection criteria depending on user

    Hello,
    I have strange situation and I have no idea how to fix this issue. I built the report in BEx and present it to the users. When they expand the selection criteria options (from first pop-up window of variables), they want to see both texts and keys. All of them set up the option "Key and Text" from settings, but some of them see descriptions, some of them see only keys given twice (what happens when there are no descriptions for masterdata). It is a big surprise for me and I am not able to fix it. Do you have any idea?
    Best Regards,
    Arelis

    Hello,
    I use BEx Analyzer. The patch level is the same.
    Masterdata texts are maintained of course. It it wouldn't - noone would see the texts.
    Arelis

  • Displaying Restricted Key Figure Based on Fiscal Year

    I'll try and explain my problem.
    We have created a query using the CCA cube. We created 3 restricted key figures each with a different budget plan version. They are called 'AB' ,'PB' and 'RB'. When the user runs the query it will show planned values out for 5 years. So for example right now we are in Fiscal year 2006.
    The problem is that 'AB' is only valid for year 2006, 'RB' may only me valid for 2007 and 'RB' may only be valid for 2008 - 2010. They use a different plan version for different years, If I place all three columns on the report I get zeros when the plans are not valid. Here is what I would like: When the fiscal year changes somehow select the correct restricted key figure to show and also adjust the text to reflect the fiscal year.
    Its like my variables are dependent on the fiscal year displayed.
    Any help would be great.
    Rick

    Hi Richard,
    Have you tried out the Suppressing Zeros options in query properties...if the whole column is blank for a particular year, you should be able to suppress it. Click here for more info:
    http://help.sap.com/saphelp_nw04/helpdata/en/1e/99ea3bd7896f58e10000000a11402f/content.htm
    You can use text variables in the RKF description to reflect the year for which the data is being displayed.
    Hope this helps...

  • Calculated Key-Figure based on Cumulated Key-Figure

    Hi BW-Community,
    I have problems defining a ckf based on a key-figure wich are marked as cumulated. I know this topic was discussed before
    but I did not find a acceptable solution yet.
    Here is my example (as it should be)
    *** KF1     KF2   CKF3 (KF1 % KF2)
    2            2           100%      
    4            2           200%
    6            2           300%
    And this is the Output from BW
    *** KF1    KF2   CKF3 (KF1 % KF2)
    2            2           100%      
    4            2           100%
    6            2           100%
    BW uses the not cumulated keyfigure-value instead of the cumulated value,
    I tried several things:
    1.) Use the class CL_RSR_WWW_MODIFY_TAB and redefine the method data_cell to do a manual calculation on the results. This works but
    it is very inflexible and restricted on WEb Template also the Excel Integration do not work properly.
    2.) Mark the CKF also as cumulated but this don't work either.
    My customer uses such calculation on almost every Query and Report so I need a practicable solution.
    I think the best way to solve this is in the staginf prozess, but i did not find a solution yet.
    Does anybody know a workaround, solution? We will put to NW2004s soon is there any chance that this will work
    in this release?
    Thank you in advance
    Greetings
    Timo

    Hi
    Thank you for the replies.
    I create a new CKF without percentage funktion but it didn't work. Same result as described in the first post.
    Even if i put only KF1 in a new CKF (e.g.CKF2  =KF1) the uncumuated value is shouwm
    Example:
    *** KF1    CKF2
    2           2 
    4           2
    6           2
    @ Structure
    I know that using structure is possible. But we cannot use structures, because we have a dynamic amount of characteristic-values (e.g. 0calday)

  • How to transfer Customers to APO based on selection criteria of Division

    Hello,
    We have to transfer Customer Master specific to one business unit to APO and we don't want to transnfer the Customers of another business units. The differentiation of customers is done at a Distribution Channel & Division level. But we don't have Dist Channel & Division as a Selection criteria in Integration Model(CFM1). 
    The other option od Sales Org. Account Grp are common to other Business units too.
    Please provide your suggestions how we can do this.
    Thanks,
    Ashish

    Ashish
    You can manipulate the CFM1 o/p list using the BadI CIF_INT_MODEL. So you actually select all customers in the integration model and add custom logic in this badI implementation to delete the customers that you dont want to transfer . The updated CFM1 output list will then contain the customers that you want .
    Actually we used this BadI for manipulating the PIR's and BOM IM's and it is working without issues
    Thanks
    Aparna

  • Restricting key figure based on - INPUT value or value in TRANSACTION data

    Hi fellow BWers, hope you can help with this report requirement.
    Manual input variable : 0CALMONTH.
    <b>Is it possible to restrict a key figure (0amount) like this on-the-fly: </b>
    If 0calmonth in input variable > 0calmonth in transaction data
       then restrict 0amount with 0calmonth from input variable
    else restrict 0amount with 0calmonth from transaction data
    It's a must-have requirement to do it 'on the fly', not in the ETL.
    Thanks very much,
    AG

    Thanks a lot, I get the idea
    In order to get the 0calmonth from the transaction data, i need to :
    1. display the lowest granularity in the rows (so that calmonth is unique)
    2. then use formula variable with replacement path on the infoobject 0CALMONTH to get the value from transaction data?
    Is this correct?
    If yes...since the user does not want the lowest granularity in the report, he wants result pr. profit center, this will happen if I take 'No display' on the characteristics :
    Profit center A ||  20
    Profit center A ||  30
    Profit center A ||  10
    Profit center B ||  15
    <b>Question</b> How do I get the total pr. profit center, despite having all the other characteristics (hidden) in the row?
    Thanks
    AG

Maybe you are looking for