Can I apply Sort on 2 different Fields in Query Designer in SAP BI

Hi Experts,
I have a report 'Employee Education Report' where I have to apply 2 sorts .First sort has to be applied for 'Employee Name' so that employees are sorted from A-Z in ascending order and the second sort has to be applied on 'Education Completion Date' so that for each Employee we get the lastest completed degree at the top for each employee.

Hi Jyoti,
Yeah, I think that can be done in the DISPLAY tab of query designer..Did you try it?
First, click the Employee Name field..In the DISPLAY tab choose the field in SORT CHARACTERISTIC, SORT BY, and SORT DIRECTION..
Do the same for Education Completion Date field..
Regards,
Loed

Similar Messages

  • Can we apply sorting on Column values in Cross tab??

    Can we apply sorting on Column values in Cross tab??
    Following is the scenario with me.
    I have 2 fields and one formula.
    Fields are HostName and Username.
    Formula is status which categorizes the Authorized and Unauthorized events.
    And in the Summary Field, I am calculating the total number of events.
    In cross tab, Fields are marking the Rows of the cross tab and Formula is making the Columns(Authorized and Unauthorized ) of the cross tab.
    Since in cross tab data is grouped from left to right and sorted by default. I want to remove this default sorting and want to put sorting on the formula for Unauthorized events.
    Is there any way to fulfill this requirement?

    Hi,
    You can assign a number to each Unauthorised field e.g
    Rank   Unauthorised
    1         A
    2         BC
    3         DF
    5         TD
    6         GF
    Then add "Rank" to the crostab Columns before the Unauthorised  field. Then you can control the sorting order on your crosstab.
    Hope this helps
    Regards
    Dotun

  • Applying Sorting for the Month Field

    Hi,
    When i apply sort to the month-name field for each quarter(Q1,Q2..), it sorts as 1)February 2)January 3)March..
    Its sorts the month-name field in alphabetical order(F,J,M) not in the usual 1)January 2) February 3)March order..
    To sort this issue i added the numeric field called month with values 1,2,3..
    How to sort the month-name field as January, February???

    And if you're still struggling, [read this|http://blog.davidg.com.au/2011/03/sorting-months-in-webi.html].

  • Heading for Different Types  in Query designer

    We have three different types Direct, Indirect and Others. Where Indirect and Others are fixed values and Direct types are dynamic which are getting from ECC.
    So they are expecting heading before each type and result according to these types.
    Tried so many options but not able to achieve the desired result as expected in Query Designer.
    Please find the attached document for desired output
    Please provide some inputs how can we achieve at the report level.

    hi Naresh,
    Structures are objects that you define in the BEx Query Designer. You can define reusable structures as well. they form the basic framework of a report. You can have maximum of 2 structures in a query. In such case you cannot have the same KeyFigure in both the structures.
    You can also define a structure for a Characteristic.
    Please check out these links.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/4d/e2bebb41da1d42917100471b364efa/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/46/81fc706a23468ce10000000a114a6b/frameset.htm
    Limitations of Structures usage
    You can have maximum of two structures only ... One for kfs and one for characteristics..A characteristic can't be included in a KF structure and a KF can'be included in a characteristic structure...
    We can't have 2 KF structures but we can have 2 Char Structure or 1 KF Structure and 1 Char Structure.
    Regards
    Lavanya.

  • Missing data fields in Query designer

    Hi Guys,
    A query exists on an ODS. There are few characteristics and navigational attributes in the ODS. In Query designer, on the left hand side under Dimensions,
    i can see 'Data part' (for Data fields of ODS) and 'Key section' (for Key fields of ODS).
    All but 2 fields (One data field and one navigational attribute of the ODS) are seen under 'Dart part' of the query designer.
    Data field - Accounting Document number
    Navigational attribute - Actual Acquisition Fiscal Year
    What may the reason for those 2 fields not appearing.
    Any help is greatly appreciated.

    Hi,
    I executed a query on the ODS using LISTCUBE. To my surprise, i can find both 0AC_DOC_NO and ZACQ_YR here. If i can find both these in LISTCUBE, why don't i find the same in the query designer. Even though i built a new query on the ODS in the query designer, i still can't find them in the query designer.
    Thanks

  • Can't see 7.x Variable in 3.5 Query Designer

    Hi, I created a BEx Variable on one of my characteristics in the 7.x Query Designer and cannot see this same variable in the 3.5 Query Designer.
    Does anyone know if this is a known limitation?
    Thanks!

    Variables are not version specific. Variables created in any version are visible in both 3.5 and 7.x query designers. In 7.x query designer when you create a variable it allows you to select the InfoObject the variable should be associated with. For example if you have an InfoObject that has a reference InfoObject, then a variable created on this InfoObject is not visible on the reference InfoObject. I think variables created on navigational attributes also show different behavior, unless you select the base Infoobject as the reference Infoobject for the variable. With 3.x the InfoObject to which variable is attached behaves differently.
    If you try to create a new variable with the same technical name as the one you created in 7x, you will get the message that the variable already exists. Check the reference infoobject for the variable you created in 7.0 and that may help you. You might want to check out the details of the variable in RSZGLOBV table for any clues.
    Thanks
    Vineet

  • 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

  • How can I apply a timestretch to different null objects and then use them to parent layers?

    I am using several hundred stills which are held on screen for different lengths of time. Is there a way to create null objects with various timestretch values and then use them to parent my stills?
    I'm trying to find an equivalent to the 'paste attributes' function in Final Cut Pro.
    Thanks in advance
    A

    If you have movement on the stills you can set up expressions based on in and out points. That's what I do. I then drop all my stills in order into a comp then set the out point for all stills for the longest duration. I then set group colors for layers that I want to make different lengths, do a group select and then adjust the out points for those layers. When I'm done I sequence the layers using the keyframe assistant.
    The other way I work is to use an audio track with markers for timing. I have an expression that reads the markers and sets opacity for the layers based on pairs of markers. The motion is also controlled by expressions. That's an even faster way to set up an animated slide show.
    The last way I work is just to set in an out points for all layers, sequence the layers, use expressions to do the motion and then use time remapping on a pre-comp to adjust the timing of the slide show. All methods are quick and easy.
    Here's a fly in bounce and then drop out fxx preset that will give you an idea of how expressions based on in and out point work for slide shows. You just drag the layer to it's resting position, apply the animatiokn preset and the layer flys in, bounces, and then drops out the bottom of the comp. Works in 2D and 3D space.

  • Can't add Characteristic to Selection - BEx 3.5 Query Designer on 7.0

    Hi Gang,
    Strange problem. I am attempting to add a characteric to a selection in a BEx 3.5 Query. We use a BW 7.0 backend.
    However, in Edit Selection, I am unable to drag and drop the characteristic from the left pane to the right one. No error message is displayed, but the mouse arrow changes to the circle and slash "forbidden" icon.
    The characteristic is NOT already in the selection.
    Without an error, it hard to research the problem.
    Thanks for your help!
    John Hawk

    Hi,
      Whether the Query is opened in change mode and also check whether you are trying to use any display attribute
    Regards,
    Raghavendra.

  • What exactly does itunes mean when it says "apply sort field"

    In iTunes when I select a track [or several tracks] and then Right click i see an option at the bottom of the resulting menu that offers to "apply sort field", when I select this option a sub menu comes up offering several fields for me to choose from, the options are, All matching fields, Same Album, Same Artist, Same Album Artist, Same Composer, Same Show. If I choose one of these options iTunes issues a warning that it's about to alter some of the files in my library. Can anyone explain exactly what is about to happen and how this is different from simply clicking any of the column headers in iTunes so it will sort the tracks on the screen?

    The sort fields are used to control the order in which items are listed within their colums rather than which column the display is currently sorting on. iTunes automatically fills some of these in so an album or artist that begins with a, an or the is normally sorted as if the article wasn't there, e.g. so *The Beatles* get sorted under B and not T. In other cases you might decide that you want, for example *David Bowie* sorted as *Bowie, David*. If you set the Sort Artist, Sort Album Artist and Sort Composer (assuming this is one of his tracks) to *Bowie, David* on just one track, then right-click and chose *Apply sort file > All matching fields*, then iTunes will look at each track that has *David Bowie* in the Artist field and put *Bowie, David* in the Sort Artist field, also for each track that has *David Bowie* in the Album Artist field it will put *Bowie, David* in the Sort Album Artist field, and for each track that has *David Bowie* in the Composer field it will put *Bowie, David* in the Sort Composer field.
    tt2

  • Can we use same number range for different  fields

    can we use same number range for different  fields. how can we see the number range defined for a particular field

    Hai,
    Yes you can have same number range for different fields  by using the same domain to the data elements that are user to your two fields.
    To see the range:
    Go to SE11,Type table Name open it-->double click on the DataElement adjasent to the field name ,You will get Domian ,Double click on Domain You will get Domain.There See Value range option .Value range cam also be defined by Value Table which will also at the Doamin level.
    <b>Reward points if it helps you.</b>
    Regds,
    Rama.Pammi

  • Efficient datastructure to sort on different fields

    Hi,
    I have to write one program where there are different fields like item number,cost,sales qty,sales price,gross margin etc.
    I need to rank the items depending upon its sold quantity ,sold price & gross margin.
    Moreover there will be power ranking which depends upon average of other 3 rankings.
    Which datasture will be suitable for this ? Should I use one class Item with all these fields & take array of objects of this class & sort the array
    1. first depending upon qty & add unit ranking to class
    2. sort the array depending upon sold price & add sell ranking
    3. sort the array depending upon gross margin & add gross margin ranking .
    4. Then take average of this & accordingly add power ranking.
    Or will it be efficient to write four queries to get data from database sorted by each condition respectively & add the whole data to hashtable.
    Please help me in this. I am bit concerned because all my reports are of this kind. For all reports I am using hashtable with one key & corrosponding vector? Is it efficient or should I use class & keep objects of this class in hashtable?
    Regards,
    Veena

    Hi All,
    Thanks a lot for your response. I am writing a class & keeping objects of these in an array, sorting it four times & accordingly adding ranking to the class. Objects can be more than 1000 but still instead of hitting database 4 times to get data ordered by 4 criterias I am finding it efficient to sort the arrays. Do you agree with me?
    I can not do it in the database using stored procedure because user can choose items of any vendorsat a time e.g. he can choose 2 vendors' items &nedd to see ranking only among these 2 vendors.
    Thanks,
    Veena
    Thanks a lot.

  • Sort an object by different fields

    Hello!
    Sorry for the (maybe) bad englisch but I'm a German.
    If I have an object fith different fields for example field1, field2, field3.
    To write a method which sorts an array of this objects by a given field?
    I mean something like this
    sort(String field, object[] o) {
    //sort by field
    instead of this
    sortbyfield1(object o){
    //sort by "field1"
    sortbyfield2(object[] o){
    //sort by "field2"
    hope you understood
    thanks
    Stefan

    When faced with this problem I usually use a Comparator helper class. Depending on whether the Comparator can be re-used I'll create a separate class or if not an inner or anonymous inner class. For example:
    import java.util.Comparator;
    import java.util.Arrays;
    import java.util.List;
    import java.util.Collections;
    public class Main {
      // Compares Fields.f1 ascending
      public Comparator c1 = new Comparator() {
        public int compare(Object o1,
                           Object o2) {
          return ((Main.Fields)o1).f1.compareTo(((Main.Fields)o2).f1);
      public void sortem() {
        // Create our array of objects
        Object[] array = new Object[] {
          new Fields(new Integer(1),3,"3"),
          new Fields(new Integer(2),2,"1"),
          new Fields(new Integer(3),1,"2")
        // Sort on Field.f1 using reusable comparator
        Arrays.sort(array,c1);
        System.out.println(Arrays.asList(array));
        // Sort on Field.f2 using inner class
        Arrays.sort(array,new C2());
        System.out.println(Arrays.asList(array));
        // Sort on f3 using an anonymous inner class
        Arrays.sort(array, new Comparator(){
          public int compare(Object o1,
                           Object o2) {
            return((Main.Fields)o1).f3.compareTo(((Main.Fields)o2).f3);
        System.out.println(Arrays.asList(array));
      public static void main(String[] args) {
        Main m = new Main();
        m.sortem();
      // Class with many fields of different types
      class Fields {
        public Integer f1;
        public int     f2;
        public String  f3;
        public Fields(Integer f1, int f2, String f3) {
          this.f1 = f1;
          this.f2 = f2;
          this.f3 = f3;
        public String toString() {
          return ""+f1+" "+f2+" "+f3;
      // Inner class comparator on Field.f2
      class C2 implements Comparator {
        public int compare(Object o1,
                           Object o2) {
          int result = 0;
          int i1 = ((Main.Fields)o1).f2;
          int i2 = ((Main.Fields)o2).f2;
          if (i1==i1) result = 0;
          if(i1<i2) result = -1;
          else if (i1>i2) result = 1;
          return result;

  • A filter cannot be applied to the currently selected field. Select a different field

    Hi,
    I am using an InfoPath form to submit the data. In my form I am using one dropdown and one textbox in a repeating table, and the data is fetching from the SharePoint list.
    Scenario: In my SharePoint list there is a column of Company name and other is of Focal Point name. In dropdown contains the company name column.
    I want the functionality that when i select the Company name the associated focal point name should appear in the textbox.
    To achieve this I am using the filter for dropdown but it is showing me error "A filter cannot be applied to the currently selected field. Select a different field."
    Can anyone please tell me how can I do this.
    Thanks in Advanced,

    Hi,
    Please update me any solution for this as I am not able to resolve this.....
    Thanks,

  • How can i apply different color for each cell in jlist component?

    hi guys i need your help and sorry if my english is very bad..guys how can i apply different colors for each cell in jlist component? for example for the first cell i want to apply color blue, for the second cell i want red, etc... i need your answer guys tnx..
    Edited by: ryrene on Mar 21, 2010 12:13 AM

    ryrene wrote:
    hi guys i need your help and sorry if my english is very bad.
    ..guys how can i apply different colors for each cell in jlist component? for example for the first cell i want to apply color blue, for the second cell i want red, etc... i need your answer guys tnx..I'll see your tnx, and raise you dve bmbrs & nplm.

Maybe you are looking for