Total a summed column

Hi everyone,
I have a question regarding a report that I'm working on. I have a column that uses the following formula: (Sum(material_qty))*1.5. I want a grand total at the bottom of the page of this column; however, it doesn't appear. Is it because Discoverer cannot do nested aggregations? I would appreciate any help or suggestions.

Hi,
Maybe you have wrong joins. You can't make a total using master folder values.
If it's no the problem, you can modify pref.txt file if you are using Plus or Windows Registry if you are using Desktop.
Hope this helps.

Similar Messages

  • Summing columns to give a grand total

    Hi,
    I'm sure this is simple using one of the GROUP BY extensions, but I'm having a particularly dumb day
    I have the following SQL
      SELECT EGROUP.EDESC,
             SUM(DECODE(PERS.AGERANGE,'UNDER 16',1,0)) AS "UNDER 16",
             SUM(DECODE(PERS.AGERANGE,'16 - 25',1,0)) AS "16 - 25",
             SUM(DECODE(PERS.AGERANGE,'26 - 35',1,0)) AS "26 - 35",
             SUM(DECODE(PERS.AGERANGE,'36 - 45',1,0)) AS "36 - 45",
             SUM(DECODE(PERS.AGERANGE,'46 - 59',1,0)) AS "46 - 59",
             SUM(DECODE(PERS.AGERANGE,'60 +',1,0)) AS "60 +",
             SUM(DECODE(PERS.AGERANGE,'UNKNOWN',1,0)) AS "UNKNOWN",
             COUNT(PERS.PIN) AS "Total"
        FROM (SELECT 1 ORD, 'WBRI' ECODE, 'White British' EDESC FROM DUAL UNION ALL
              SELECT 2, 'WENG', 'White English' FROM DUAL UNION ALL
              SELECT 3, 'WSCO', 'White Scottish' FROM DUAL UNION ALL
              SELECT 4, 'WWEL', 'White Welsh' FROM DUAL UNION ALL
              SELECT 5, 'WIRI', 'White Irish' FROM DUAL UNION ALL
              SELECT 6, 'WOTH', 'White Other' FROM DUAL
             ) EGROUP,
             (SELECT 1234 PIN, 'WBRI' PCODE, 'UNDER 16' AGERANGE FROM DUAL UNION ALL
              SELECT 1235, 'WENG', '16 - 25' FROM DUAL UNION ALL
              SELECT 1236, 'WENG', '16 - 25' FROM DUAL
             ) PERS
       WHERE EGROUP.ECODE = PERS.PCODE(+)  
    GROUP BY EGROUP.EDESC, EGROUP.ORD
    ORDER BY EGROUP.ORD ASC  which produces
    White British  1 0 0 0 0 0 0 1
    White English  0 2 0 0 0 0 0 2
    White Scottish 0 0 0 0 0 0 0 0
    White Welsh    0 0 0 0 0 0 0 0
    White Irish    0 0 0 0 0 0 0 0
    White Other    0 0 0 0 0 0 0 0what I'd like is for a 'totals row' to also be output
    White British  1 0 0 0 0 0 0 1
    White English  0 2 0 0 0 0 0 2
    White Scottish 0 0 0 0 0 0 0 0
    White Welsh    0 0 0 0 0 0 0 0
    White Irish    0 0 0 0 0 0 0 0
    White Other    0 0 0 0 0 0 0 0
    Total          1 2 0 0 0 0 0 3I really need to read the Data Warehousing manual, to try and understand how CUBE, ROLLUP and grouping sets work.
    Thanks
    Dave

    SQL>   SELECT nvl(EGROUP.EDESC,'Total'),
      2           SUM(DECODE(PERS.AGERANGE,'UNDER 16',1,0)) AS "UNDER 16",
      3           SUM(DECODE(PERS.AGERANGE,'16 - 25',1,0)) AS "16 - 25",
      4           SUM(DECODE(PERS.AGERANGE,'26 - 35',1,0)) AS "26 - 35",
      5           SUM(DECODE(PERS.AGERANGE,'36 - 45',1,0)) AS "36 - 45",
      6           SUM(DECODE(PERS.AGERANGE,'46 - 59',1,0)) AS "46 - 59",
      7           SUM(DECODE(PERS.AGERANGE,'60 +',1,0)) AS "60 +",
      8           SUM(DECODE(PERS.AGERANGE,'UNKNOWN',1,0)) AS "UNKNOWN",
      9           COUNT(PERS.PIN) AS "Total"
    10      FROM (SELECT 1 ORD, 'WBRI' ECODE, 'White British' EDESC FROM DUAL UNION ALL
    11            SELECT 2, 'WENG', 'White English' FROM DUAL UNION ALL
    12            SELECT 3, 'WSCO', 'White Scottish' FROM DUAL UNION ALL
    13            SELECT 4, 'WWEL', 'White Welsh' FROM DUAL UNION ALL
    14            SELECT 5, 'WIRI', 'White Irish' FROM DUAL UNION ALL
    15            SELECT 6, 'WOTH', 'White Other' FROM DUAL
    16           ) EGROUP,
    17           (SELECT 1234 PIN, 'WBRI' PCODE, 'UNDER 16' AGERANGE FROM DUAL UNION ALL
    18            SELECT 1235, 'WENG', '16 - 25' FROM DUAL UNION ALL
    19            SELECT 1236, 'WENG', '16 - 25' FROM DUAL
    20           ) PERS
    21     WHERE EGROUP.ECODE = PERS.PCODE(+)
    22  GROUP BY grouping sets ((EGROUP.EDESC, EGROUP.ORD),())
    23  ORDER BY EGROUP.ORD ASC
    24  /
    NVL(EGROUP.EDE UNDER 16  16 - 25  26 - 35  36 - 45  46 - 59     60 +  UNKNOWN    Total
    White British         1        0        0        0        0        0        0        1
    White English         0        2        0        0        0        0        0        2
    White Scottish        0        0        0        0        0        0        0        0
    White Welsh           0        0        0        0        0        0        0        0
    White Irish           0        0        0        0        0        0        0        0
    White Other           0        0        0        0        0        0        0        0
    Total                 1        2        0        0        0        0        0        3
    7 rijen zijn geselecteerd.Regards,
    Rob.

  • Suppress the column without hiding Total or Sum

    Hi,
    In my worksheet i have created Total for One column, But i want to suppress that column without hiding Total.Please help me ASAP.
    Thank You,
    Vikra,

    It is not clear what you mean by "a range of rows" ... how is that range going to be defined?
    Create a simple table:
    CREATE TABLE t (...
    Insert some sample data into it:
    INSERT INTO t VALUES (...
    Then give us a sample of the output you want.
    But sure to read the FAQ and learn how to use tags for your listing so we can read it.
    Then we can help you.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Get Total of a Column of Advanced Table and use it in Controller in OAF

    I have an advanced table on my custom page. I am calculating total of a column in my footer. I am acheiving this using the standard functionality of advanced table by setting total value property of my column to "TRUE" and displaying the total in the tablefooter components.
    In addition to this I want to retreive the total value from my footer and use it in my Controller for further validations but I am not able to acheive this.
    I tried some code already present in the Community for the same but nothing turned out right for me.
    Can anyone please help me on this.

       Hi there ,
      You can manually add the values of each row of a  column and make use of the value obtained in your controller .
    Here is the logic ,
    1) get the vo instnace attached to that table .
    2) Loop through every single row in the table .
    3) get the value and sum up the value and use it in your controller .
    int fetchRowCount = vo.getFetchRowCount();  
    voRowImpl row = null;  
    int count =0;
    if (fetchRowCount  > 0) { 
    RowSetIterator iter = vo.createRowSetIterator("Iter"); 
    iter.setRangeStart(0);
      iter.setRangeSize(fetchBidderRowCount);
       for (int i = 0; i < fetchBidderRowCount; i++) {
      row = voRowImpl iter.getRowAtRangeIndex(i);
       //use RowImpl getters   10.   
             Number personId = row.getPersonId();
    count =personId+count;         // add each and every value and have in variable
    iter.closeRowSetIterator();
    Regards ,
    Keerthi

  • Analysis report with totals on specific columns

    I have an analysis report that I need to create totals on specific columns. If I turn on "Grand Totals" from the "Edit View: Table" section, all of the numeric columns will display grand totals. This is a nice automatic feature, but I only need totals of specific columns. Not all numeric columns need totals nor do Grand Totals of some columns make any sense.
    For example, to display opportunity details, we will have on the report:
    Opportunity Name, Item number, Item Description, Quantity, Price, Extended Price
    Since the opportunity may have multiple items on it, having a grand total of quantity and unit price makes no sense. All we need is Grand Total of the opportunity extended price.
    Is there a way to selectively turn on/off column totals or is it an all or nothing option?
    Thanks in advance.
    Edited by: nsidev on Sep 1, 2009 10:10 AM

    Actually, i just solved the problem.
    Here is what I did:
    1. I added a column to the "Design Criteria" section (step 1). To keep the units consistant, I made sure that the data element was suitable for the value (I used a currency element). Ensure you note the position of the new column, mine was in position 11.
    2. Under the newly added elements "Column Properties", I set it to HIDDEN and changed the name to "Grand Total"
    3. Under the "Edit Formula", I changed the formula to be: SUM(<numeric column>)
    4. In "Create Layout" (Step 2), I added a narrative view to the bottom of the page.
    5. In the "Edit Narrative View", I set the appropriate formatting and added the following: Total Extended Price: @11
    6. Ensure that "Rows to display" is set to 1.
    Save and run
    All done, works like a charm.

  • How to display total for a column in updateble report

    How can I display total on a report column?
    the query is
    select htmldb_item.checkbox(1,invoice_id) invoice_id,
    htmldb_item.DISPLAY_AND_SAVE(2,invoice_no,15)invoice_no,
    htmldb_item.DISPLAY_AND_SAVE(3,to_char(invoice_date, 'DD-MON-YYYY'),20) invoice_date,
    htmldb_item.DISPLAY_AND_SAVE(4,net_amount,15) NET_AMOUNT,
    htmldb_item.text(5,net_amount,null,10) amount_adj,
    htmldb_item.text(6,net_amount,null,10) actual_amt
    from INVOICE
    where OWNER_TYPE = 'CUSTOMER'
    and OWNER_ID = :P57_CUSTOMER_NAME
    group by invoice_id,invoice_no, invoice_date,net_amount
    In the report column attributes the sum column is checked for the sal field
    When I run the report, I get a Sub-total of 0 and a Report Total of 0. What am I doing wrong?
    thanks

    Sunil,
    Which column is the sal column? I can’t see any numeric columns in your query. If you use htmldb_item calls in your query column, then this makes them strings and you can’t build sums on string columns. If you want to build sums in an updateable report / tabular form, then don’t use the htmldb_item API. Instead use the built-in display types on the report column attributes page. Using the built-in display types is the better options in most cases anyway and they do allow you to calculate sums even if the column is a text field or display and save type field.
    Regards,
    Marc

  • Grand total on some column

    Hi,
    My question is: Can I exclude grand total on some measure column in pivot view?
    For example I have 3 columns.On columns Account1 and Accounts, aggregation is SUM, and on column Max(something), aggregation is MAX.
    I have next situation.
    Account1 Account 2 Max(something)
    100 200 23
    200 250 13
    150 300 42
    450 750 42 - GRAND TOTAL
    But I want grand total only on columns Account1 and Accounts. For column Max(something) I don't want total at all.
    Thank you for your replies.

    Hi,
    Thanks for your reply,
    According to the link Below
    http://gerardnico.com/wiki/dat/obiee/answer_xml,
    We can able to change color for Grand total through XML, but the example is in 10g, there is nothing call saw:totalValues in 11g Currently, may be it is replaced with saw:displayGrandTotal, I tried that option also but it is not working.
    Is there anything which we can do through xml, to achieve the above requirement?
    Thanks
    Anirban

  • Add Total to Stacked Column Chart on the top and another important thing is the data are from SharePoint site

    the same with the following description from another question:
    "How can I display a total on top of each column on a stacked column chart (using
    reporting services 2008)? If I use Data Labels I can display the
    values for each part of the stack on a stacked column, but I want to be display the total.
    For Example: If I have stacked column on chart with a value of 10 for the 1st stack, 20 for the 2nd stack,
    and 20 again for the 3rd stack - I want to display 50 (the SUM total) as the data label on top of the entire column..."
    and a solution for this would create a new column named SUM(category group), this can be done with data source from SQL server, but my data is from SharePoint site list. its query seems can't be changed which means I can't add a SUM column.
    what should I do with this? Can anyone give me a hand?
    thank you very much.

    Hi sophiexu,
    If we want to display a total for each column on the top of a stacked chart, we can use a matrix control to display the column total value to work around this issue.
    The following thread about how to simulate chart legend is for your reference:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/cfb4fa19-b2ba-426a-804b-b5ea83d70d62/ssrs-2008-chart-legend-missing-customitems-property
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Page Total for a Column in JSF HtmlDataTable

    Hi All,
    I need an example to calculate page total for price column in HtmlDataTable.
    Each page displays 10 rows and there are 50 rows hence 5 pages in datatable.How to calculate page total after displaying the rows on page.
    Thanks in advance.

    Just get the desired sublist of the datalist and sum the price? You can get the starting index and the rowcount from the HtmlDataTable by its getFirst() and getRows() methods respectively and use it in List#subList(). Then iterate over the list and add the price value of every item in a loop to the total value. You can display it in the footer of the datatable. You can define a footer with <f:facet name="footer">.

  • Calculating Totals for a column in ALV Grid Display

    Hi All,
      I frustrated with the problem of simple calculating total for a column. I wrote the following code:
      LW_CATALOG-TABNAME   = P_GV_STRUCT.
      LW_CATALOG-FIELDNAME = 'ZSUMMS'.
      LW_CATALOG-DO_SUM    = GC_X.
      APPEND LW_CATALOG TO G_FIELDCAT_TAB.
      CLEAR LW_CATALOG.
    It is not working. Could you please suggest the solution?
    It would be great help to me.
    Advanced Thanks,
    Phani Kumar

    Phani,
    Did u try playing around with any of these layout fields ?
    no_sumchoice(1),       " no choice for summing up
    no_totalline(1),       " no total line
    no_subchoice(1),       " no choice for subtotals
    no_subtotals(1),       " no subtotals possible
    no_unit_splitting  " no sep. tot.lines by inh.units
    totals_before_items,   " diplay totals before the items
    totals_only(1),        " show only totals
    totals_text(60) ,      " text for 1st col. in total line
    subtotals_text(60) ,    " text for 1st col. in subtotals
    b. Addtionally... not a solution.. but u know...
    just try the same code iwth reuse_alv_list_display and see if the total gets displayed properly ?

  • Poor Response Time- Total on a column for n number of rows

    I have a table with column cost on my custom OAF page.
    When I query for configuration it returns me many rows. so I have set the default rows for table = 10 and then I neatly have next button to go to other rows.
    I have enabled totalling on cost column.
    Row for Total appears showing sum for the costs only on that page( for only 10 rows). I click for next from drop down , and I see total for the costs for the second page.
    Ex:
    table has 17 rows and
    page 1 :
    total row at the end saying 1000.00
    page 2 :
    total = 1500.00
    I want to display Total Cost by summing up the costs for say 300 items returned by the query on all the pages , in above case 2500.00.
    I thought of a way to do it ;
    I added a sumVO with query "select sum(...) from table" .
    Added a new region in my page , added a messageStyleText based on the sumVO, and pulled the total cost in.
    It shows me the right result, but my problem is performance.
    It is getting very slow. I am using the same query as for displaying the results in table, but summing on cost column.
    Can I avoid writing the sum query and do it programmatically in OAF ??
    Thanks in advance.

    Even if you use programmatic approach, what do you think program will do?
    Program has to fetch all the rows in the middle tier and sum it up using for loop. No way its going to solve your problem.
    First find out the reason for the slow performance using Trace option. and fix the query.
    If your not able to fix it, try materialized view for the summation query.
    To take sql trace for OAF page refer this link infor http://prasanna-adf.blogspot.com/2009/01/sql-trace.html
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to total a cost column

    How do you add/total an expense column in Numbers?

    Wstar,
    A Numbers Table has Header and Footer cells and Body Cells. It's possible to address a row or column of body cells in its entirety without mentioning the row numbers. So, if your expenses are listed in column C you can write:
    =SUM(C)
    Body cells in column C will be summed and Header/Footer rows will be ignored. This is one of the great features of Numbers and will save you a lot of effort in programming and editing.
    Each table can have up to 5 Header columns and up to 5 Header Rows and 5 Footer Rows.
    Jerry

  • How to create a overall total or sum for structures created?

    Dear all expert,
    I have a BW query as below.
    Rows:
    Structures
    - Product A
    - Product B
    - Product C
    - Product D
    Diameter
    Description
    Columns:
    Storage Location
    Key Figures:
    - Total Quantity
    - Daily Quantity
    How can I obtain the total or sum at the rows for all the structures?
    Thank You.

    Create a formula in the structure as sum of all the elements of the structure. It is not clean and you won't get just a total row below the list of elements of the structure, but that is the best option with structures and characterisitics mixed in the rows.
    Thanks
    Vineet

  • To get a total of the column

    Hi, is possible to get a total of a column that have a date ('HH24:MI:SS') format, in a REPORT?
    Because I try with the option SUM of the attributes of the region but doesn't work.
    Thank!

    I think you have to do this manually. See my post from today talking on the leading total:
    How to display TOTAL before the rows ?
    Denes Kubicek

  • Removing Totals for Break Columns

    Hi All,
    If we add break on two or three columns in report, it gives totals for each group plus a report level total. Is there any way to remove any group or break's total.
    For example, if we have a report on emp table and having groups on deptno and job columns, it would be giving totals like this:
    JOB TOTAL:               3000
    DEPTNO TOTAL:               3000
    report total:               3000
    How can we remove any of the above totals?
    Thanks
    Zahid Khan
    Deptno

    Looks like this is a popular request!
    I have report with a break on Column 1, 2 and 3. I would like to display the Report totla but not the sub totals at each column break. Can anyone please share their experience on how to get rid of the Sub Total for a break column?
    Thanks.

Maybe you are looking for

  • How do I select multiple, non-adjacent, cells in Numbers?

    I have a spreadsheet that I need to select multiple non-adjacent cells for the purposes of highlighting them and I can't figure out how to do it. The Excel equivilant would be highlight a cell and then click he desired cell while pressing cmd. This d

  • I have a pc with itunes now i want to synic my iphone and ipad can you?

    can i pay someone to fix my iphone and ipad to have the same app on both ?

  • Streaming to?

    hello, I just bought a AE n which has been set up to join my existing network and want to test out streaming and one question though is I don't have any speakers to plug into it to test it with and is there an alternative like stream to another Mac o

  • IPad2 won't update from iOS 4.3.5 to 6.0

    I have the most recent version of iTunes,and it recognizes that I need to update to iOS 6, but just quits mid-update every time.  No error message or anything.  The only weird thing going on is that it always wants to Transfer My Purchases to iTunes

  • BAPI_INSPOPER_RECORDRESULTS

    Hi, Is there any OSS note available on this FM - BAPI_INSPOPER_RECORDRESULTS?