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.

Similar Messages

  • BAM : Crosstab : Need to get percentage of row total for each cell

    Hi,
    I am new to BAM. I have a requirement for which I am using crosstab. Basically, I need to show number instances per human task per user. Human Task is the row header, user is the column header, and I am using count(instance id) to fetch the count of instances. I am able to show the sum of values for each row and column, but I also need to show the percentage for each cell(based on row total).
    I do not know if it is possible to fetch the total for further calculations. I believe the calculated field will be processed for each cell, and hence there will be no sum available.
    Also, crosstab does not have a percent of total aggregate function.
    Kindly advise.
    Regards,
    Himanshu

    Hi,
    For constructing summary, COLLECT is very useful.
    1. Create one new internal table STAB having two fields.
       a) licensetype
       b) cnt
    2. Suppose your original internal table is itab.
    Loop at ITAB.
    STAB-licensetype = itab-licensetype.
    STAB-CNT = 1.
    COLLECT STAB.
    EndLoop.
    3. In this way, you will get DISTINCT license types, and their count.
    Hope this helps.
    regards,
    amit m.

  • Repeate Row Totals on every horizontal pages in Crosstab.

    Hi
    I have a crosstab which grows multiple page horizontally.
    I have Row totals that are displayed on the left of summary. I want to display this totals on every horizontal page.
    Can anyone tell mw how to achieve this.
    I am using Crystal Reports XI with SP as data source.

    Hi Narayan
    Right Click on the Cross Tab->Cross-Tab Expert-> Customize Style tab.
    Select the 'Horizontal' option under summarized Fields:
    Select the 'Repeat Row Labels' option under 'Grid Options'
    Click 'OK'
    However it is not possible to dispaly the row totals for the data dispalyed on that particular page.
    Because the data is calulated for the entire cross-tab.
    Hope this helps you.
    Please let us know if you need any further information.
    Regards
    Ashwini Yadav

  • Sorting a cross tab total

    I am a newcomer (user) to Discoverer so would appreciate some help.
    I have written a cross tab report which shows my sales people in the rows and different sales catagories in the columns. I have then put a total on my rows (total for each sales person) which works fine.
    I then want to sort my sales people by their "total sales" ie my calculation.
    Looking in the sort functionality I appear to only be able to sort the sales people by each of the actual columns of data which come back in the report (ie the sales categories - cat 1 or 2 as below)
    E.g
    Cat 1 Cat 2 Total
    Sales Man 1 10 15 25
    Sales Man 2 15 30 45
    I want to sort so that the 45 is viewed and Sales Man 2 is sorted to the top.
    Help?
    Ed

    Hi,
    Sorting a crosstab how you want is always difficult. If you only ever want two categories as column headers then it will be easier to use a table report and decode out the categories and sort by the total.
    Otherwise you will have to use a analytic sum with a partition to calculate the total for each sales in a calculation and then include that calculation as a dimension. You will then be able to sort the crosstab using this dimension and if necessary hide the content of the field using formatting.
    Rod West

  • Discoverer Report Row Total

    We are running Oracle BI Discoverer Viewer version 11.1.1.4.0. When we upgraded to this version we lost some functionality. In the previous version the report displayed the number of rows the query returned. Now the row totals display only under certain conditions. For instance, I have a inventory report name INV-REP-120 and it prompts the user for 6 parameters & displays 6 columns of data. One of the parameters is named ‘Keyword' and I’ll use this one in the problem description. When I set the keyword parameter to ‘HINGE’ The bar at the top of the results sheet it displays:
    ‘Rows 1-25 of 81, Columns 1-6 of 9’
    When I change the keyword to ‘TUBE’ the viewer displays:
    ‘Rows 1-25, Columns 1-6 of 9’
    The total rows are not displayed but the number of pages. It appears that if the total number of rows is less than 200 then the row total is displayed. I changed the rows displayed from 25 to 100 and scrolled down to the last page and now the reports displays:
    ‘451 – 458 of 458, Columns 1-6 of 9’
    When I use the key word TEE I get :
    ‘Rows 1-50, Columns 1-6 of 9’
    There are 596 tees, which would be about 12 pages of 50 rows. I noticed that at the top of table there is a field ‘Page 1 of 5.’ It looks like if there are more than 5 pages it does not display the total number of rows.
    There seems to be some interaction between the total number of rows the number of rows per page and perhaps a setup on the back-end that determines whether or not the row total is displayed. How can I configure the viewer at the front-end and/or back-end to consistently display the row total for a report? Is there a Discoverer preference located in the pref.txt in the apps server that controls this?

    Hi,
    You can inform to your SP to edit the table EUL4_documents
    and ask him to modify the name of the report that is stored in the column DOC_NAME .There is absolutely no necessary to open the work book that is stored in the database and change the work book name
    Regards
    Swamy!

  • Row total percentage of Column

    Have a request to display both the row and column totals in a pivot table, no problem. But what about also including a the percentage that each row total represents of the column total:
    Example:
    orders
    Item jan feb march total % of total
    a 1 3 5 9 40%
    b 2 2 3 7 33%
    c 3 1 2 6 27%
    total 6 6 10 22 100%
    Thanks.....

    In the pivot table view click on the measures and "Duplicate" the measures column and display the total as percentage of the row or column based on your requirement. That way you will be able to display both the toals and percentages together
    hope it helps
    Thanks
    Prash

  • Row Total issue in table view

    Hi,
    I am using 11.1.1.5. In table view we have 4 dim and 5 facts. I need row total only for 3 facts. Whenever I set total using sigma(E) I am getting total for all 5 facts. How to calculate row total only for 3 facts only?.
    Thanks.

    977610 wrote:
    Hi,
    I am using 11.1.1.5. In table view we have 4 dim and 5 facts. I need row total only for 3 facts. Whenever I set total using sigma(E) I am getting total for all 5 facts. How to calculate row total only for 3 facts only?.
    Thanks.In Criteria mode, click on the fx button and change the aggregation rule from "Default" to "None."

  • BP Aging Anamolies (Period amounts and Row total anamoly)

    Hi All,
    Is there a known bug with the Customer Receivables Ageing Report and Suppliers Liabilities Ageing Report in SAP B1 v2005A PL 18?
    When trying to produce Backdated BP Aging report;
    1. The Total amount for several BP accounts reflected on the ageing report match the respective BP account balance as at the selected date, but the ageing amounts across the page (ageing intervals) do NOT correctly cross-add to the row Total
    2 The Grand total of the Total column of the ageing report does NOT agree to the balance of the corresponding GL control account as at the "Posting date: To"
    3.  The rogue BP accounts involved all seem to have had some "reversing" transactions which give rise to the variance, such as: JE debits which have been included in the calculation of the account balance/row Total (often = Nil) of  the BP report, but do NOT appear to have been included in the total of the interval in which the JEs occurred.
    Incoming Payments that have been cancelled, such that the debit transaction (the reversal) has been included in the calculation of the account/row Total (often = Nil) of the BP report, but does NOT appear to have been included in the total of the interval in which the cancellation occurred.
    Report Selection Criteria:
    Customer/Supplier group: All
    Interval: Periods
    Ageing date:
    From: blank
    To: prior end-of-period date
    Posting date:
    From: blank
    To: prior end-of-period date
    Due date
    From: blank
    To: blank
    Document date:
    From: blank
    To: blank
    By Journal postings:
    Display Customers/Suppliers  with Zero Balance = Yes
    Display Reconciled Transactions = No
    Consider Reconciliation Data = Yes
    Thanks in advance
    Regards
    Devinder

    Hi Gordon,
    Thannks a lot for pointing to the thread; however this thread does not answer my query. I am sure there must be SAP Note that explains my issue however I am waiting for someone to point me in the right direction.
    Thanks once again
    Regards
    Devinder

  • SSRS - % percentage ROW TOTALS don't calculate correctly in a Table Matrix

    SSRS - Report Builder 3.0
    I have created a report with a MATRIX table with a TOTAL ROW and a TOTAL COLUMN and the total column is calculating correctly but the ROW totals is not calculating correctly
    The screen shot below is of the Matrix table in the Report Builder 3.0 "Designer view" 
    When I run the report the column totals the percentage is averaged correctly, but the ROW TOTALS do not, some are close but i need them to be accurate.
    If you take the same data into excel the total percentage calculates correctly - if you compare the excel with the SSRS some rows do calculate close, but not accurate. the total column calculates correctly
    FY13-Q4
    FY14-Q1
    FY14-Q2
    FY14-Q3
    Total
    100%
    89%
    65%
    68%
    80%
    50%
    72%
    43%
    45%
    52%
    100%
    91%
    63%
    69%
    81%
    10%
    17%
    29%
    31%
    22%
    100%
    96%
    67%
    76%
    85%
    70%
    70%
    53%
    64%
    64%
    90%
    93%
    90%
    82%
    89%
    74%
    75%
    59%
    62%
    68%
    I Need the totals rows and columns to average the percentage correctly in the SSRS report.
    Please help...
    -Isaack

    Hi Katherine Xiong,
    The formula (SSRS Expression) i am using is the following
    =Sum(IIf(Fields!AnswerText.Value = "Yes", 1, 0)) / (Sum(IIf(Fields!AnswerText.Value = "No", 1, 0)) + Sum(IIf(Fields!AnswerText.Value = "Yes", 1, 0)) + Sum(IIf(Fields!AnswerText.Value
    = "n/a", 0, 0)))
    Basically if field value = "YES" it counts, if the answer = "No" if the value is = "n/a" it should not count in the total score percentage
    I get the correct PERCENTAGE on the 1st aggregate, but when the table has multiple aggregates the percentage is never accurate. 
    The Table below is using the above formula, the 1st aggregate is correct but if you get the average percentage from the 1st column it should be 86.2% is the accurate number, sometimes close but i want to report accurate numbers and not doubt SSRS reports
    compared to excel reports. 
    TOTAL ROW (highlighted on the screenshot in Yellow) is incorrect aggregate averages %, the correct average are the following
    [86.2%]      [71.5%]      [75.5%]     [87.87%]   [90.2%]     [69.9%]     [92.8%]
    -Isaack

  • Stored procedure for Total in Header from row totals

    Hi Experts,
    I have read all notes written before regarding that how can we solve that problem if we would like to display on header a rowtotal. But i cannot solve it when i need it dinamically.
    I copy the following query into SBP_SP_Transactionnotification but while im adding the document it doesnt refresh . I have to go back then i can see the row totals in my field.
    IF @object_type = '18'
    BEGIN
    UPDATE OPCH SET U_ONELT =
    (SELECT SUM(U_ONELTR) FROM DBO.PCH1 T0 WHERE T0.DOCENTRY = @list_of_cols_val_tab_del)
    WHERE DOCENTRY = @list_of_cols_val_tab_del
    END
    How shall I modify this query?
    Thanks in advance.
    Eszter

    This is the code you could use
    IF @transaction_type = 'A' AND @object_type = '18'
    BEGIN
    UPDATE OPCH SET U_ONELT =
    (SELECT SUM((T0.QUANTITYT0.PRICE)-(T0.QUANTITYT0.U_ONELTR)) FROM [DBO\].[PCH1\] T0 WHERE T0.DOCENTRY = @list_of_cols_val_tab_del)
    WHERE DOCENTRY = @list_of_cols_val_tab_del
    END
    You can access this Stored Procedure from SQL Server Management Studio......Click on Databases...Select your database...Programmability.....Stored Procedure dbo.SBO_SP_TransactionNotification...Right click....select Modify
    Copy the above code in the body ...You would probably see some thing like ADD YOUR CODE HERE....
    Once you copied this code. Click the Execute button  and you see should get the message
    Command(s) completed successfully.
    Close SQL Server and you should be good to go...
    Suda

  • Showing Zero Unit Price/Row Total

    Hi,
    We currently allow posting rows for item sales with zero unit price. I am having trouble showing the unit price and row total as "$0.00" instead of a blank field with PLD. Both of these fields are system variables (80 and 84), neither field is linked to itself, and neither field has the 'Suppress zeros' box checked. Any possible solution to this? Thank you.

    Hi there,
    You could try using a formula type field and multiplying your system variable field by 1.
    - Say for example your Unit Price field has a Unique ID of F_100.
    - Create a new line Formula field and set its value to Round(F_100*1,2).
    - This will display your zero value unit price as 0.00.
    - Note that I'm only using Round() to display zeros after the decimal place, otherwise the zero value unit price would appear as 0. So change the number of decimals as required.
    - Unfortunately this removes the currency code display from the value so you will need to re-display it if required, you can do this using a database type field and selecting the Price Currency field.
    Do the same for row total. Hope that helps.
    Regards,
    Andrew.

  • To show Local Currency row total in FC documents

    Hi All
    is there any possible to show LC row total on the screen when I enter a FC document in SAP B1?
    Thanks in advance.
    Regards,
    Catea k
    Edited by: Catea k on Aug 31, 2010 6:55 AM

    Hi,
    You could use UDF for header level and assigned query formatted search to the udf so that the value in the udf is automatically entered.
    You could also use SDK code to display LC total of document beside FC total document. The same solution is applicable for row level of document.
    JimM

  • Remove the word "Total" in Row Totals in Pivot Tables

    Hi,
    Is it possible to remove the word "Total" that appears in Row Totals in Pivot Tables?
    Eg. If there are 2 Dimension Columns -- Year and Month .... and if we do row totals on Year
    The total appears as *'2008 Total'* or *'2009 Total'* etc. i.e. Each of the Values is followed by the word 'Total'.
    However, i would like the totals to display only the values '2008' or '2009' without the word 'Total'.
    Is this possible in OBIEE 11.1.1.5.0 ?
    Thanks,
    Ab

    Hi ,
    Goto Total -> Format label and type in @.This will remove the word"Total". I have tested this in 10g, try this and let me know if it works in 11g.
    Rgds,
    Dpka

  • How do I sort only selected rows?

    Hi, in Maverick, the option to sort only selected rows seems to be gone anyone out there who knows how to do this? Cheers Paull

    Hi SG,
    Firstly, I wasn't saying that Wayne's posts were rubbish, I said his comment about V2 not having sorts by rows was rubbish as I proved with my image. I am just really frustrated professional person who has been signing Apples and Numbers praises that has been left feeling really let down.
    Personally, I do not wan't an OSX version Numbers to be the same as the IOS version. My old IOS version was perfectly adequate as was my OSX vesrion. I'm not interested in doing this on my phone or iPad BUT when I am at work on my 27" iMac, I don't want to use a piece of software that is written to be more compatible with a mobile device so I couldnt care if the IOS version has a Reorganize panel.
    I'm saying that they (Apple) shouldn't dress this up as V3 of numbers. They should call it
    NUMBERS LITE COMPATIBLE WITH IOS DEVICES
    Which is really what it is, and then most of us who require a serious spreadsheet, wouldn't have bothered downloading it and wasted hours only to find out that it is not fit for purpose.
    The problem I have is that there will no longer be any improvements to V2 so this is now what we are stuck with with the only alternative being to return to Excel, which I hate with a vengence.
    Also, we are stuck with this version if we want to use sheets we create in OSX in our ipads. Once again, not even close to being acceptable.
    All in all, not what I expect from Apple, or is this just the type of thing we have to expect from them now.
    Spencer

  • Row totals in datagrid

    Hi,
    I have a datagrid with 5 rows and 3 columns and i am able to
    load data into it using http service but i want to calculate totals
    of each row and i have to print them on the labels placed below the
    datagrid for each column
    i want to calculate the row totals and display it on the
    label
    plz find me some solution
    thanks

    I guess one way to do it would be to calculate the total from
    your webservice (I am guessing you're using php to generate an xml
    file) and then pass that to your flex project using the http
    service.
    or you could simply write a script for it within your
    project.

Maybe you are looking for

  • Workspace doesn't fit the screen anymore...

    Hello. Since today (and Mac OS X's update I installed this morning, I guess), my Photoshop CS6 workspace doesn't fit the screen of my 12 inch Cintiq (connected to a 2014 Macbook Air).  No matter what I do, it keeps it wrong. Trying to set the photosh

  • An installer created with LV2011SP1 won't install on a machine with LV2013 installed

    I'm currently working on several FPGA drivers generated with Labview 2011SP1, which include a dll interface and a test program to test functionality of the dll. I used an installation pacakge to install 1) the dll to system32                         

  • How can i save my work pdf files and personal pdf files separately in my ipadmini

    Hi, I would like some help on separating my personal and work pdf files in my ipad. Currently i saved everything in ibook but find it unprofessional when i have to show my clients my work Is there any other way to save my work pdf files separately? t

  • How do I do validation using SDK.

    How do I do validation using SDK. We have created different warehouses for the client business operations. For eg: 1. Inspection Stores 2. Rejection Stores 3. Main Stores In Goods Return & A/P Credit Memo, other than RejectionStores is selected, we w

  • The system could not find any entries that are relevant to costing.

    plz give the solution ,its urgent Message no. CK060 Diagnosis The system could not find any entries that are relevant to costing. System Response The system did not cost the object. Procedure Check whether the following objects should be flagged as r