Sort by result rows

hi all
In my query I got several chars: Organization, Planning Level, Date
And 3 key figures: Planned amount, Actual Amount, Plan/Actual (calculated KF)
My query got results by Organization on Plan/Actual KF (totals are averages).
Now I need to sort up all Organizations by Planning accuracy, in other words I need to sort query results by Plan/Actual KF totals based on Organization Level.
I created Condition TOP 100 % on Plan/Actual KFG with setting "Individual Chars and Char combinations" and assigning Organziation. But it seems it doesn't work.
How can I make this work?

Thnx, Akshay, but I already done like you said and run into some strange behaviuor.
Than I keep it far left without Date in rows it seems ALMOST working. "Almost" because it sorts all organizations well except the last one, which is bigger then first before last, like this:
Org PLevel KFG
111   15      100
112   14         90  
109   14         65
115   12         30
110   13         89
Second, it doesn't work at all than I got Date in rows (doesn't matter Organization is far left or no)...
Edited by: Gediminas Berzanskis on May 11, 2010 1:56 PM

Similar Messages

  • Hierarchy results row problem

    Hi All,
    I have a Hierarchy on infoobject 0MATERIAL. When we execute the report, the results rows are only shown for some nodes but not for others of the same level. The setting "Root/Totals Item Appears Above" is set. Also, the characteristic 0MATERIAL is set in the query to always display results.
    Can you help me in sorting this out?
    Cheers

    Hello,
    Please let me know how did you set the following setting in query :
    "Root/Totals Item Appears Above" 
    Thanks in advance.
    WIth regards,
    Anand

  • Sort view object rows with transient attributes

    Hi ,
    Is it possible to sort the results of a view object based on the populated transient attributes ?
    Best regards
    K

    K,
    Have you had a look at section 27.5 of the ADF Developer's Guide for Forms/4GL Developers ("Performing In-Memory Sorting and Filtering of Row Sets") - I've not tried it with transient attributes, but it does describe how to do in-memory sorting, as opposed to the normal way of sorting which is to send an ORDER BY to the database.
    Hope this helps,
    John

  • Parsing XML and pulling out results rows only

    All,
    I need a bit of direction here, hopefully someone can help.
    Here is the situation..
    I have a Web Template that has the XML dataprovider only. Meaning, when I execute it, I get a blank screen because I am not using any other item. This is expected.
    The query works as designed and the XML data in the source of the web page is correct.
    Now, I want to be able to read (loop thru the XML data) and display the data in an HTML table for display to the end user. (Actually, I would like to only keep the "REsults Rows" from the XML data)
    Does anyone have any javascript/XSL/etc that takes the data from a web template, via the XML dataprovider function, and is able to process the data (XML data) and display as an HTML table on the same page?
    I am having a hard time finding any information on reading an XML dataset from the WAD and displaying it with any sort of success.
    I found lots of weblogs and threads about some similiar functionality, but it wasn't exactly what I was looking for.
    Here are some of the links I found..
    Re: XML Data Provider - Information
    I also found other threads from here, but none of them was exactly what I was looking for...(They were along the same lines as the first link!)
    I hope someone can help me out. Due points and my ever gratitude to whomever can help me on this one!
    Cheers!
    /smw

    1. Learn basic web service interfacing. The type of data is irrelevant.
    2. Learn how to parse XML.
    3. Learn how jdbc works.
    4. Learn how the protocol of your actual hosting company works.
    5. Put the above steps together to create your app.
    Steps 1, 2 and 3 are independent from each other.

  • Key Figure Summation in Result Row with Cumulation Ticked

    Hi,
    I have a Bex question regarding the summation rows. 
    I need a Year To Date amount and a Period To Date amount in the report.  However, there is no Year To Date key figure available in the cube.  So in order to calculate YTD, I'm using the PTD key figure and have Cumulated box ticked mark in Bex. 
    All looks fine across columns per Vendor.  But the results row for the Cumulative Balance is always equal to the results row for Period Balances.  I believe this is because the same key figure is used, and it is only reading the amounts in the cube - not the ones calculated on the fly. 
    Does anyone know how to correct the results row for a cumulated key figure? 
    Regards,
    Rhonnie

    You have to create two restricted KF; one is PTD restricted to period; the second is PTD restricted in a period range from 01.yyyy to current period.
    Hope it helps.
    Regards

  • How to display Average, not Sum, in the "Overall Result" row of a report?

    Every report I look at or execute that has an Overall Result row always shows a total(sum) of all the cells in the column.  I recently came across one that shows the average of all the cells in the column and after looking at the query in BEx Query Designer 7.0 and BEx Analyzer 7.0 I cannot seem to find out where to set this.  All of the Key Figures are listed as "Nothing Defined" in the Calculations tab which is exactly what they should be, but where can I set that yellow-highlighted Overall Result row to calculate an average, not a sum?
    Example can be found in this picture:
    http://img87.imageshack.us/img87/6757/pic1yp.jpg
    Thanks for the help!

    My issue was that I was setting my KF's to 'Calculate Result As: Average' within the Query View that I was editing but the change was not showing on my screen when I have that View opened within the Analyzer.  Infact, it still is showing totals.  But when I execute my Web Template that references this Query View, the graph does display the result row using Averages.  Seems to just be a visibility bug, but it is now working.
    Thanks for the reminder about that property KP,
    Scott

  • How to change default for Suppress Results Rows

    Hi,
    Does any one know a way to change the default value for the "Suppress Results Rows" from "Never" to "Always" under characteristic properties in a BEX query?
    Every time we build a new query we have to go to each characteristic and change most of them to "Always". Want this to be a system wide change that would affect all new queries or existing queries that are being modified by adding new characteristics.
    Thanks,
    Mike

    Hi Mike,
    This property is controlled by domain RRXNOSUMS. You can change the default value to point from "Blank" to "U", I suppose. Haven't tried this though and I am not sure if it is okay to play around with the SAP settings. But if it works for you, do post back.
    Hope this helps...

  • Query designer - supress result rows

    Dear Friends,
    I do have created a query using query designer. I dont want result rows in my reports both in web template and analyzer. Could anyone help me on defining the same globally?
    Regards
    Oops

    Hi,
    You need to select characteristics against which results are displayed for key figures.
    In all charcteristcics properites you may find that.
    I hope it will help.
    Thanks,
    S

  • Overall Result Row is not the Sum of Individual Values!

    I am frustrated with a weird problem.  I have an expense report in which Expense1 is shown a value of 8,126.  If I drilldown by company code, the sum of the company codes is 8,235, but the "Overall Result" row is showing 8,126. 
    I tried drilling down by GL accounts, cost centers, profit centers, material and even currency.  For all of these drilldowns the "Overall Result" row is 8,126 but the individual values sum out to be 8,235.
    First I thought it could be "Zero Suppression" that is hiding some values from the display.  But "Zero Suppression" was not active at all.  I have checked the LISTCUBE and saw that the Expense1 should be 8,235 and not 8,126.  The key figure properties "Calculate Result As" and "Calculate Single Values As" are set to "Nothing Defined" and "Use Default Direction".  But still for some strange reason, the "Overall Result" row is different than the sum of individual rows.  It's driving me crazy as I have ran out of ideas to figure out what's happening.  Could someone help me with this?  I would appreciate any input with points!

    Hi,
    Remove the 'Suppress Zero rows/columns' from the query definition and then check the values.
    Column A might have value, but for the same row column B might have zero, hence the row was not shown in the result set, but the overall result will include all such values as well, even thought it was not shown in the result set.
    HTH,
    regards,
    Nataraj.

  • Custom Search portlet : how to sort the result in sequence (Portal 10.1.4)

    With a Custom Search portlet how to Sort the Result By Sequence. i.e. by respecting arrangements of the items in the page of contents?
    Actually the Results Options "Order By" are : Create Date, Author, Creator, Date Updated, Display Name, Last Update by, Publish Date, Score.
    Is there an action to add the "Sequence" Order By result Option?
    Great thanks for your kind help.
    Best regards

    No, I agree that it is functionality that should be added to the product, but it
    is not a bug because it was not written to do this.
    It is a short coming of the product.
    Cheers,
    Ersan

  • How to hide the all rows except the result row in a report?

    Hi Experts,
    We have a report in which the user is interested to see only the result rows and I need to HIDE the characteristics in the rows. I was successfull in doing the same for Key figures in columns using "Calculate single value as suppress result". But I am not finding a way out to hide the characteristics in the rows.
    If I move the characteristics in rows to Free characteristics, the result row is not getting dispalyed. Also, the characteristics are  used dynamically by the formulae in columns and hence i cant remove these characteristics from the query. . The user wants the query to contain only one characteristic in the row and the result row for the key figures in columns. The report currently displays Invoice level data for each customer and this needs to be eliminated and it should display the summarised  data for every customer. Please suggest how this can be accomplished
    Regards,
    Kavitha

    Moving the char to free char will show the equivalent of result.
    Your issue likely is that this breaks the calculations since you do want the calculations done at detail level.
    To achieve this, move your char to free char (say it is 0CUSTOMER).
    For the CKF/Formula, go to aggregation tab, set the exception aggregation as Total (or whatever it was in standard behavior) and specify reference characteristic (in this case 0CUSTOMER), also check the 'Before aggregation' if you have that checkbox there.
    This will ensure the calculation is done at detail level even though the char is not included in the rows.
    If you have multiple chars to be moved to free char but included in detailed calculation, you will need to build cascading CKFs (CKF1 with ref char1, CKF2 eq to CKF1 with exception aggr on ref char2...and so on).
    Added:
    I understand you do want 0CUSTOMER in there, but something else (let us say 0DOCNO) removed. Use 0DOCNO in place of 0CUSTOMER in the case described above.
    Edited by: Ajay Das on Aug 5, 2009 8:57 AM

  • Position of Result Row in Query

    Hi Experts,
    I am using Hierarchy in Infoobject, as a result, the query result rows stay in front of characteristic after report was generated:
    refer to this picture:
    [url]http://imageshack.us/photo/my-images/155/resultrow.png/[url]
    is there anyway to move the result row to behind like wat normal queries does?
    Thanks.

    Hi,
    Please check the links:-
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c047853e-15bf-2d10-808a-b81acc227a83
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/00d00c2b-5a42-2e10-6288-b9ad2e863761
    Hope it helps.
    Regards,
    Prakash

  • Conditions for results row in query

    Hi,
    I've query with conditions. Let us say without conditions query result has 10 records. But After applying conditions result has 4 records.
    When you check the result row the subtotals and totals are coming wrong. Result rows are considering the 10 records.
    How can I get the result row has to consider only those 4 records after conditions.

    Hi,
    I have the same problem. And I didn't find any solution.
    kind regards
    Tobias

  • Wrong value in Result Row in a query which includes 1:N relationship SO/Inv

    Dear all,
    I have an InfoSet which includes sales order DSO, PO DSO and Invoice DSO. The purpose is to design a report to show 3rd party order flow.
    Now I met an issue if one sales item contains multiple billing doc. Below is an example:
    Sales doc: S001   order Qty is 600, there are two invoices for this order B001 invoice 200 and B002 invoice 400. Now in report we see below:
    Sales Doc. --   Invoice no.   ---  Order Qty  --   Invoice Qty
      S001 ---B001         -
           600        -
             200
      S002 ---B002         ---        600         -
            400
    Result Row     -
                                     1200      ---            600
    We can see in Result Row totsl order qty is 1200 which is wrong.
    I am wondering if anybody have such experience and the method soving this problem ? Many thanks in advance !

    Hi,
    Normal aggregation calculates the result row as a summation.  However, you can change this default behaviour by using Exception aggregation at "Order Qty" key figure.
    You can find a detailed article with examples about Exception aggregation at:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f0b8ed5b-1025-2d10-b193-839cfdf7362a
    I hope this helps you.
    Regards,
    Maximiliano

  • Display only the result rows only by using condition or any other way

    Hello Everybody,
    I've a web report where I want to diplay ony the result rows and don't want to display the detail rows at all. I could hide the detail rows but these rows still appear without any value in the key figure fields.
    I tried to revove the characteristic field from the drilldown but it doesn't show the report correctly. Then I tried to write a condition to filter the detail rows but this condition doesn't apply to the result rows so this effort also didn't work for me.
    Is there anyway we can display the report with only the result rows ? I've already tried to find out a solution on SDN but couldn't get the solution eventhough I found many posts on this kind of requirement.
    Any help would be greatly appreciated.
    Thanks
    Alok

    Please explain when you say
    "I tried to remove the characteristic field from the drill down but it doesn't show the report correctly"
    What is problem there? What result do you get. If possible please provide  details of columns layout and few numbers

Maybe you are looking for