Dynamically select Key Figures before executing web-based query

Hi,
I want to select(through checkbox) the Key Figures to be presented in a query before executing the query. The query is web-based.
Has anybody an idea how to achieve this?
Kind regards,
Ton van Velzen

You will need 2 templates.
First one use the Checkbox item to list all the keyfigure structure elements, read the user selections using JavaScript, form the URL with the Filters for the key Figures and call the second template which will display the data.
See the attached for passing filter values to BW Web templates.
http://help.sap.com/saphelp_nw04/helpdata/en/59/edfe395dd76846e10000000a114084/content.htm

Similar Messages

  • How to Create a Restricted Key Figure in BO Webi Report

    Hi Experts,
    Please tell me How to Create a Restricted Key Figure in BO Webi Report.
    Thanks in Advance.
    Regards,
    Rafi

    Hi,
    1. Define a new measure in the designer.
    2. In the select clause give the reference to the key figure on which restriction to be applied.
    For example
    @Select(Key Figures\Number of Records)
    3. In the where clause, give the MDX expression for the filter to be applied.
    For example
    <FILTER KEY="[0PURCH_ORG].[LEVEL01]">
    <CONDITION OPERATORCONDITION="InList">
    <CONSTANT CAPTION="HAS"/>
    </CONDITION>
    </FILTER>
    Regards

  • Selection Key Figures and Key Figures

    I am building a query and I need to combine Key Figures and Selected Key Figures so that they appear on the same row.  However, when I try to do this I get a message that you cannot put the elements in the same structure.  However, if I put in different structures they will not be aligned.  How can I overcome? Thanks

    if i undertd your issue correctly..u have one KF struxture and one characteristic structure.In characteristic structure,u r having restricted characteristics and u r tyring to have a KF in char structure???if so,it is not possible..where exactly u r getting error?it will not allow you to drag and drop Kefigure into Query deisgner except into KF structure..
    in char structure,if u r gng with new selection,u will not have option to select any KFs.
    it could be better if u provide an example rather than explaining theoritically.
    please note that u cant have a KF in characteristic structure .u can have a char in KF strcucture with a KF combination i.e. Restricted KF.
    Message was edited by: Murali

  • Do i have to select all the key figures when i design a query off of a cube

    Do i have to select all the key figures when i design a query off of a cube? i have three keyfigures on the top of the three keyfigures it says calculated keyfigure. kind of lost dont know what to do. please let me know.
    Thanks!
    York

    No, you have to select at least one.
    Calculated keyfigure (CKF) means it's a formula of two or more other keyfigures. You can select, right-mouse click, display properties and you see how it is composed.
    Under calculated keyfigures you see all available keyfigures of the infoprovider you build the query on. Just move them by drag-and drop from the left to the right into the columns.
    You can have also restricted keyfigures (RKF). This means a keyfigure is restricted by one or more characterstics and their values.
    Hope you got an idea.
    Regards,
    Juergen

  • Key Figure in a Input Ready Query

    I have 9 key figures in my input ready query. 5 of them are not input ready and being loaded through a job and 4 are input ready. There is a problem with one key figure, I am able to see data for the key figure when i have START QUERY IN THE CHANGE MODE turned off. But once I turn it on it is not showing any data for the key figure. This is happening only wiht that key figure, all the other key figures are working fine. Could someone help fixing this
    Thanks
    Rashmi.

    Hi,
    I do face this type problem during my BI IP implemenation project. Pls chk thoroughly the following points.
    1.The planning mode of your real-time infocube should be on always on( you need change from load to planning mode, while inputting data).
    2.The START QUERY IN THE CHANGE MODE , should be on.
    3.In the planning tab of key figures, ensure you enable the button : Data can be changed using planning functions.
    4.In the advanced tab of key figures, pls make sure to enable the right button( Master data).
    5.Pls make sure  , the real time infocube, aggregation levels, filters etc, should be refreshed & active,if make any changes in planning model in between, in Aggregation levels,filters etc.
    6. Pls chk the locks( SM12) always, and delete all of them, if any.
    7. Log-off the  Server (BEX/DWWB) and restart the BEX ,then open your Input query, it should work .
    Regards
    CSM Reddy

  • Calculate key figures totals in report based in multiprovider doesn't work.

    Hi dear Friends:
    We have a requirement where the data are in 2 different cubes, the layout defined is
    selections parameters :
    Zsales_offices
    0calweek
                   Columns.
                   0calweek  KFCalc1..............................KFcalc2.....................etc.
                   In rows.
                   01.2007   Qty on demand X unit cost.    sum of all qty's prods
                   02.2007
                   03.2007
                   04.2007
    the structure in cube z1mis contain:
    Zsales_offices,product,0calweeek,unit cost.
    the Second cube structure zdemand contain:
    Zsales_office, product,0calweek,qty on demand
    Our problem is:
    1. As you can see we need keep into KFcalc1 the product from multiply Qty on demand * unit cost but when the result is displaying the result is a wrong amount and the reason is because didn't´t exist a characteristic product in the layout, without this characteristic the amount for qty on demand and unit cost are summarized and multiplying with these amounts.
    We are trying to find a solution vía restricted key figures, calculating before aggregation, but it's not woks.
    I hope that you can give one suggestion.
    Regards.
    Eg@n

    Hi,
    putting product in the rows will slove the issues as the unit cost  depends upon the  prdoduct and therefore it will uniquely identify each of the material and then it will get multiplies with the qty and therefore you will get the correct result.
    this kind of issue you will always face when you are going to multiply cost with the Qty and as the cost differ with the individual material.
    Also putting material into the rows will cause the no. of rows to increase as all the materials will show up in the individual rows for the particular month.
    Also you can make a claculated key fgure for the multiplication and use before aggregation.
    But for that your both the key figures should be in the same cube i.e. in the same rows or the before aggregation will not work you will not even get an option of before aggregation in the CKF if the key figures belong to two different cubes.
    Since your qty and cost are coming from two different cubes before aggreagtion will not work here.
    And if you do before aggregation then you report will become quite slow as it will do all the multiplication anf then will bring the result.
    So it depends on your requirement and your design how to proceed.
    Hope it helps
    Thanks

  • How to calculate key figure before aggregation for complex formular?

    Hi, buddies
    <b>Here's the simplified senario</b>:
    I have a cube, in which the characteristics are 'Calendar Day' and 'Hour' (values are 01~24), and the key figures are stored by day and by hour.
    What I need is very simple, a query to display calculated key figures only by Calendar Day. I don't need Hour information.
    So I create a query: column charact is Calendar Day, rows are several calculated key figures.
    <b>Now the problem is that</b>:
    if I don't put 'Hour' as row in the query, I'll get WRONG result. But if I put 'Hour' as row in the query, I'll get CORRECT result, but all the 'Hour' details will display, which should be hided.
    <b>I know the reason is that</b>:
    the calculated key figure that I create should be calucated before aggregation, not after. But since the formular is pretty complex, I can't change the 'Time of Aggregation Calculation' in key figure's property. (It's greyed out.) So I have to put 'Hour' as row in the query to force calcuation 'before aggregation' in query and set the property 'Calculate Result As...' as 'Summary'.
    <b>My question</b> is:
    whether there's any other way to force calcuation 'before aggregation', so I don't have to put 'Hour' in the query.
    If no, is there a simple way to hide the 'Hour' details and only display summary result ON THE QUERY LEVEL? (
    <i>I can hide detail lines by using web template, or maybe using VB in excel. But I can't use either of them. I want to hide the details on the QUERY LEVEL. So I can use the query directly in any other reporting tools, like Visual Composer.</i>)
    Any idea?
    Wei

    Hi, Sudeepta
    Thanks for your reply.
    I did try to set 'No display' for 'Hour'. The result is that the Characteristics 'Hour' doesn't appear on the query result, but the detailed line of key figures still display on the result. It looks like the followings: (I put summaries on the top/right)
    Date  1/1  1/2  Overall result
    KPI1    10        11   22  (sum line)
    KPI2    20        21   41  (sum line)
    KPI1    12        13   25  (detailed line)
    KPI2    13        13   26  (detailed line)
    KPI1    11        12   23  (detailed line)
    KPI2    12        12   24  (detailed line)
    I want to suppress all the detailed lines and leave sum lines on the result.

  • 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

  • Dynamically displaying key figures in columns - BEx

    Hi all,
    I am working in BEx , My requirement is that ... out of two Variables (User entry) if i select one variable i need to get 4 key figures in out put . If i enter another variable i need to display only 2 key figures out of 4 in columns . I would appreciate if ant one could come out with a solution.
    With Regards
    Venkat

    Hi Venkateswara,
    Are you working in BEx Analyzer or BEx Web?  What version of BW do you have installed? 
    If in BEx Analyzer, follow this link ...
    Re: Where are the BEx variable stored
    After reading that posting, look at this one:
    Re: supress variable-entry-window (SAP-Exit)
    If in BEx Web ... sorry, you will need to find another expert.  But, there are even more API functions for Web reports than for Excel reports, so I am sure that what you want can be done.
    - Pete

  • Key figures in Cost elemnt based report

    Dear All,
    I have created a Cost Element based Report for the Project using report painter. In this same report, I want to pull a key figure(the key figure is 'remaining forecast planned costs") which is coming from cost forecasting report (Report 12CTC1 from transaction CJE0).
    The issue is this 'key figure' is not available for report made in report group 6P3(report group for cost element based report). Is there anyway I can pull this particular key figure in my report.
    Thanks in advance !
    Regards,
    Mahendra Dighe

    Also if you're using HR data, the employee data is time dependent, so that for each employee number there are any number of records. This may be causing the aggregate reporting condition that you mentioned. In BW it's important to recognize that the master data also can play a role in how many records are returned. The infoprovider is not the only source of additional records. For example:
    Employee has three records in the time range.
    Salary infoprovider has only one.
    Results will contain THREE records, one for each employee record, all with the same salary record. On an aggregate basis, the salary results will be multiplied by three.
    Time dependent master data can be a source of much confusion. For some HR reporting, I have created a 'most current' employee master data record that is not time dependent, and is loaded daily. I then use that for data models such as salary or other separate infoproviders.

  • Key figures in cost element based report

    Dear All,
      I have created a Cost Element based Report for the Project using report painter. In this same report, I want to pull a key figure(the key figure is 'remaining forecast planned costs") which is coming from cost forecasting report (Report 12CTC1 from transaction CJE0).
      The issue is this 'key figure' is not available for report made in report group 6P3(report group for cost element based report). Is there anyway I can pull this particular key figure in my report.
      Thanks in advance !
    Regards,
    Mahendra Dighe

    Also if you're using HR data, the employee data is time dependent, so that for each employee number there are any number of records. This may be causing the aggregate reporting condition that you mentioned. In BW it's important to recognize that the master data also can play a role in how many records are returned. The infoprovider is not the only source of additional records. For example:
    Employee has three records in the time range.
    Salary infoprovider has only one.
    Results will contain THREE records, one for each employee record, all with the same salary record. On an aggregate basis, the salary results will be multiplied by three.
    Time dependent master data can be a source of much confusion. For some HR reporting, I have created a 'most current' employee master data record that is not time dependent, and is loaded daily. I then use that for data models such as salary or other separate infoproviders.

  • How achieve "cumulated" key figure in a webi report

    Hi all,
    In a bex query we can mark "cumulated" in properties of characteristic, then when we run this query  our key figures for this characteristic will be cumulated but for rest of characteristics will be non cumulated values. Please how can I get  this cumulated valued in a webi report ?? because in spite of mark this flag in our bex query  when I run  this characteristic in my webi report  it doesnt work.  Perphaps there is a function in webi or there is a proporty to modify in my universe??
    Thanks for your help in advance
    Santi

    Hi David,
    Try using RunningSum(), RunningAverage() etc.. function in Web-I.
    Regards,
    Rohit

  • 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

  • Expand clustered Key Figures in filter panel (based on BW queries)

    Dear colleagues,
    in my BW query, I have created several key figures and have clustered them below Error Categorization 1 and 2.
    In my Design Studio application I use a filter panel to select the key figures. The goal is to show the first level (error cateogization 1 and 2) at a first view with the option to expand these so that the detailed categories can be shown and selected.
    Currently only the subcategories are shown in the filter panel in Design Studio.
    Could you help here?
    Thanks,
    Katharina

    Go to transaction RSRT, select your query, click on the properties tab and tick the selection box "Use Selection of Structure Elements". This is recommended practice where there are lots of key figures.

  • Difference in key figures while creating queries based on infosets and MP?

    Hi all,
    I have created a multi provider using 4 ods. and my keyfigures looks like
    Material    cost        tax amount
    mdb1001  14.58     219.18
    and i have created an infoset using the same 4 ods and my keyfigures looks different like
    Material      cost      tax amount
    mdb1001  21,698       1,433.42
    And i have created the query with the same options. But the key figure values are different why is that so ?
    Can anyone help me on this!!!
    thanxs
    haritha

    hi,
    check your created infoset on the same ods used in multiprovider for reporting.
    are you doing any delta loading to the ods check that also.
    hope this help you
    regards
    harikrishna N

Maybe you are looking for

  • Error message when syncing iPod

    I have a 2nd Generation iTouch and just recently when I go to plug my iTouch into sync, an error message comes up. It says "This iPod cannot be used because the required software is not installed. Run iTunes installer to remove iTunes, then install i

  • Oracle.DataAccess.Client

    I am having problem using "Imports Oracle.DataAccess.Client" on my code. When I put Imports Oracle.DataAccess.Client at the begining of the page, it will underline it and show sign of error. When I use OracleCommand, OracleConnection, OracleDataReade

  • Editing string from a JTextBox

    hallo. I'm trying to make a simple text editing program. You input a sentence, and a method changes some words to others: For example, you put in this sentence: "Patty is not a tool" And this comes out: "Patty is totally a tool" The edited sentence w

  • We are unable to re-install Illustrator 5.1 (from CS 5.5) after having uninstalled it.

    We keep on getting error messages followed by the message that Illustrator could not be installed. Anybody knows what could cause this problem? We use a Macbook pro with OS X 10.9.3 installed The error messages are as follows: Exit Code: 6 ----------

  • If my sound doesnt work on my iphone 4 will apple replace it?

    help me!!