Restrict the Key figure to Variable number of days

Hello Everybody,
How can I achieve the following result in query??
User enters date range e.g. 21.5.2009 - 2.6.2009
Format for your reference
Cal Day  Cal Month  LOB   Material      Item Cost    Next 90 Day forecast QTY Last 90 Day Usage QTY
                                                                           (Qty restricted to below range)
21-May       May      LOB 1  Material A      6.20        21 May + 90 days              21 May - 90 days
22-May       May      LOB 1  Material B      8.50        22 May + 90 days              22 May - 90 days
2-Jun          June      LOB 4  Material C     53.35       2 Jun + 90 days                 2 Jun - 90 days
I appreciate the responses in anticipation.
Thanks

hi chowdary ,
could you tell me the var. creation in detail and  with which reference object i need to create ...
whether i need to take LM_DATE / 0DATE while creating variable...
and i kept this variables it in filter section, based on the LM_DATE Object.
i have tried both.. y'day when i take 0DATE it giving me some results...
But at the same time it is restricting the records..
i think it could be a problem with var.. properties?
need more inputs pls.
Regards,
VJ

Similar Messages

  • Can i use the key figure total delivery time in days in rows and how is can

    Dear all,
              Can i use the key figure total delivery time in days in rows and how is can.but all the key figures r used in rows but i cannot use in column.i want bothin rows and in column  at a time ,can this is possible,and how.

    Hi,
      yes you can.You will have to use structure in the row.
    Right click on the row and create a new structure.
    In this structure you can add key figure.
    Maximum number of structure a query can have is two
    Please assign points if it helped you.
    Regards,
    Senoy

  • Need help for report Variable to restrict the key figure value...

    Hai gurus,
    Now i have data in the cube as follows...
    Reuisition     HR INTW date     LM INTW DATE     TEL INTW DATE     HR Count     LM Count     TEL Count
    a1              01.01.2010     02.01.2010             01.04.2010                 1                1                 1
    a2              02.02.2010     03.02.2010             02.02.2010                 1                1               1
    a3              03.03.2010     04.03.2010             03.03.2010                 1                1               1
    when i execute the report it shd ask the prompts with Date interval as in the below...
    HR INTW date
    LM INTW DATE
    TEL INTW DATE
    if i dont give any interval in the variable prompt it should display all the recors as follows
    Reuisition     HR Count     LM Count     TEL Count
    a1               1                  1               1
    a2               1                  1                     1
    a3               1                   1             1
    If i give LM INTW DATE interval as    01.01.2010 to 31.02.2010
    then it should display all the other counts as in the output_1 , but for LM count for a3 it should show 0.
    Reuisition     HR Count     LM Count     TEL Count
    a1               1                  1               1
    a2               1                  1                     1
    a3               1                 0                  1
    that means wherever i restrict the data depending on the variable that only that interval key figure value shd be in the report..
    for this scenario, which variable i need to use... and how i need to restict the KFig value in the report...
    Right now i am getting like this but it is restricting the records,,, where it should not restrict the records...in the report..
    Please guide me for the same...
    If any concerns about the scenario please let me know...
    Regards,
    VJ

    hi chowdary ,
    could you tell me the var. creation in detail and  with which reference object i need to create ...
    whether i need to take LM_DATE / 0DATE while creating variable...
    and i kept this variables it in filter section, based on the LM_DATE Object.
    i have tried both.. y'day when i take 0DATE it giving me some results...
    But at the same time it is restricting the records..
    i think it could be a problem with var.. properties?
    need more inputs pls.
    Regards,
    VJ

  • Setting the values of the key figures

    Hi,
    I have a problem in a query. There is a variable chosen with a range for 0calmonth. For the two of the key figures, I need to restrict the key figure to the first period and for the other key figure I need to restrict to the last period. However, what I need more is that if in the restricted period there is no value for that key figure it should get the first period that it has a value. For example:
    Our variable set as: 02.2006   -  05.2006
    And our data is
         CalMonth          KeyFig1     KeyFig2
    A     02.2006                 0            7
    A     03.2006                 0           8
    A     04.2006                 4            9
    A     05.2006                  5            0
    I want to see in the query as:
                  KeyFig1    KeyFig2
    A              4                9             
    When I add the results with first value and last value, I can see these figures in the general results section. But this time I have to hide the key figures and show only the results section.
    Any idea on preparing such a query?
    Thanks in advance...

    Hi,
    try using conditions:
    http://help.sap.com/saphelp_nw70/helpdata/en/43/2695d2fd2f0d23e10000000a1553f7/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/43/b57138c1afbd20e10000009b38f889/content.htm

  • Subject: Restricted/Calculated Key Figure

    I am writing a query on 0TCT_C21.  In my Characteristic restriction, I am restricting Process Type to u201CCHAINu201D. Now I want to setup a key figure (it can be calculated or total) which will sum process chain duration (i.e. run time) for all the process types except CHAIN, so it will give total process chain run time. How can I do that?
    I setup a Restricted Key Figure, which restricts Duration to all Process Types except CHAIN, but since filtering on PROCESS TYPE CHAIN has already been done, it is showing me process chain run time as 0. Is there a way to do total of all process types even though I have placed a filter?
    Thanks a lot,

    hi,
    Your query seams to have contradictory restrictions.
    Your Statement: "In my Characteristic restriction, I am restricting Process Type to u201CCHAINu201D".
    You have already restricted teh query with the Process type "CHAIN" and OLAP will take this as Global filter.
    But your next statement:
    "Now I want to setup a key figure (it can be calculated or total) which will sum process chain duration (i.e. run time) for all the process types except CHAIN,"
    By this you want to have key figure with Process Type " Chain".
    This CKF/RKF will be considered a Local filter.
    The global filter will take preference and The report will fetch the data with Process type " CHAIN " Only .
    So after that when your local filter applied on RKF this will 0 as an output.
    My suggestion is:
    Restrict the Key Figures with the process types as and when required.
    Means the key figure value you want to show only for CHAIn and NOT for chain needs to be identified and developed.
    Please modfy the requirement to avoid contracdiction of filters.
    Thanks
    Mukesh

  • How to create Variables for the Key Figures

    Hi All,
    How to create Variables for the Key Figures
    Thanks
    Bhaskar

    Hi,
    It is not possible to create the variables on Key figures directly. But we can create a formula variable with processing type 'User Entry' ,SO that the user entered value can be used in the calculations of the query.
    With rgds,
    Anil Kumar Sharma .P

  • Fiscal year in the columns outside the key figure structure

    Dear Experts
    I have a report requirement to show the keyfigures in the columns from year 1 to year 10 and in each year there are 4 keyfigures each restricted to 1 quarter for 4 quarters.
    So, there are too many keyfigures to create.
    I am using fiscal year in the columns outside the Key figure structure containing the keyfigures restricted at each of 4 quarters.
    So, when the report displays, all the 10 years will automatically be displayed.
    The problem is one of the 4 quarter level keyfigures needs to be restricted by calendar year.
    How can I read what is the fiscal year for each column at runtime so that I can reference this value to determine the calendar year ?
    As you know, each FY spans 2 Calendar Years. So, i need to restrict this on the 4th keyfigure by calendar year but while having the FY outside the keyfigure structure i can get all the FY, I am not sure how to access this value at runtime so that eg.
    if FY for column 1 is 2010, i can set calendar year to be 2010 to 2011.
    Hope you can give me some clues.
    Thanks you Gurus!
    Best regards
    John

    Dear Sunnybt
    Copy Riyes,  I find your response interesting. Please could you elaborate your idea of using condition in more detail.
    Sorry for my late response.
    Allow me to clarify my statement, which you are right, is unclear.
    By :
    "if the current QuarterFY is less than the current QuarterFY"
    I mean :
    eg. user enters FY range : 2009 to 20NN  (eg. 2017)
    KF_column1_FY2009_Q1______KF_column2_FY2009_Q2____KF_column3_FY2009_Q3______KF_column_FY2009_Q4______KF_column_FY2010_Q1______KF_column2_FY2010_Q2____KF_column3_FY2010_Q3______KF_column_FY2010_Q4_____KF_column_FY_NNNN_Q1
    For each column, where the FY can be any year range entered by user,
    the Text Description of the Column should show either 'Actual' or 'Plan' based on what is the current FY Quarter at runtime.
    If the FY Quarter (eg. 1st column is 200101) is before current FY Quarter (i.e 201103), then the Description of this column should be "Actual" , else "Plan".
    In my current design, I am unable to use customer exit text variable to meet this requirement.
    So, I like to check with you for fresher ideas.
    If not , I would use a workbook, which I am avoiding as the user needs to drilldown and I believe drilldown is not possible in workbooks where report layout needs to be rigid or cell positions fixed. Of course, unless there is a way out of this which I do not know.
    Best regards
    Bass

  • Difference between Formula, Formula Key Figure & Formula Variable

    Hi Experts,
    I have a basic question in my mind:
    1) What is the difference b/w Formula, Formula Variable, Formula Key Figure?
    2) What is the difference b/w Selection, Filter and Restriction?
    Can you pls explain with some scenarios? That will be helpful.
    Thanks in Advance.

    Hi,
    You are right, these are basic questions and can be learnt just by a little bit searching.So search the forum before posting such questions please.
    Nevertheless :
    http://wiki.sdn.sap.com/wiki/display/BI/CalculatedKeyFigure+RestrictedkeyfigureFilter
    http://help.sap.com/saphelp_nw04s/helpdata/en/61/d0b143aa26b849b4e79a859ea1d7d1/content.htm
    Scenario:
    You want to see the revenue that you get from Product A,B,C in the country of D and E.You also want to calculate a bonus value that will be given to distributors and this revenue will be calculated based on the user's input.E.g user inputs 5 and you give 5% of the sales to distributors.Then here, to get the input 5  and TO USE IT IN THE FORMULA ,you must create a formula variable.You also  must a have key figure revenue to see the revenue of course and a calculated key figure(or a formula) called bonus value = formula variable*revenue/100 to calculate the bonus which will be given to distributors.
    The other thing you must do is restricting product with A,B,C and country by D and E just by right clicking on them  in query designer.What remains is the selection.Let's say you also want to see the total sales of A and B.Then create a selection in the columns then restrict it by dragging and dropping A and B and the key figure revenue.
    By the way, filter(tab) is used to restrict the data coming from cube and affects everything in the report(in contrast to the restricting  selection, because restricting selection affects only the selection, not other fields of the report)
    Regards,
    Güneş BÜYÜKTANIR

  • Populating the key figure in the Cube

    hi frineds,
         I need to populated the custom key fiugre added by me in the cube using the update rule. But if i see the tables of the cube it is seperate for every dimension and key figure. how can i select the particular record from the key figure table with out the reference of the dimensions table.
    Thanks
    Prem

    so you want to
    1. read particular record from cube
    2. populate the amount there.
    but populating the amount directly to infocube is not advisable and not feasible as well.
    my suggestion will be virtual infoprov based on transformation
    you will have to write your logic there and you can populate the amount based on billing number (you said you have amount against billing number).
    at query runtime based on transformation/logic your amount will be populated.
    only drawback reduced query performance

  • Can we filter the Key figure ( by not using Bex Conditions)

    Hello Friends,
    I have a requirement in which I am passing the result of one query "A" to another query "B" ( using replacement path). Also there is a requirement to filter the keyfigure of the query "A"
    Problems I face:
    1) If I use Conditions, it does'nt filter the actual rows from the info cube, but just the query result
    2) Hence when I pass the query result of "A" to query "B", it sends more records which I dont need.
    Question:
    Hence is it possible to filter the keyfigure values at the database level?
    Thanks... Hope some one will guide me.....................

    Hi,
    I've had a similar problem in the past, not specifically for a replacement path but because the number of rows returned by the query was too great to use conditions. In the end what I did was create a characteristic char version of the key figure that was loaded from the same source as the key figure. You then effectively have a key figure that can be filtered in the same way as a normal characteristic.
    Hope this helps.
    Gareth

  • Restricted & Calculated Key figures and Structures

    Hello Gurus,
    I'm using a BW Query to create my universe and all I see is a class called Key Figures and few objects. I don't see my restricted and Calculated Key figures.
    Also I want to understand how are the Structures in BW Query brought into Universe? All I see is a column class and row class with corresponding objects in it.
    Environment: BO XI 3.1
    Appreciate your help.
    Regards,
    Vijay
    Edited by: vijay dwivedula on Jun 12, 2009 7:46 PM

    Hi Ingo,
    Sorry for getting back a little late on this issue. I've been trying to fix other issues. I'm creating my report out of BW Query and I'm not able to see all the Restricted Key Figures. Also when I try to create my report out of existing key figures and verify the data with BW analyzer the data seems to be different.
    What happens is in my universe I've two classes naming Rows_xyz, Column_abc etc and there are like 25 objects in Rows_xyz when there are supposed to be like 60 key figures and in Column class I have a single object. When I pull in this coulmn obect and pull like 3-4 key figures (which I made sure have data from BW Query Analyzer) doesn't return any data. It doesn't even throw an error as No data to fetch.
    I took the MDX Query that is generated by this report and ran it on the backend and see that there is no data even there. But from the BW Query Analyzer I can see data for this Column and the key figures that I pulled in the report.
    Thank you for your help
    Vijay

  • Can we suppress the key figure from the filter values?

    Hi,
    I have one restricted key figure.
    1) Is it possible to hide the key figure for calender year 2009 and display it for year 2010. I mean can we hide the column dynamically?
    2) Can we grey out the key figure from filter criteia so that it cannot be checked for specific calender year?
    eg if i have 3 key figures as One , Two , Three.
    In filter , it will show One , two ,  three  and the checkbox . Is it possible to grey out the checkbox so that user will not be able to check it or tick it?
    Regards!

    Hi,
    1) I don't think we can hide it dynamically.
    2) I dont think we can give such a option in the query designer.can you explain what is ur exact requirement.
    Regards,
    Ravi

  • 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

  • How can i do to see the master and text values of the Key figure 0UNIT

    Hi gurus,
    How can i do to see the master and text values of the Key figure 0UNIT, please step by step, i m in the key figure 0UNIT but i want to see if the UNIT  for example BX = BOX, something like this is that i want to check,  thanks!

    If you look at the unit tables, you will see the values and texts.  It's in SPRO, not in RSA1.  My access is limited on my system here, but the documentation says to go to t-code CUNI.  I believe in that tcode you can look at all of the unit equivalencies and what each unit's text is ..... like an ea means each; KG = Kilogram; etc...
    I am on an 3.x system, so in SPRO I go to BW CIG=>General Settings=>Check units of measurement.
    Brian

  • Select the Key Figures to be presented in a query before execute the it

    Hi,
    I want to select(through checkbox) the Key Figures to be presented in a query before executing the query. I'm creating BEX queries and web templates (I'm working on BEX 7.0).
    I haven't found clear post about this so if you have implemented something like this please help me and share your solution.
    Kind regards,
    Ana

    Hi,
    If you set a property of your KF as "Hide and can be shown", you will get a filter option for these KFs after executing the report in the navigational block of web report.
    When you click on that filter, you will get the list of KFs, then you can select the desired KFs using check box.
    Regards,
    Yogesh.

Maybe you are looking for