Choosing specific key figure

Hi all,
There are 12 key figures (one for each month) and now I want select one of them in the query for output according to input value. For example, when user entry is 3, in the report will be visible column Z03, for 4 column Z04, etc.
How can I achieve this behavior in BEX?
Message was edited by: Jozko Pucik

try out this:
Drag and drop all 12 Keyfigures into columns panel of Query designer and hide them (right click>properties>Display:always hide).
Create a new formula (formula variable )on '0CALMONTH2'(month) and hide it.Lets name it as 'Month'.
Drag and drop 0calmonth2 into Free chars and restrict with a single value,ready for input,mandatory variable.
now create a new Formula = (Month = 1)Kf1 +(Month = 2)Kf2 +(Month = 3)Kf3 +(Month = 4)Kf4 +(Month = 5)Kf5 +(Month = 6)Kf6 +(Month = 7)Kf7 +(Month = 8)Kf8 +(Month = 9)Kf9 +(Month = 10)Kf10 +(Month = 11)Kf11 +(Month = 12)Kf12 .
So depending on the entered value in selection screen,respective Keyfigure will be displayed and remaining all will become zero in formaula.
Message was edited by: Murali

Similar Messages

  • Customer-Specific Key Figure and MCI3 analysis report

    Hi,
    We have created a "Customer-Specific Key Figures" in customizing and mapped the key with value category. But this new defined key figure is not available in the report MCI3.
    How to get this figure in the analysis report MCI3 etc , i.e. how to update the information structure S115.
    Regards

    Hello,
    You have to develope the new programme using that info structure and update that new value field in your customising logic programe .
    Regards,
    Rakesh

  • WAD question: fix each chart series to a specific key figure

    Hi All,
    I hope you can help.
    In WAD is it possible to fix each series in a chart to a specific key figure from the data provider (query)?
    We need to be able to do this because the opening position of our query has a number of hidden key figures, that are displayed later in navigation.
    Without being able to fix the series to key figures, in the opening view some key figures are appearing as columns rather than lines and vice versa.
    Thanks and regards
    IM

    Thanks for your help, Pcrao.
    My scenario is:
    I have 15 key figures in the columns of my query (data provider).
    The first 12 of these KFs are to be displayed as bars (columns) and the last 3 as lines in the chart of my web query.
    I can set this no problem in WAD.
    But my problem is that because a number of my key figures are set as hide in the query designer (to be unhidden later in navigation) the last three KF's are displaying (incorrectly) as bars until I unhide all KF's in the navigation.
    In other words, it seems to me that I need to fix each series in the chart editing to a specific key figure. But I don't know how.
    Thanks again and regards
    IM

  • Dynamic choose which key figure to be showed on query

    Hi, everybody.
    I'm trying to build a query where, based on the user selection (maybe a variable input) the key figure A or B is showed. The key figure, due design requirements, is restricted in several lines inside a structure on query.
    For example, the structure seems like this:
    +Sold Quantity (restricted key figure: 0QUANTITY)
    +Revenue (restricted key figure: 0AMOUNT + DOC_TYPE = 'XYZ')
    +Returns (restricted key figure: 0AMOUNT + DOC_TYPE = 'ABC')
    What I want is, depending on a user input, change the key figure restricted in 2nd and 3rd rows to oher, for example, ZAMOUNT.
    Any tips or any idea if it is possible?
    Thanks,
    Henrique Teodoro

    You can do it by using the basic formula <user input> * 0amount + <user input inverse> * zamount.
    you can create that formula in calculated key figures.
    here the user should be able to enter <user input> only 0 or 1...where 0 will give zamount values ....input value 1 will allow 0amount value to be shown..suppressing the other keyfigure.
    Let me know if its clear ... else i can explain in further detail.
    Award points if useful.
    Thanks
    Sharan

  • Adding new key figure in Info structure

    Hi all,
    I am in a need to add a new key figure to our info structure here in my company.
    The way I understand it is, it would be best to create a NEW info structure and copy all existing key figure and characteristic and then insert my new key figure into this and rewrite the macro if required.
    So my question is
    1. How to determine which info structure is currently in use in my company? If i check in MC89 - the key figures match what is in Info structure S076. So is it safe to assume that we are using standard S&OP in my company? Is that a correct way to identify the currently used info structure?
    2. For our KMAT, when i open a planned order I see that there in another info structure (not S076) under configuration tab. So can we have diff info structure in use at a same time ?
    Please guide.
    Thanks,

    Hi Nisha,
    1. First of all, How would I determine which info structure is being used at this time in my company?
    I need to know this so that when I am creating my own custom (S500 - S999) info structure, i can copy the existing KFs and Characteristics and add them to my info structure and then Add a specific key figure on top of that.
    Info structures are nothing but tables so in se16 you can check which are Info structures are having update values.
    Yes you can add the specific key figure on existing self defined info structure in MC22 after that you need to generate it.
    2. Can multiple info structure be in 'use' at the same time in any scenario? 
    For self defined info structure are application specific you can not have multiple info structure for same scenario. If you take the example of flexible planning with self defined info structure then you can transfer the demand from only one info structure.
    Regards,
    R.Brahmankar

  • Adding new key figures to DP planning area

    I am using APO DP.
    When adding new key figures to a planning area, is there any way of avoiding having to deinitialise and then re initialise the planning area?
    Thanks for any advice on this...

    First of, let us know which version of DP are you using.
    If you are using 7.0, all you need to do is right click on your planning area and select Change Keyfigure setting and you should be able to update the key figures there.
    The below is from SAP help for SAP APO 7.0, you should be able to add the key figure without deinitializing the planning area.
    Key Figure Settings
    Here you can change the properties of the key figures of a planning area, if the planning area has already been initialized. You can also add or delete key figures. However, you can only delete key figures that are no longer used in planning books, data views, macros, or demand forecasts. You can find out in which objects a specific key figure is used with the where-used list.

  • Steps to create a Restricted Key Figure

    Hi,
    I am trying to create a  BEx Query and want to create a Restricted Key Figure.
    I am using BEx 7.x.
    Please help me with steps to create a Restricted Key FIgure.
    Thnaks and Regards,
    Shreyas Shah

    Hi Shreyas,
    Please find the step by step to create a restricted key figures.
    Procedure for Defining a new restricted key figure:
    1. In the InfoProvider screen area, select the Key Figures entry and choose New Restricted Key Figure from the context menu (secondary mouse button).
    If a restricted key figure has already been defined for this InfoProvider, you can also select the Restricted Key Figures entry and then choose New Restricted Key Figure from the context menu.
    The entry New Restricted Key Figure is inserted and the properties for the restricted key figure are displayed in the Properties screen area.
    2. Select the New Restricted Key Figure entry and choose Edit from the context menu (secondary mouse button).
    The Change Restricted Key Figure dialog box appears.
    You can also call the Change Restricted Key Figure dialog box from the Properties screen area by choosing the Edit pushbutton.
    You make the basic settings on the General tab page.
    The text field, in which you can enter a description of the restricted key figure, is found in the upper part of the screen.
    You can use text variables in the description (see Using Text Variables).
    Next to that, you can enter a technical name in the Technical Name field.
    Underneath the text field, to the left of the Detail View area, the directory of all objects available in the InfoProvider is displayed. The empty field for defining the restricted key figure (Details of the Selection) is on the right-hand side of the screen.
    3. Using drag and drop, choose a key figure from the InfoProvider and restrict it by selecting one or more characteristic values. See Restricting Characteristics.
    You can also use variables instead of characteristic values. However, note that you cannot use the following variable types in restricted key figures for technical reasons:
    Variables with the process type Replacement with Query (see also Replacement Path: Replacement with Querys)
    Variables that represent a precalculated value set (see also Details)
    You can use these variable types to restrict characteristics in the rows, columns, or in the filter.
    4. Make any necessary settings for the properties of the restricted key figure on the other tab pages. See Selection/Formula Propertiess.
    5. Choose OK. The new restricted key figure is defined for the InfoProvider.
    Let me know if this helps.
    Thanks
    Sachin

  • Property u201Czero allowedu201D must be identical for all Key Figures.

    I am having the following error message when trying to run a Statistical Forecast in the Background.  The job cancels out and I receive the error message:  Property u201Czero allowedu201D must be identical for all Key Figures. 
    When I look in RSA1 under Key Figures Details "zero allowed" appears to be checked for all Key Figures.  Can anyone point me in the correct direction I've already tried searching and did not find the answer.
    Thanks.

    HI,
    The setting is not in RSA1 but is in /SAPAPO/MSDP_ADMIN - Administration of Demand Planning and Supply Network Planning
    choose the relevant Planning area right button click on the Planning area choose change key figure settings. From here you can check the flag Zero allowed for the key figure that Stat. FCST is generated.
    Best Regards,
    Ivo Stoyanov

  • How can we restrict Key Figure in the BI System

    Hi All,
    Can any one explain How can i restrict key figures in BI system.
    So when i create a query a specific user  can only execute it if a specific key figure is a part of query otherwise he is not allowed to execute a query.
    For Example:
    A user TEST123 is allowed to execute a query with keyfigure Quantity he is not allowed to execute the query if any other key figure is present in the query
    Regards,
    Deepak

    Hay Diogo,
    Bravo...
    Your suggetions always work for me. The scenario was that
    A user TEST_PLD08 should only allow to see output for the querys which consist of the keyfigure PLDQUACMP and not for other keyfigures while other user TEST_PLD07 is allowed to see the output for  querys consist of any of the keyfiguers.
    so I have assign a authorization profile  PLD_TEST07 to the user TEST_PLD08 with KeyFigures authorization as mentioned below and it is working fine
    I     EQ     :
    I     EQ     PLDQUACMP
    You can forward me more scenarios like this if you can think of more it will be really helpful for me
    Regards,
    Deepak

  • Filtering a Query result for a specific value of a key figure

    Hi folks,
    I want to filter a query for a specific value of a key figure. The report should display all customer who has an account balance greater than EUR 500'000.
    Can I only implement this kind of filter via a condition in Query-Designer? If I run that query on an InfoCube with non-cumulative key figures over all our customers (> 400'000) I have problems with the consumption of the memory. If I restrict the amount of the customers to 50'000 - 60'000 then it works. It seems that the query reads all customer records in an internal table before applying the condition.
    Is there another way to deal with? Any help appreciated.
    Kind regards
    Hansjörg Luzi
    Graubündner Kantonalbank
    CH-7002 Chur

    You could try to implement an alternative solution: define a new Characteristc with discrete values (in the following example I suppose to have intervals of 10)
    KF -> CHAR
    115 -> 110 (110 <= KF < 120)
      5 ->   0 (  0 <= KF <  10)
    83 ->  80 ( 80 <= KF <  90)
    Then you can use these dicrete values to filter ...
    I know that it's not so "flexible" (discetization must be predefined), but query response time is quicker and you can use Aggregates ...
    Hope it helps
    GFV

  • How to find which Restricted Key Figures are using a specific hierararchy??

    HI Experts,
      I am updating a very important hierarchy which is used in many queries and in many Restricted key figures. Is it possible to find in which Restricted Key Figures this specific hierarchy is used??
    Thanks in advance.
    Meyling.

    Hi
    I was able to find a solution
    I built a new dataset in report builder using the same table as before but tried out the "Group and Aggregate" function and for the case_ship
    field I chose "Sum" as my aggregate.... In essence this gave me a very cool and easy daliy sum of the shipped cases. 
    When I used this new dataset and built my matrix report I was able to easily get the max daily shipment for each product by week, month and
    year.
    Tom

  • How to choose the characteristics and key figures for a cube

    Hi Gurus,
    To create a CO-PA cube, based on a DataSource, what chars and kfs should I select from std objects? I have the list of fields from the datasource, but how to interpret what infoobject/s are relevant for each io?

    To create a CO-PA cube, based on a DataSource, what chars and kfs should I select from std objects? I have the list of fields from the datasource, but how to interpret what infoobject/s are relevant for each io?
    Hi,
    For CO-PA since it is a generated DataSource, except for the common characteristics ( E.g. Company Code, Controlling Area ) where you get standard InfoObjects for all other Characteristics and Key Figures you end up creating custom or Z characteristics and key figures. This is unavoidable.
    Assigning points is the only way of saying thanks in SDN
    Thanks,
    Shan.

  • Query Designer restricted key figures using a prompt value

    Hallo Experts,
    I would like to restrict key figures after user has beeen prompted to enter a date. I have 2 key figures:
    a) KF1, Date1
    b) KF2, Date2
    User should be prompted to select a specific date: e.g. 01/2011. After selecting/entering the prompted date value, it should be given to date objects for intance Date1=01/2011 and Date2=01/2011.
    How could I achieve it in Query Designer without using customer_exit function? Reason is that non-experienced users will use this report and they should not be confronted with complex query. Do you have any idea?  
    Many thanks
    Mamadu

    Hi,
    I assume that you need to restrict the value of keyfigures by date based on user input data on variable selection screen.
    First create one user input variable on your date field say for eg calday.
    Now restrict your KF1 with calday and choose that vairable which you created.
    For second KF2 which seems to me need to be restricted with offset of +1 based on the date entered by the user.
    So restrict this KF2 with calday and use the same variable with offset of +1
    I just misunderstood you ned calmonth or day because in requirement you have given month but you are calling it as date.
    If its month then replace calday with calmonth..
    Hope it helps.
    Regards,
    AL:
    Edited by: AL1112 on Dec 21, 2011 9:42 AM

  • SAP Note 0407563: Key Figure Model versus Account Model in BW

    I am reviewing a document on Key Figure Model versus Account Model in BW.
    There are a number of references to "SAP Note 0407563", can anyone with access to this note post it here for me to review. Sometimes some otf there links prompt for password.
    Thanks in advance.

    Hi,
    <b>SAP Note 0407563</b>
    Symptom
    You would like to design a data model for SEM-BPS and you are not sure, whether to use the key figure or the account model.
    You are looking for proposals for data modelling.
    Additional key words
    bps0, key figure, characteristic, model, data modelling, consultation
    Cause and prerequisites
    In the following you find a simple example by means of which the terms key figure and account model are defined.
    In the example we want to assign several key figures (for example revenues) to a characteristic (for example customer), whose units (for example currency DM) are identical.A modeling option, which is called key figure model, contains all key figures in one data record.
    Customer Revenue_1 Revenue_2 Revenue_3 
    A 10 DM 30 DM  50 DM 
    In the account model, on the other hand, an additional characteristic is added, which separates the revenue types.
    Customer Type Revenue
    A 1 10 DM
    A 2 30 DM
    A 3 50 DM
    Advantages and disadvantages from the point of view of data modelling
    You can easily add an additional revenue type in the account model, because you do not have to change the data structure.In the key figure model, on the other hand, you must add an additional key figure to the structure.It actually depends on the frequency of these changes occurring.
    A data record that is to be changed by a processor, is exclusively locked by SEM-BPS for this processor.A lock that only concerns individual key figures of a data record is not possible.As a consequence the different revenue types can be changed simultaneously by different processors in the account model, wheras in the key figure model one processor automatically locks all key figures exclusively for his own use.
    If you use a planning function in the account or key figure model, a different Customizing is required in general. Consequently, a conversion of the data model leads to a change of Customizing in general.
    Advantages and disadvantages from the technical point of view
    The transaction data is stored in the BW.Analyses have shown that the read time basically depends on the number and not on the size of the data records.In the above example you can see that by changing the key figure and account model the number of records increases by factor 3, which means that you must expect longer read times.When determining the factor you must take into account that normally not all key figures are used in every record in the key figure model.As a consequence only those records are created when changing to the account model, for which the key figures are not equal to zero.
    Example:
    So if in the above example the key figure Revenue_1 is not used, only two records are generated and consequently the value of the factor is also reduced to 2.
    After the transaction data has been read from the BW, it is stored in the application server's memory.The amount of memory required depends, among other things, on the number and on the length of the records.The length can be influenced by the data model you choose:in the key figure model the records are longer than in the account model and therefore consume more memory for each record. Therefore, the key figure or account model will require less memory depending on the relationship between record length and number of records.
    When the data model is changed, also the planning functions must be revised.Depending on the type of calculation there might be advantages for one of the models.
    Example and rules of thumb
    The following example contains 30 key figures, which were mapped to 3 key figures and one additional characteristic with a maximum of 10 characteristic values when you changed to the account model.In both models a price calculation between three key figures each was executed.Consider the specifications in the table as relative specifications:For the number of data records you for example find a and a*10.This means that in the second case the number of data records is larger by factor 10 than in the first case.The determination of the relationships is based on 5000 data records in the key figure model.
    Example: all key figures are used (100%)
    measured size      :     Key figure model, Account model
    Number data records:      a      ,     a*10
    Read time       :     l      ,     l*10
    Price calculation:      t      ,     t*9
    Data record length:      d*4      ,     d
    Memory requirement :     m      ,     m*3
    Example: Key figures are partially used (20%)
    measured size      :     Key figure model ,Account model
    Number data records :          a      ,     a*2
    Read time           :     l      ,     l*2
    Price calculation      :     t      ,     t*2
    Data record length      :     d*4      ,     d
    Memory requirement      :     m      ,     m*0,8
    How are the sizes determined?
    Read the related notes for details on the use of the statistics.
    1. a: In the statistics of SEM-BPS or BW this value is stored when you execute a planning function. The method has the name 0-DB1.
    2. l: The above statistical record also contains the execution time.
    3. t: In the statistics of SEM-BPS a record is stored for the planning function.The overall runtime of the planning function contains the database time. Therefore the database time must be subtracted from the runtime of the planning function to determine t.
    4. d: The data record length corresponds to the data structure length (ABAP length), which is generated for every area.The name is made up as follows:
      Prefix:  /1SEM/_YS_DATA_
      Client: mmm
      Name of the area: gggggggg
    The client must always be specified with three digits, the area only in its actual length.The name for an area called 'MYAREA' which is in client 001 is for example /1SEM/_YS_DATA_001MYAREA.When you determine the length, note that there is the dictionary and the ABAP length (Transaction SE11 => Extras => Structure width => ABAP length) and that the total of the two structures contained must be determined.In the structure stated above, for example /1SEM/_YS_CHAS_001MYAREA and /1SEM/_YS_KYFS_001MYAREA are contained.The total is the length you are looking for.
    5. m: After executing the planning function, start Transaction STAD and find the appropriate statistical record for the dialog step, in which you have executed the planning function.The record contains a memory specification, which is the desired value for s.
    Solution
    Bear in mind that the values from the example are not generally valid, but were determined from a specific example.We recommend that you determine the parameters (both the values of the variables and of the relationships) for your specific case and to use it as the basis for discussion.You should not choose too few data records, because the fixed memory consumers predominate otherwise.
    Regards-
    Siddhu
    Message was edited by: sidhartha

  • Adding key figures using commands in Web Application Designer?

    Hello, all.
    I have a query the contains several key figures.  From that query, I created a query view in which only one of the key figures is displayed.  I'm using this query view for one of the data providers in a web template.  In Web Applicaiton Designer, I would like to be able to hide the key figure from the data provider and show a different one.  How can I accomplish this using the built-in commands?
    I know I can hide all key figures using the CLEAR_SELECTION_STATE command, but I can't figure out how to use a command such as SET_SELECTION_STATE_SIMPLE to show a different key figure.  Any help would be great!  Thanks.

    I've tried that using the GUI to configure the command, but WAD crashes when I try to open the window where I choose the member name.  The error says:
    "4A6DM1A4LTXPJKA1BA3LD9TTD is not a valid characteristic for InfoProvider MQM_M01."
    I also tried entering the commands as you suggested in the XHTML editor, but that resulted in an error when I tried to execute the command.
    Maybe I can do what I'm trying to do using some method other than changing key figures.  Basically all I want do is change the date range of the data shown using offsets.
    The key figures that I'm trying to add and remove are restricted in Query Designer to different date ranges.  These date ranges use offsets to set the restriction.  For example, one key figure is restricted to display values for only the last 7 days and I'm trying to replace it with a key figure that's restricted to the last 14 days.
    If I knew how to set a filter with offsets using commands in WAD, then I'd use that method, instead.  Any suggestions would be appreciated.

Maybe you are looking for

  • About using SO_NEW_DOCUMENT_ATT_SEND_API1 to send mail to external!

    hi i using the function to send mail from sap to external! the coding as follow: but i will get sy-subrc = 2:document could not be sent to any of the recipients if i want to send mail from SAP and how to solved it ! thank you very much! *& Report  ZJ

  • Using OLE DB with C++ on Windows

    I am trying to get this sample code (see below) to run. Has anyone been successful in running this code (OleMR)? I get An E_FAIL error from the pIDBInitialize->Initialize() statement in the OLEHandler.cpp file. Thank You, Fred Sample code came from O

  • Hi regording dought in reporting

    hi experts can u help me for this i have a report want to see my name teja in checkbox if i give ravi in one checkbox in selectionscreen what is the event where can put logic what is the logic

  • Can u explain the query?

    select file_name, ceil( (nvl(hwm,1)*8192)/1024/1024 ) possible, ceil( blocks*8192/1024/1024) current, ceil( blocks*8192/1024/1024) - ceil( (nvl(hwm,1)*8192)/1024/1024 ) saving from dba_data_files a, ( select file_id, max(block_id+blocks-1) hwm from d

  • Für die Kampatibilität mit Contribute erfordelriche Datei ist aufem Server nicht vorhanden.

    Können Sie mir sagen welche Datei(en) dazu benötigt werden?