Sort by "total" in Answers

Based on a star schema model in OBIEE, i create the following report in Answers:
Year > Customer Sector > Customer Ranking > Number of Customers > Profitability
I want to display the report so that, for a given year, sectors are displayed in order of overall profitability. After adding sub-totals on the "Customer Sector" level in the Answers report, and then sorting by profitability just sorts the profitability per customer ranking in ascending/descending order, but it doesnt sort on the total sum of profitability per sector.
Would anyone be able to provide some insight on how to go about this?
best regards
- Magnus

that sort is for individual values for that measure, but not for sub-totals.
if you want to sort on sub-totals, follow this:
i'm assuming that for that profitability column sub-total is sum of individual values for that segment..
create other column in criteria tab:
change it's fx to: sum(Profitability by Year, Sector)
then, keep first sort order asc/desc on this column
hide this column
apply 2nd sort order asc/desc on normal profitability column..
hope it resolve your issue....

Similar Messages

  • Follow-up question to thread 'Sort by "total" in Answers'

    Seems I was a bit too quick in closing.
    Sorry for opening two threads on this, but I need to get this solved as I'm on a tight deadline here...
    The answer that pretty much solved my issue on sorting columns on sub-totals in Answers was:
    if you want to sort on sub-totals, follow this:
    i'm assuming that for that profitability column sub-total is sum of individual values for that segment..
    create other column in criteria tab:
    change it's fx to: sum(Profitability by Year, Sector)
    then, keep first sort order asc/desc on this column
    hide this column
    apply 2nd sort order asc/desc on normal profitability column..
    hope it resolve your issue.... I just have one more quick question:
    I can now sort according to sub-total, but how can I hide this new column from my table view? Clicking on the red 'x' button totally removes it as a filter.. The "hide" checkbox in the properties of the column simply grays the column out and shows it without any numbers.
    Thanks in advance
    - Magnus

    go to column properties (first option) > Column Format tab
    you find hide check box.. select and save.
    grays out the values in the column, which is correct and the same what we want..
    But, you should look at that in compound layout, not in edit properties of table...
    in compound layout, appears like it's hidden
    or
    achieve everything in pivot then exlude that particular column
    Edited by: Kishore Guggilla on Nov 29, 2010 7:18 PM

  • Group/Sort Summary Totals for Duration % Complete not working

    Hello, I'm new to this forum and have used p3 off and on years ago and had some exposure to p5, my background is more toward Project Controls - Cost management rather than scheduling. Here is my issue/question: I was told by the PM not to baseline the schedule (I know, I should have but I didn't, I did as I was specifically requested), that is a topic for another day, however. I am trying to understand the process of the % completes on my resource loaded schedule which all activities are set to duration percent complete. The schedule has roughly quarter of the activities which have been actualized, but my issue is with the "Summary Totals" of the duration % complete when I select that option in the Group/Sorting. All of the activities in a group for example will show 0% complete but the Summary Total of those activities will show greater than 0% or some of the activities duration % completes show a value greater than 0% but the Summary Total of those activities show 0%. What is causing this and why are they not consistent? Any help is greatly appreciated!
    Shannon

    I'm currently showing the duration % complete with a renamed label. The total is not rolling up to the summary. I've also discovered that the unit % complete is not calculating correctly too I believe. For example: I have 3708 budgeted hours and have expended 656 hours and the Unit % Complete is showing 19.08% when I would have thought that the % would have been calculated based on Actual Units (656) / Budgeted Units (3708) totaling 17.69% not 19.08% which it is showing. I cannot find in the reference manual how the percent completes are calculated for units nor in the help section of the software itself either. An explenation would be greatly appreciated!
    Shannon

  • How to sort column totals in pivot view

    Hello guys
    I have a report in pivot view where I have put call type on the column section. So the report looks like below with SUM applied at the column section:
                                       Call Type1         Call Type2       Call Type3               TOTAL
    ID                                        SALES TOTAL
    A                                  100                  200                300                       500
    B                                  200                  200                400                       800
    C
    D
    EMy question, how do I sort the data in 'TOTAL' field? The challenge it seems is that since 'TOTAL' isn't a table column, but just a display of pivot Sum, it can't be sorted H-L or L-H..
    But I'd like to have some advice from you guys before I make my conclusion
    Thanks
    Edited by: user7276913 on Jan 11, 2010 10:05 AM

    You can't have the sorting on the total in Pivot table.
    On a workaround,
    you can create a column in the criteria which calculate the sum
    SUM(sales_total by ID)Assign sorting order on this column
    You can exclude this column in the pivot table
    Regards,
    Raghu

  • Sorting on Totals in a Pivot Table

    I am using 10g and I am trying to do a secondary sort on a total column. The columns in my pivot table are region, country, employee headcount by business unit and total headcount. I have the region sorted to get Americas, Asia/Pacific, and EMEA, but i can not get the countries under each region to be sorted by the total headcount.
    thanks in advance for any hints.

    961587 wrote:
    I am using 10g and I am trying to do a secondary sort on a total column. The columns in my pivot table are region, country, employee headcount by business unit and total headcount. I have the region sorted to get Americas, Asia/Pacific, and EMEA, but i can not get the countries under each region to be sorted by the total headcount.
    thanks in advance for any hints.Try this:
    1) Grab another instance of your headcount column in your Criteria.
    2) Click on the fx and enter SUM(table.headcount by table.Region, table.country)
    3) Put this column after the Region column (if you have a duplicate layer in your Rows Section. If Region is in the Sections area of the pivot table, then this column should be farthest left).
    4) Sort this column and hide it.

  • RE: Sub Total in Answers

    Hi,
    I have a requirement to build a report like this:
    Customer ID SaleDate DateCompleted SupplierName
    C009 9/10/2009 9/12/2009 ABC Supplier
    C003 9/1/2009 9/13/2009 ABC Supplier
    C001 9/11/2009 9/14/2009 ABC Supplier
    Total Sale for ABC Supplier - 3
    C010 7/9/2009 7/12/2009 XYZ Supplier
    C011 8/9/2009 8/14/2009 XYZ Supplier
    Total Sale for XYZ Supplier - 2
    I tried Count(CustomerID by SupplierName) as a calculated column in the table view. It works, but prints the total count on every row.
    I would appreciate any ideas.
    Thanks
    rkingmdu

    use pivot table
    duplicate supplier name column
    sections - supplier name1
    rows - Customer ID SaleDate DateCompleted ...select total after by clicking E sign. then format totals label to :Total Sale for Supplier: (no specific name here though)
    measures - supplier name2...aggregation - count

  • Why does the new itunes sorting feature totally ****? I want the old style back!!!

    Everytime I Search in the search box, my computer locks up. I have a well function computer that has all sorts of upgrade to increase speed, but for some reason, seaching locks up in iTunes! additioanlly, I can't ever find the songs I need. I want to type the song, artist, album, hit enter and have it appear. What can be done to change it back.
    <Edited by Host>
    <Subject Edited by Host>

    Wow, thanks! Although, Apple should be smart enough to turn this feature off as the default setting. I'm sure I am one of MANY people who are equally frustrated by this feature.
    THANKS FOR YOU HELP!!

  • Sorting Totals After on rows in a Pivot table

    Hi,
    I need to Sorting Totals After on rows in a Pivot table .
    Can anyone help?
    Thanks

    Try this:
    1) Duplicate your measure column in Criteria.
    2) In the fx window, enter RANK(your_measure_column).
    3) Place this column in the Rows section of your pivot table. Apply ascending sort order.
    4) Hide the column.
    Your Totals (After) column (the sigma sign in the Columns section of your pivot table) willl be sorted.

  • Bex 7 - Sort Total Column

    Hi
    I have built a query with 2 characteristics drilled vertically and another 1 characteristic drilled horizontally.  I have a single key figure in the report and there is an 'Overall Result' columns at the far right of the report.  Great.
    The report is sorting by the first column but I want to be able to sort everything by the total column at the far right of the report.
    I've tried opening the properties on my key figure in Analyzer but the sorting tab is greyed out.
    Can anyone help with this?
    Thanks

    Just incase anyone finds this and has the same problem, I resolved the issue by first removing the drill-across value, sorted the key figure (right click) and then added back the drill-across value.
    With the drill-across figure, I did not have access to the sort menuu

  • Sort on group total ( Sum  of group)

    I need to sort output either on the details and when the details are suppressed on the total of a group
    If I suppress details and manually change sorting using
    the designer and "Group Sort Expert", " For this group sort All based on Sum of table.column" gives me exactly what I need.
    However, I need to switch this "Sort on Total" on and off programatically.
    Tried to change or add a TopBottomNSortField programtically using RAS - with no success yet.
    Am I using the correct approach at all ?
    Using CR 2008 ( 12.3.0.601 ) on Windows, fat client
    Thanks
    Oskar
    Edited by: Oskar Atkinson on Apr 15, 2011 1:05 AM

    I wonder if you should be looking at the Group itself (GroupNameFieldClass.Group property in the documentation).  It has a SpecifiedGroupOptions property that you can specify the sorting criteria.  Maybe try setting this in the designer and see if you can retrieve the sorting through your application and then try to change it if you can.

  • Crosstab: Sort Descending by Row Total

    Good Morning,
    I've created a simple Crosstab that documents qty per CPT code for each of 3 reporting periods.  Currently, the crosstab sorts records by CPT code which is my only row field.  My column field is formula based on discharge date (3 separate reporting periods.  The data is Sum of Quantity field. 
    While the report is functional, I need to go one step further.  The user would like the report sorted on total quantity in descending order.  That is, the CPT with the highest grand total quantity is to be shown at the top of the report. 
    Can anyone suggest the best approach to solving this challenge?
    Thanks for your help!!

    Wow, That was quick and easy.
    Thanks for the help...I probably should have noticed that in the first place.

  • JTable Sorting and Sub Total

    Hi,
    I have written a java applet to display a JTable and also added the Sorting method. My problem is if i try to sort the Total column is also getting sorted. Any help will be much appreciated.
    Thanks
    M.Chockalingam

    Hi,
    I have written a java applet to display a JTable and also added the Sorting method. My problem is if i try to sort the Total column is also getting sorted. Any help will be much appreciated.
    Thanks
    M.Chockalingam

  • Sort in OBIEE Answers - Desc Nulls Last

    I want to sort Desc on a Answers column, but want NULLS last. Where do I set it?
    For instance I can write SQL
    select * from T1 order by c2 Nulls first;
    NULLS last is default behavior in Oracle SQL
    However, via OBIEE Answers, I see when I use DESC Nulls are on top, I want them on bottom.
    Where should I set it?

    Hi shyamvaran,
    What is the value of your "NULL_VALUES_SORT_FIRST" parameter in your NQSConfig.INI file? By default, this is set to OFF. Which is probably what your seeing i.e. if NULLs are last, and you are sorting in descending order, then you would expect to see NULLs first.
    If you want NULLs to show up last when sorting in descending order, then set the above parameter to ON and bounce your services. That should take care of you.
    Otherwise, you can do a work around. Create a hidden column in your report. Set it's formula to IFNULL(C2,'aaaaaaaaaaa') . This way it'll be alphabetically first i.e. last in descending order. Set this column to sort descending and then set it to hidden. It should sort your report in the desired order and it should be hidden from view.
    Good luck and if you found this post useful, please award points!
    Best regards,
    -Joe

  • I Sorted but I am trying to get the correct Month to print

    {noformat}I am creating a program that requires me to get the highest number and lowest number in a month.I have sorted the Array into a 1 dimesional Array of [12]. Here is my issue How do I get the Highest and lowes number reported while How can I get the correct Month to print? I keep getting Jan and Dec obviously since they are the first and last month.
    I am not sure how to do a sort that will get me the proper month.
    I am creating a program that requires me to chose the highest number and lowest number of the 12 months calculated. I created a seperate sorting array. Currently these number are in the indexed memory location. This Array of numbers is not Initialized! I am just showing what is currently in memory.
    double total [12]={114,93.10,89.30,92.90,98.40,111.00,102.40,105.40,81.40,82.60,80.90,113.40} .
    //intialized
    String[] months={"January","February", "May","June","July","August","September","October","November",
    "December"};
    Here is my issue How do I get the Highest and lowest number printed that also corresponds with the correct month? I have a String of months. I just dont understand how I can do this. My highest numner is 114 which is January and my Lowest 80.89 is November. Is there another part of the swapping I am missing?
    Here is my code. Thank you for your help. I am having issues getting proper code formatting.
    import java.util.Scanner;
    import java.io.*;
    import java.util.*;
    import java.util.Arrays;
    public class MonthRain
        public static void main(String[] args) throws IOException
                    String[] months={"January","February", "March","April","May","June","July","August","September","October","November",
                    "December"};
                    final double [] [] rain = {
                    { 10.1,8.1, 6.8, 4.2, 2.1, 1.8, 0.2, 0.3, 1.1, 2.3, 6.1, 10.4,6.6,5.5, 3.8, 2.8, 1.8, 0.2, 0.0, 0.0, 0.0, 1.3, 2.6, 4.2,2.3, 6.1, 7.4,6.6, 5.5, 3.8},
                    { 9.2, 9.8, 4.4, 3.3, 2.2, 0.8, 0.4, 0.0, 0.6, 1.7, 4.3, 5.2,6.6,5.5, 3.8, 2.8, 1.8, 0.2, 0.0, 0.0, 0.0, 1.3, 2.6, 4.2,2.3, 6.1, 7.4,6.6 },
                    { 6.6, 5.5, 3.8, 2.8, 1.8, 0.2, 0.0, 0.0, 0.0, 1.3, 2.6, 4.2,6.6,5.5, 3.8, 2.8, 1.8, 0.2, 0.0, 0.0, 0.0, 1.3, 2.6, 4.2,2.3, 6.1, 7.4,6.6, 5.5, 3.8},
                    { 4.3, 4.3, 4.3, 3.0, 2.0, 1.2, 0.2, 0.2, 0.4, 2.4, 3.5, 6.6,6.6,5.5, 3.8, 2.8, 1.8, 0.2, 0.0, 0.0, 0.0, 1.3, 2.6, 4.2,2.3, 6.1, 7.4,6.6, 5.5, 3.8},
                    { 8.5, 8.2, 1.2, 1.6, 2.4, 0.0, 5.2, 0.9, 0.3, 0.9, 1.4, 7.3,6.6,5.5, 3.8, 2.8, 1.8, 0.2, 0.0, 0.0, 0.0, 1.3, 2.6, 4.2,2.3, 6.1, 7.4,6.6, 5.5, 3.8},
                    { 10.1,8.1, 6.8, 4.2, 2.1, 1.8, 0.2, 0.3, 1.1, 2.3, 6.1, 7.4,6.6,5.5, 3.8, 2.8, 1.8, 0.2, 0.0, 0.0, 0.0, 1.3, 2.6, 4.2,2.3, 6.1, 7.4,6.6, 5.5, 3.8},
                    { 9.2, 9.8, 4.4, 3.3, 2.2, 0.8, 0.4, 0.0, 0.6, 1.7, 4.3, 5.2,6.6,5.5, 3.8, 2.8, 1.8, 0.2, 0.0, 0.0, 0.0, 1.3, 2.6, 4.2,2.3, 6.1, 7.4,6.6, 5.5, 3.8},
                    { 9.2, 9.8, 7.4, 3.3, 2.2, 0.8, 0.4, 0.0, 0.6, 1.7, 4.3, 5.2,6.6,5.5, 3.8, 2.8, 1.8, 0.2, 0.0, 0.0, 0.0, 1.3, 2.6, 4.2,2.3, 6.1, 7.4,6.6, 5.5, 3.8},
                    { 6.6, 2.5, 3.8, 2.8, 1.8, 0.2, 0.0, 0.0, 0.1, 1.3, 2.6, 4.2,3.6,5.5, 3.8, 2.8, 1.8, 0.2, 0.0, 0.0, 0.0, 1.3, 2.6, 4.2,2.3, 4.1, 7.4,6.6, 5.5, 3.8},
                    { 2.6, 5.5, 3.8, 2.8, 1.8, 0.2, 0.0, 0.0, 0.3, 1.3, 2.6, 3.2,6.6,5.5, 1.8, 2.8, 1.8, 0.2, 0.0, 0.0, 0.0, 1.3, 2.6, 4.2,2.3, 6.1, 7.4,6.6, 5.5, 3.8},
                    { 4.3, 1.3, 4.3, 3.0, 2.0, 1.2, 0.2, 0.2, 0.4, 2.4, 2.5, 3.6,6.6,2.5, 1.8, 2.8, 1.8, 0.2, 0.0, 0.0, 0.0, 1.3, 2.6, 4.2,2.3, 6.1, 7.4,6.6, 5.5, 3.8},
                    { 8.5, 8.2, 1.2, 1.6, 2.4, 7.0, 5.2, 8.9, 0.3, 0.9, 1.4, 7.3,6.6,5.5, 3.8, 2.8, 1.8, 0.2, 0.0, 0.0, 0.0, 1.3, 2.6, 4.2,2.3, 6.1, 7.4,6.6, 5.5, 3.8}};
                   double [] total=new double [12];
                   double total_rain=0;
                   double average=0;
                   int col=0;
                   int row=0;
                   int i;
                                  for( row=0;row<rain.length;row++){
                                       total_rain=0;
                                       for( col=0;col<rain[row].length;col++){
                                          total_rain+=rain[row][col];
                                               average=total_rain/(col+1);
                                               total[row]=total_rain;
                                       System.out.printf("%9s Total Rain= %4.2f\n ",months[row],total[row]);
                                       System.out.printf("%9s Montly Average= %4.2f\n ",months[row],average);
                                       System.out.printf("\n");
                                               for(i=0;i<total.length;i++){
                                                 System.out.printf("Total Rain=%.2f\n",total);
                                                 double minValue;
                                                                          int sort,index,minIndex;
                                                                          for(sort=0;sort<total.length-1;sort++)
                                                                               minIndex=sort;
                                                                               minValue=total[sort];
                                                                               for(index=sort+1;index<total.length;index++)
                                                                                    if(total[index]<minValue)
                                                                                         minValue=total[index];
                                                                                         minIndex=index;
                                                                          total[minIndex]=total[sort];
                                                                          total[sort]=minValue;
                                                                     System.out.printf("High Rain=%s and Low Month=%s\n",total[sort],total[0]);
                                                                     System.out.printf("\n");
    Edited by: happyfootsie on Dec 6, 2009 1:12 AM
    tried to fix formatting                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    happyfootsie wrote:
    Here is my issue How do I get the Highest and lowes number reported while How can I get the correct Month to print?OK, apart from the fact that you've dumped everything in one place as opposed to breaking up your logic, the main thing I can see is that you have no inherent mapping between the values that you're storing and the months that they apply to.
    That's all fine while you're just pulling in the values (I assume that each block of 12 is listed from January to December), but the second you do a sort, you lose the fact that '114.93', which is probably now in last place (being the highest) actually referred to the month of January.
    First suggestion: break it up into methods (a couple of suggestions would be 'getAverages() and 'sort()', but I'm sure there's more).
    Second suggestion: Have a look at the Java Collections framework (you might want to start here). It has a shed-load of classes for doing exactly what you want.
    Winston

  • IPad2 iOS5 random photo sorting bug?

    After upgrading my iPad2 to iOS5, the photo sorting in albums appears to be totally randomized which makes it pretty much unusable. Is this a bug? Before the upgrade, it used to be sorted by the time the photo was taken and this was at least better than apparent random sorting. Reverting to the previous sort method would be a good fix. Better would be to have a simple way to control the sort order.

    I have lion and all of the latest updates, moved from mobile me to i cloud but my "albulms" on the i pod, i phone and i pad won't stay in the same order that they are in i photo or i tunes. The genius bar at the store went through everything and said that it's an update problem that will have to fix it. I hope they get to work quickly. 2 years ago I was promised by a senior tech that the album sorting problem would be fixed in i photo (about 20% of my albums won't stay sorted by title no matter what I do and about 80% will) and that has never been fixed.
    I pray that they read these forums and realize their problems that need to be fixed because it's impossible to go to a saved item on my iphone or ipad without any order to the sorting.

Maybe you are looking for

  • How to defined which logical database to use in a function module?

    Hey, I am trying to do logical database in a function module. I need to know where do i go to define which logical database to use? Becuase i get syntax error on my Get statement. The logical database i am trying to use is HR PNP . Any useful help wi

  • Nokia lumia 820 video recording crashes

    Hi. I just bought a lumia 820 and tried to videotape. But as soon as i press the camera button the camera crashes at goes straight to start screen. Does anyone has/had the same problem. Please let me know... How can i fix it??

  • Unable to download Oracle Database 10g Release 1 (10.1.0.2)

    Got following message when I tried to download Oracle Database 10g Release 1 (10.1.0.2) Server Error The following error occurred: [code=SERVER_RESPONSE_RESET] The server response could not be read because of an error. Contact your system administrat

  • Can I create a new station from playlist?

    I see that one can create a iTunes radio station from a song, or an artist. but what about a playlist? surely that is super easy to impliment? does the feature exist?

  • Queue in sxmb_moni?

    hi forum... i can see Queue ID...in the sxmb_moni.... during trouble shooting i encounter problem with the queue... can i get detailed information ... what queues are... are there outbound and inbound queues both.... why are queues sometime shows "ST