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.

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

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

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

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

  • How to filter Key Figures - not using the GUIDs

    An example How to filter Key Figures may look like this:
    http://XXX.com:8000/sap/bw/BEx?sap-language=DE&bsplanguage=DE&CMD=LDOC&TEMPLATE_ID=XXX&FILTER_IOBJNM=41F68RV4ZB5VYSARODYU70CAQ&FILTER_VALUE=41F68SAI18DB01DO023IR49QA
    The GUIDs consume the space in the URl. Is there a way to work with an alias.
    To use the technical name of a Key Figure defined in the Query does not work.

    Hi Cherie,
    This is exactly the type of problem that I'm currently trying to figure out. I'm trying to following your solution but I'm not clear on how you actually achieved this in you last note. I want to dynamically select actuals/budget column fields based on what period I enter. I thought about creating 12 separate RKF fields for actuals and 12 separate RKF fields for the budget reforecast and outputting these all and then doing some VBA to hide the fields not required based on which period was selected... how is your variable ZFYAPER7 defined and calculated?
    Cheers

  • Key figure flag in the planning layout

    Hi,
    Can anyone explain the importance of the key figure flag in the planning layout?
    Regds
    Pavan.

    Hi Arun and  Zegion,
    Thank you for your responses.
    Arun, I do not have any aggregates on the cube. I changed the aggregate properties of the Key Figure from SUM to Minimum. this has solved my problem temporarily.
    the reason I am saying temporarily because this is a SAP delivered InfoObject. This is for the datasource 0CO_PC_PCP_01. When I read through the documents, it said, SUMMation for Aggregation and Last value for "Exception Aggregation" will display the value of KF as the last value and does not add them up.
    Since this wasn't the happening in my query, I changed the Aggregation from SUM to Minimum.
    Regards,
    S.P

  • Unable to find key figure attribute in the cube

    Hi all of you,
    I am struggling while working on this "Display Attribute". Please read this and help me out.
    I want to create attributes and then load data into a cube.
    I had created an InfoArea IA_ATTRIBUTES.
    Under this IA_ATTRIBUTES I created an InfoObject Catalog IOC_DISPATTR.
    Under IOC_DISPATTR I created an InfoObject ZCUSTNUMB which is my primary key.
    After defining the ZCUSTNUMB I clicked on the Attributes tab and entered the other attributes like ZCUSTNAME, ZCUSTADDR, ZCUSTREGI, ZCUSTLOCA, and ZPRICE. All of these attributes except ZPRICE are characteristics WHILE ZPRICE is a keyfigure.
    I've also made sure that the Attributes only check box is not checked for all the characteristics.
    I then activated the InfoObject ZCUSTNUMB and came back.
    Now I created a cube DISP_ATTR. I clicked on the InfoObject Catalog button and selected the above mentioned catalog IOC_DISPATTR and transferred the IOs from the template into the structure.
    Now when I transfer IOs in this way all the IOs both characteristics and key figures should come into the structure of the cube isnt't. But only characteristics have come and the keyfigure ZPRICE hasn't come.
    Moreover when I hit on the key figures tab and hit on the find button and find ZPRICE I am getting a message saying "No (further) object found". So when I hit on the create button and create a key figure ZPRICE I am getting a message saying "InfoObject ZPRICE already exists as Key Figure (please rename)".
    However when I double click on ZCUSTNUMB which is the primary key, the screen "Display characteristic ZCUSTNUMB: Detail" opens. In this screen I find all the attributes in the attributes tab that I had defined while defining attributes including ZPRICE.
    So what I don't understand is when all the characteristics IOs are visible under the characteristics tab then why am I unable to find the key figure ZPRICE under Key figures tab when I created it while defining attributes. Can anyone please explain me this situation and tell me how should I find the key figure ZPRICE so that I can go ahead and create the cube.
    Lastly I want to know what are the differences between InfoObjects and Attributes. Is an attribute also an IO?
    Please explain.
    I would appropriately rewards your answers.
    Thank you.
    TR.

    Hi Oscar Romero,
    Thanks a lot for your reply. As per your suggestion I created another IOC FOR key figures called IOC_ATTR_KF. In this IOC I had included the key figure ZPRICE and activated the IOC.
    Now I have created a cube again ATTR_DISP. On the right corner where we find 5 buttons I clicked on the InfoObject Catalog button. The screen "Select InfoObject Catalog" opened displaying the IOC_ATTR_KF that I had created earlier. When I double clicked on the IOC_ATTR_KF I got the msg asking "Do you want to transfer the IOs from the template into the structure?" I clicked on Yes. But I don't find any key figures either in the Structure pane or in the Template pane. Both the panes are empty.
    I also clicked on the All InfoObjects button and searched for ZPRICE but again I am getting the message "No "further) object found". However when I try to create ZPRICE I am getting the message ZPRICE already exists.
    Please explain me why this is happening like this?

  • Querying a table based on a selection criteria

    Hi Gurus,
    Could you please help me in creating a function module that picks records from the table based on certain selection criteria.For eg, If contract number(a primary field) is an import parameter and I want the Function module to export all the records with contract number starting with 1 or may be ending with 303.How could I query this??
    Thanks,
    Ashwini

    Hello,
    Creation of Function Module
    Goto TCode SE37
    Click on the Menu Goto->Create Function Group
    Create Z (ZPTP) function group and Activate Function Group even if the error occurs
    Create Function module Namely Z (ZTEST) assign to the function group (ZPTP)
    Go to the Import parameters (EBLEN TYPE EKKO-EBELN)
    Go to the Tables ( itab type ekpo)
    Goto the Source code
    tables ekpo.
    Select * from ekpo into table itab
    where ebeln eq ebeln.
    Activate the function module and run the function
    regards
    suresh nair

  • "Filter the LOV based on the selected conditions" RADIO BUTTON doesn' work

    Hi All, I'm trying to create a cascading parameters mechanism, but I found certain difficulties.
    I need to have 2 LOV connect: the master LOV retrieve a list of User's groups, and the detail LOV has to retrieve only the customer's categories that come from the user's groups selected.
    So, in order to retrieve the values I defined on the Administrator:
    1) one custom folder for the master LOV (list of the User's groups) and another custom folder for the details LOV (list of the customer's categories).
    2) The 2 LOV as item classes
    On Discoverer Plus, following the manual ("About filtering lists of parameter values based on selected conditions ("cascading parameters"), I tried to create thw first parameter based on the master LOV, but I DON'T have the radio button "Filter the list of values based on the selected conditions" enabled !!!...I CAN'T USE IT !
    If this radio button is not enabled, I can't link the master parameter with the detail parameter.....
    Anybody can help to discoverer what I missed during the creation of cascading parameters ?
    Thanks in advance for your help
    Alex

    Hi Manav, thanks for your reply !
    I resolved the problem, linked the two custom folders with a join !
    The radio button didn't work just only the parameter where condition has to be deselected and then re-selected !!
    Alex

  • Is there a way to hide some reports based on the selected values in prompt.

    Hi Experts,
    Is there a way to hide some reports based on the selected values in prompt.
    For ex. if a year is selected in the prompt then the report should display year wise report.
    If a year and half year both are selected in the drop down from prompt section then 2 reports should come.. One for year wise and another for half year wise.Kindly look into this.
    Regards
    Ashish

    Hi,
    Use presentation values in prompts for year,half,qtr and month.Example- For year-y is presentation variable in the same way for halfyear-h,qtr-q and month-m.
    create four intermediate reports.Example-Report r1 with only year column,r2 with only halfyear column,r3 with qtr column and r4 with month column.
    Make column in each report(r1,r2,r3,r4) is equal to their presentation variables(y,h,q,m).
    Use four sections.
    Section1-Place report that should come when only year.
    section2-Place report that should come for year and halfyear.
    Section3-Place report that should come for year,halfyear and qtr.
    Section4-Place report that should come for year,halfyear,qtr and month.
    Apply guided navigation for each section selecting guided navigation-
    For section1-
    properties->Guided navigation->check this Reference Source Request(Yes)->select report r1(year)->check this Show Section(if request returns row)
    In the same way do for remaining section2(select r2),section3(select r3) and section4(select r4)
    Thanks,
    Srikanth
    http://bintelligencegroup.wordpress.com/

  • Populating other fields in a form based on the selection in a combobox field

    We have done a form(masterdetail) in which we have a combobox field.When we make a selection in the field we require some two other fields to be automatically populated retrieving data from a table(which has the details required) based on the selection made.For eg. Selecting emp id(combobox) should populate empname and salary automatically in the form.Is this possible?If so how can this be done?
    Thanks & Regards,
    Jayanthi.S

    This is what I did following Michael's suggestion and it works fine :-
    1> Created a dynamic LOV named LOV_EMPNO as:-
    select empno,empno from scott.emp
    2> Started creating a form named FORM024_EMP2 on scott.emp.
    3> On reaching the Formatting and Validation section, I chose the EMPNO field in the left frame.
    In the right frame for EMPNO, I changed the item-type to Combobox and selected the lov LOV_EMPNO.
    Then I went to the Javascript handler section for EMPNO, chose the Javascript event onChange and in the
    adjacent Textarea, I wrote:-
    popdetails(this);
    We will create the javascript function popdetails() in the Additional pl/sql section.
    4> Click next and goto the Additional PL/SQL section and I wrote the following code in
    "...after displaying the page" area.
    (You can write this either in
    before displaying the page,
    before displaying the form,
    after displaying the form,
    after displaying the page).
    declare
    type tvcarr is table of varchar2(2000) index by binary_integer;
    l_empno_arr tvcarr;
    l_ename_arr tvcarr;
    l_sal_arr tvcarr;
    begin
    select empno,ename,sal
    bulk collect into
    l_empno_arr,l_ename_arr,l_sal_arr
    from scott.emp;
    htp.p('
    <script>
    var empdets = new Array();
    empdets[0] = new Array("","");
    for i in 1..l_empno_arr.count
    loop
    htp.p('empdets['||l_empno_arr(i)||'] = new Array("'||l_ename_arr(i)||'","'||l_sal_arr(i)||'");');
    end loop;
    htp.p('
    function popdetails(ele)
    var val = new Number();
    var thisform = ele.form;
    val = parseInt(ele.value);
    if (isNaN(val))
    val = 0;
    for (var i = 0; i < thisform.length; i++){
    if (thisform.name == "FORM024_EMP2.DEFAULT.ENAME.01")
    thisform[i].value = empdets[val][0];
    else if(thisform[i].name == "FORM024_EMP2.DEFAULT.SAL.01")
    thisform[i].value = empdets[val][1];
    htp.p('</script>');
    end;

  • Report to show data based on the Selection

    I have a prompt which is having three filters i.e. Region Country and City.
    I have to create a report which shuold show the revenue share based on the selection of the Prompt.
    Say When the Region is selected as Eurpoe then report should be:
    Europe : 12%
    Say When the Counrty is selected as UK then report should be:
    UK: 6%
    Say When the City iis selected as London then report should be:
    London : 1.2%
    How can we get this implemented?

    You want a level based measure in the BMM which will allow you to derive the region share regardless of filtering.
    Then simply use Region is prompted in the report to filter for only the region you want.
    For level based measure, duplicate your measure and drag it to the total level of your Region hierarchy. Define you % measure in the BMM as a logical calc.
    Hope this helps,
    Regards
    Alastair

  • Switch Section in a dashboard based on the selection of Prompts (OBIEE 10G)

    Hi All,
    I have a requirement : I have to switch Section in a dashboard based on the selection of Prompts (OBIEE 10G).
    Lets say I have 1 report in section1 and another report in section2 of a dashboard. I have a dashboard prompt,now say when the user does not select any value in a prompt I have to show section1 and when he selects values in a prompt then I have to show section2 of the dashboard. I tries this using Guided Navigation Link and presentation variable but there is a limitation that I have to select only one value in the prompt as i have created presentation variable.
    But the client wants the prompt as Multi Select. in this case I can 't use the presentation variable.
    How can I fulfil this requirement.Please let me know.
    Thanks,
    Krishna

    How you create your multiselect prompt? Is it based on a column? Using multiselect prompt you'll get an issue in this case. The prompt behavior with choosing all values and choosing nothing is equivalent. But your requirement has different behavior lines.

  • While selecting value from combo box in one frame, based on the selection..

    Hi friends,
    can someone help me out on a issue as it follows:-
    iam developing an application where Iam using xsl,html,javascript and xml.
    There is no existense of Database at all. data is read from xml.
    now,
    In a window there are 3 frames. In the 1st frame combo box is there.
    Based on the selection in the combo box data will be displayed in the 2nd frame.
    now onchange or onselect methods not giving the expected result.
    actually,in the the xsl which is having 3 frames,the 1st and 3rd frame
    calling src="abc.xml" and src="abc.xml"which are static.
    but in the 2nd frame the data need to be changed dynamically.
    I have given frame name="frame_ExchangeDetails2" rows="3%" src="cc_marketWatch_02.xml"/>
    usually data dynamically comes from database.but here i have to refer xml file
    something like [window.href.location="abc.xml"]
    but the problem is when you refer supose:-
    <frame name="frame_ExchangeDetails2" rows="3%" src="cc_marketWatch_02.xml"/>
    the frame is having static page,though there are functions in javascript which are called in onload and onchange.which are not working.
    I have tried putting if condition like:-
    if(document.abc.fieldname.value=='6'
    {   window.location.href = "cc_custLookUpData-mobileno.xml";   
    so that it could go to the repective page.
    but it is not working.
    so what should i do if I select from combo box in one frame and based on the selection xml/html page will be displayed in the 2nd frame.
    if anybody has google account i can forward the zip file so it will be easier to understand.
    Regards
    Message was edited by:
    Postqueries
    Message was edited by:
    Postqueries

    If you have rights to modify tabular model then, you can create a measure in your Tabular model which returns previous week and then use this measure in Pivot Table.
    Thanks,
    Sagar K 
    (Blog: http://datamazik.blogspot.in/)

Maybe you are looking for

  • Great CRT Monitor for Mac Mini

    Having purchased a Mac Mini a few weeks ago I was horrified to read all the posts on this site reporting problems with monitors. In need of a new CRT monitor I asked the folks at Mac Zone for a recomendation and then placed an order for the 17" Views

  • Problem printing on dot-matrix printer with continuous paper

    Post Author: kdebruyckere CA Forum: .NET Hi, We're currently developping an .net application for a customer of ours in VS2005 (c#). I used crystal reports for VS2005 to create an invoice. The invoices have to be printed on a dot-matrix printer with c

  • Miro number range

    hi MM i am sd consultant i am doing incoming invoice in MIRO but as i enter the T Code i get a error Number range missing can i knw whr what is tcode tp create a number range for MIRO Regards Vinit

  • While mat .doc archiving error

    Hi While mat .doc archiving i am getting error can not be archived due to Document not completed. How to find what are all the documents and how to correct the same ? Thanks Regards, Dhinesh

  • Erasing internal P'book HD and restoring SOME data from external TM HD?

    I would like to erase the internal 60 GB HD in my PowerBook G4 that is about 99% full. I did a TM backup yesterday (to a 250 GB firewire external) and would like to clear off the internal HD and bring back SOME of the data but not so much that there