Key date in query designer

Hi All,
I have a requirements to read data based on t.code S_AHR_61016403 by using Trip Begins On date and filter by receipt date therefore I’m using DS 0FI_TV_01 and able to get data into Cube level correctly.
In Query designer, I have to use trip beginning date and filter by receipt date then put in MTD and YTD bucket based on receipt date.
For example, trip beginning date 01.07.2014 – 31.07.2014, could get 100 records which has different months data with total amount1500/- but based on receipt date 01.07.2014 – 31.07.2014 there are only 75 records with total amount 1000/-  I only interested total value 1000/-
I’m thinking to create a Key Date in query designer to read beginning date range and receipt date range. 
Can anybody give how to achieve this.
regards
Naani

0FI_TV_01 is a transaction datasource. Hence your Trip begin/Enddates are transactional data. You cannot use them as part of Key date in Query designer.
One more thing, you can't use ranges in Key date. It works only with single date.
you have to either create two variables in query filter. or restrict your KF with both variables.

Similar Messages

  • Sort data by key figure in Query Designer

    Hi Gurus,
    Is it possible to sort a query according to a key figure from Query designer?
    Thanks

    Using condition TOP N is the solution

  • System Date in Query Designer

    I have a characterstic 'Deadline Date'. I have to calculate a formula 'Days Left' which is equal to
    Deadline Date - System Current Date.
    How can i do that in query designer?? How can i get system date in query designer??
    Regards,
    Aisha Ishrat
    ICI Pakistan Ltd.

    Hi Philip,
    Actually I needed the output on VC. so i simply created a date type variable and in VC ,  i mapped that variable to Now().
    Regards,
    Aisha Ishrat
    ICI Pakistan Ltd.

  • About the Key date in Query Properties

    Hi,
    With regard to the Key date in Query Properties, As I understood from the previous postings that it is used to filter out the data for Time dependent Master data object. But once we set up this key date, isn't it applicable to all InfoObjects in Query. For example, if I give  Key date as 20/05/2007, can't we get data beyond 20/05/2007 to all the objects in Query when I have Employee Group as Time dependent Attribute. And if we create any variable for Key date under calday, isn't it applicable to all objects. How is it applicable to only Employee Group.

    Re: Key Date in Query Properties -can it be dynamic ?
    Say i have a query that has a user input date range interval. Say the query is supposed to display some key figures restricted on a Time Dependent Characteristic attribute for the date range.
    So, in the Query Properties - i really DONT want to set the Key Date to a fixed date ( today or a user input date) but instead i want to set it to the system date that the BW olap processor is going to use while selecting each and every row from the cube while processing the date range.
    for example while processing the date range - for each one of the dates it hits upon a fact table record and it has to fetch the attribute from the time dependent master data table using that date and if this attribute is 'x' then aggregate the key figure if not go to the next one...
    do i make sense ? let me know if the above doesn't. I will try to explain my Q again. Want to know if BW lets you do that.
    thanks
    Arun Pond.

  • Not able to enter data in query designer

    hi
    can any one help, i created a input ready query on multi provider contain both standered and real time cube, here real time cube not contain any data.
    when i created layout by taking 2 chracteristics and 2 key figures from real time cube it give me like " no data available".
    what i have to do here to enter data to realtime cube key figure

    First check if you have created aggregate level.
    Second check the loading behavior setting on the Realtime infocube- it must be set to "Real- Time Data Target can be planned, data loading not allowed’'.
    Third, query must be also input ready- in other words set the Selections (key figures) to input ready in Query designer.
    Finaly, when you open context menu over the query, Bex Analyzer' Analysis grid, you can check the input ready settings for every cell if you want. If you did all steps, mentioned in the text above, input ready check box will be automatically checked for every cell of input enabled keyfigures...
    Alex.

  • Creating a resticted Key Figure in Query Designer (3.5)

    Hello, hope your all well!
    I'm trying to create a restricted key figure that's related to the publication date of one of our titles.
    I've tried to create a Structure that shows one text result if the publication date is the same or greater than 01.01.2008 and another if it's less. However, in my results it seems to be bringing two results for each line, one with each text result.
    Could anyone point my in the right direction?
    Have a fantastic weekend,
    Rhys

    Sorry, I'm new at this; what do you mean by inputs?
    I'm trying to create something in the query designer that displays one text result if the result is lower than a certain number and another if higher,
    Hope that makes sense.
    Take care!
    Rhys

  • Aggregation ---Settings of KF(Key Figure) in Query Designer

    Hi,
       What is the impact of the following setting in the query result
    Query Designer>KF Definition>Edit-->Aggregation (TAB)
    Exception Aggregation-->MAximum and
    Ref Characterstic
    Thanks

    Hi,
    To enable the calculation of key figures, the data from the InfoProvider has to be aggregated to the detail level of the query and formulas may also need to be calculated. The system has to aggregate using multiple characteristics. In regard to a selected characteristic, the system can aggregate with another rule for each key figure (exception aggregation).
    http://help.sap.com/saphelp_nw04s/helpdata/en/75/21054da1392649948e5b94e4fc4bce/frameset.htm
    Exception aggregation ?
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/53717c223a1bcde10000000a1553f7/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/4d6d902dbb22c5e10000000a42189d/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/5dfdca3ea9427fe10000000a42189d/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/d2/e0173f5ff48443e10000000a114084/frameset.htm
    Rgs,
    I.R.K

  • How to copy restricted key figures in query designer ?

    hi,
    i have created a query in query designer (BI 7.0).
    How can i copy existing restricted key figures ? i can't find anything. i always have to create a new one, and then i have to do all the things like 'details of selection' etc.... manually. that CANNOT be, there MUST be a way to copy those key figures.
    any ideas ?
    best regards, Martin

    Hi Martin,
    Restricted key figures can be stored on the infoprovider basis . For which right click on the key figure (left hand side pane ), Select the necessary key figure and assign the restriction through characteristics combination, and give it a restriction and save it . Next tiem when you create query on the same info provider it should appear in the left hand side as readymade reusable piece .
    Hope that helps.
    Regards
    Mr Kapadia

  • How to use Key Date in query

    Imagine an invoice was created for a customer on the 1st of January 2008 for £1000
    On the 1st of Feb, he paid $300, owing $700
    On the 1st of Mar, he paid $450, owing $250
    On the 1st of Apr, he paid $250.
    If I run an AR report today the 10th of Aug, I would see he owes nothing. What I want to do is to run the report today based on the 2nd of March and see a debt of £250. I dont want to use the posting date in the selection criteria henceI think this is the case when you use a key date but I’m not sure how to use this in the query properties of BI7. What Characteristic do I need to specify as time dependant? Is there anything else I should consider?

    hi,
    Key Date setting is for the 'time dependent' master data.
    Lets say u have a Characteristic MATERIAL with a time dependent attribute MATERIAL GROUP as follows.
    MATERIAL FROM TO MATERIAL GROUP
    ABD 01/01/1995 12/31/2003 X
    ABD 01/01/2004 12/31/9999 Y
    Depending on what you have for the Keydate, the Material group is selected.
    If your key date is, ex, 06/12/2001 there material group is X. Or if key date is 02/15/2005, material group is Y.
    If you do not enter any value for keydate, system automatically assumes today' date.
    hope it helps..

  • How to search for Key Figures in Query Designer 7.0?

    Hi,
    in BEx Query Designer 3.5 there was a search function to look after key figures or characteristics. Is there a search function in Query Designer 7.0?
    Thanks.

    Hi,
    QD 3.x version has "Find" option to identify the KF and Characteristics,but the same is not available with QD 7.x.
    Reason could be:
    With QD 7.x,just by typing the starting letters of KF or Characteristics by Keyboard itself,it will highlight you the entries.Hence there is no explicit Find option provided.But in case of QD 3.x,they gave it explicitely.
    Rgds,
    Murali

  • Calculated Key Figures in Query Designer - translation

    Hello Experts,
    I created  a few Caclulated Key Figure in the Query Designer. They have a GUID and a text description.
    I would like to know:
    1) How these CKF are represented in ABAP on the system and where I can find them - some database table  ?
    2) If I want the description to be available in many languages how can I handle this ?
    Thanks a lot
    Rado

    Check this
    Tables analysed by analyze_rsz_tables
    Khaja

  • How to make key date of query as transcation date in cube

    I am facing an issues in displaying the transaction data with time dependent master data.
    I want to set the key date of the query to go against the transaction date and diplay the respective master data.
    I read in other posts,
    that i cant use the user exit variable, because the exit is executed only once before the query run.
    The fllowing is the report i want to achive,
    customer|customer_grp-|date-|--|sale
    100-----|-sa|jan 1|--- 15$
    100-----|-ic|oct 1|--- 32$
    in the above scenario, customer_grp for cusotmer 100 is sa from jan - mar and
    customer_grp for cusotmer 100 is ic from apr - dec
    I have customer_grp as time dependent attribute of customer. when i execute the report with key date as ,nov 1st
    it displays as,
    customer|customer_grp-|date-|--|sale
    100-----|-ic|jan 1|--- 15$
    100-----|-ic|oct 1|--- 32$
    if key date is jan 1st it displays as,
    customer|customer_grp----|date-|--|sale
    100--|-sa|jan 1|--- 15$
    100--|-sa|oct 1|--- 32$
    let me know whether it is possible to achive this type of report
    -thanks in advance
    - points will be awarded for  inputs

    Hello,
    I have the same kind of requirement.
    Is it possible to assign a Date field from the cube to Keydate of the query so that the time-dep attribute value is properly displayed based on InvoiceDate of each record, not based on today(query keydate by default)?
    Otherway i can think of is to add a Char/KF to cube and insert the value using a query on Masterdata in update rules. How far this approach is recommended?
    Thanks in advance,
    vamsi.

  • Restricted Key Figure in Query Designer

    Hi,
    I have defined a Input-Variable on the Characteristic 0PURCH_ORG (Purchasing Org.) in the Query Designer.
    This Variable is Mandator and represents "Selection Option". Means, the user has to give the Input-Varaible for ex. 0010...0011.
    Now my requirement is to define a restriced key figure where these Purchasing Org. from Input-Variable must exclude
    in the restriced key figure. I cannot exclude the Input-Varaible in restriced Key Figure as it represents "Selection Option".
    I tried to define a Customer-Exit Variable (Selection Option) on the Characteristic 0PURCH_ORG which should exclude the Input-Variable.
    But the ABAP-Code for Customer-Exit Variable doesn't work.
    Any clue, how I can solve this problem?
    Thanks

    Hi Moha Nan,
    A variable of the type selection option can not be excluded therefore a variable exit is your only option. What is the current ABAP you have written and why doesn't it work? Maybe we can find the issue with the coding.
    You need one variable of the type selection option and another one to read the first variable and reverse the option sign (from include to exclude).
    Regards,
    Alex.

  • Pb with language logon and data display Query designer

    Hello,
    I do the translations (FR => EN) via RSA1 and SE63 of my variables of my Query for the query designer.
    It works I have no technical name that appears in the query designer.
    But when I run my query using the query designer, the query is displayed in French while I am logged in English.
    I want the query is displayed in english when I'm logged into English.
    How can I do?
    Thank you pour votre aide.
    Edited by: KhalidTaibi on Jul 6, 2010 6:31 PM

    Hello,
    Per I can understand, you are executing the query from Query Designer.
    So, if you are using Query designer 7.0, you are calling the Enterprise Portal.
    Even with English on Query Designer, you have to logon as english on the
    Portal, as well.
    Try to check your Browser configuration.
    On Internet Explorer:
    Tools
    Internet Option
    Language
    Check if English is configured as the first language.
    Also, ensure the query1s objects exists on english version.
    Best regards,
    Edward John

  • Error in total of Key figure in query designing

    Dear Friends,
    I am new at query designing & am stuck in a problem.
    I have a CKF named Load in the column.
    When I select District & Complaint No.in rows the result is some 100 rows and upon exporting the result in excel & summing up load the total comes out to be right..............................
    BUT in web browser when i choose only District in the row and the result is a single row the sum of load displayed is incorrect.............wht cn b the possible reason of this??
    Thnx in advance.

    Hi Dear, i asume every districwise total also calculated. pls check onemoretime.
    Regards
    Amulu

Maybe you are looking for