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

Similar Messages

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

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

  • Currency translation for a restricted key figure in Query designer

    Dear Experts,
    In my query i am using a restricted Keyfigure (ZRKF1 which is reusable). I have to change the currency translation key of the restricted Key Figure  from zcur1 to zcur2. I am not able to edit zrkf1 Currency translation in the properties( It is in gray colour) ,while i can do it for a normal keyfigure.  if i edit zrkf1 then other queries will be affected. How should i solve this? Can i copy and paste the zrkf1 to zrkf2 in order to use zrkf2 with currency translation zcur2 in my query ? How can i coy and paste restricted key figure?
    Thanks,
    Riya

    Hello Riya
    I think you can't change the currency transaltion type for RKF... to change it in RKF just make the changes in the KF which you have used in RKF....
    If you don't want to change the CURR translation type in KF1 than copy it paste it (KF2)and change in that KF2...now u can use KF2 in restricted KF...
    Thanks
    Tripple k

  • 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

  • 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

  • Building a new Cube Vs Restricted Key figure in Query - Performance issue

    Hi,
    I have a requirement to create  a OPEX restricted key figure in Query. The problem is that the key figure should be restricted to about 30 GL Accounts and almost 300 Cost centers.
    I do not know if this might cause performance issue in the query. At the moment, I am thinking of creating a new OPEX cube and load only those 30 GL Accounts, 300 cost  centers and Amount. and  include OPEX  in multiprovider in order to get OPEX
    amount in the report.
    whats the best solution - creating OPEX restricted key figure or OPEX cube ?
    thanks,
    Bhat

    I think you should go for cube as all the restrcited key figure are calculated at OLAP runtime so it will definitely affect the query performance.There are a lot of costcenter for which you have to restrict it so definitely during the runtime of query it will take a lot of time to fetch tha data from infoprovider.Its better that you create a cube with the restrictions and include it in MP.It will definitely save a lot of time during query execution
    Edited by: shyam agarwal on Feb 29, 2012 10:26 AM

  • Convert Date to Calendar week in Query Designer

    Hi experts,
    Is it possible to convert date to week in the query designer?
    Thanks in advance for your help.
    Best Regards,
    Rose

    Hi,
    Can you please explain more about virtual char you mentioned?
    What i am actually doing is i am using a formula variable (getting the value from customer exit) and i based the calculation of other keyfigures basing on this value.  The input value.. (data type date ) does not filter my query output.. it is only purely used for calculating other keyfigure values.  The data types (Dimension Settings ) available in formula variable are only quantity, amount, pice and number, date and time..  there is no week there.  So currently I am using the date.  If I can convert date to week then.. I can make my query a lot simpler.
    Thanks for your reply...
    Regards,
    Rose

  • Restrict on a "Date" type (key-figure)

    Hello, all
    1. I need to define a query, to compare the planed-date and the current-date(today), if planed-date>today, then in the new column, the firstday of the month will be listed
    (e.g. 1-12-2005).
    could you give me some suggestion, how can I found the functions of reading date in Query Designer.(I didn't find any function in the Form).
    2. Any how can I add Macro in the report? is there some document I can read in SDN?
    Many thanks
    Tony

    Hi Tony,
    I don’t know details about your infoobjects design tech aspects. Hence, I propose that what will work. You can adjust your design accordingly.
    I encountered a problem while working with dates determined as key figure attribute.
    But with dates as reference to 0CALDAY attributes everything works.
    So, we have a Project infoobject. Create plan-beg-date and plan-end-date characteristics with reference to 0CALDAY. Assign them as attributes to Project. For testing purposes enter manualy several master data for it. Insert it as a data target (RSA1, infoproviders area). If you have a cube with the Project, then you don’t need the previous step.
    In BEx, create a V1 formula variable for plan-beg-date: replacement path, char = Project, Replace var with = Attribute value, Attribute = plan-beg-date, check ‘To value’.
    Similarly, create V2 formula variable for plan-end-date.
    Create in columns a new structure. If you work with Project infoobjects as infoprovider, put into structure ‘Number of records KF’, otherwise the following steps might not work.  Add into the structure a new formula = V1, new formula = V2, new formula = V2 - V1. It will give you the the planned duration of the project.
    Now, create X1 & X2, two customer exit variables on 0CALDAY. Based on either user entered reporting day or on current sys-day they should return the first and last days of the reporting/current month.
    In the structure create another formula for corrected beginning date:
    DATE ( ( 'V1' < 'X1' ) * 'X1' + ( 'X1' < 'V1' ) * 'V1' )
    and a formula for corrected ending date:
    DATE ( ( 'V2' > 'X2' ) * 'X2' + ( 'X2' > 'V2' ) * 'V2' )
    Now you can calculate planned days for the reporting month or even the total number of project plan days.
    About macro – you execute a query, embed it into a workbook, write a macro and save the workbook. Next time you’ll open the workbook in Analyzer.
    Best regards,
    Eugene

  • Number of key figures per query

    Hi guys
    I have a cube with over 150 key figures.
    In query designer I can see only the first 150.
    Does anyone know where to change this limitation?
    Regards
    Shlomi

    Hi Thejo,
    There is no direct way to do this using another BW query simply because the data is not stored in either Masterdata Info Objects/CUBE ODS. They are stored in BW system tables which are not directly accesible by any queries to build using the Query Builder.
    Try to locate the system table that holds these Info (Keyfigures + Query Name) and do ABAP Query instead.
    Regards,
    Jkyle

  • How to fill a Key figure at Query run time

    Hi All,
    I have a requirement where I have to fill a key figure while the query is running. This value is obtained by multiplying 2 attributes of a Material Master Data object.I  could have used Formula Variable but there are two problems -
    1. I have material in my info provider but not this Material Master Data object.
    2. For a particular material, there are multiple rows in the Master Data object. And I have to pick only one row by applying some condition on a field of the MD object.
    Please let me know if there is some way to implement this.

    Hello,
    You can obtain this using virtual KF. Create a KF and include in the cube on which report is built. Dont have any mapping/rule for the same.
    Now write ur code using SMOD and populate this KF during runtime.
    Regds,
    Shashank

Maybe you are looking for

  • Error while invoking a EBS

    Hi, I created an BPEL process process and tried to invoke an ESB process. ESB process is created using EBS. while i am trying to initiate the process with out any input in BPELconsole it is giving error that 'Could not initiate the BPEL process becau

  • How do I perform an action on return key press in an inputListOfValues?

    I know about the autoSubmit attribute, but I do not want to perform an action on a tab character or when exiting focus. Instead, I want to perform the same action as pressing a button when the user presses the return key in the input field. For examp

  • Outlook 2011 for Mac stops retrieving new e-mail

    I have both Outlook 2011 for Mac and Apple Mac tied to the same Gmail account via IMAP. After a few hours, Outlook stops retrieving new e-mail while Apple Mail continues retrieving new e-mail with no problem. I've already deleted the Gmail account fr

  • Help Needed---Opening Attachments/Templates of a BP in non-editable mode

    Hi... I am new to CRM... How do we open a document/Template attached to a BP in non-editable mode in web UI? Helpful Answers would be rewarded. Thanks Swapna

  • Illustrator crashes after opening new or existing file

    I have the trial version of Illustrator CS5 and am using Windows XP Professional with Service Pack 3.  I want to purchase the full version of CS5 Design, but everytime I try to use Illustrator, it crashes.  More specifically, it launches just fine.