Running Aggregate on grand totals

Hi,
We have requirement where user wants to view running aggregate only on the grand total,when we use running aggregate in OBIEE 11g it calculates running totals each row, however we want the running totals on grand totals.
Another issue is can we show grand total row and running total on the grand total in the same report like the following report.
This is how the report should look however when we apply running aggregate it is calculating the totals for all the cells in OBIEE, Could any one let us know how we can achieve this.
Current report
Branch        W1     w2     w3      w4
Abc 10 1 10 11
MNC 20 2 5 10
XYZ 30 3 1 20
QCW 40 5 0 10
Grand Total  100   11        16       51
Expected report with Running aggregate on grand total
Branch            W1     w2     w3      w4
Abc 10 1 10 11
MNC 20 2 5 10
XYZ 30 3 1 20
QCW 40 5 0 10
Grand Total 100 11 16 51
Running Total   100    111    127     178
---------------------------------------------------------

So having this:
Branch W1 w2 w3 w4
Abc 10 1 10 11
MNC 20 2 5 10
XYZ 30 3 1 20
QCW 40 5 0 10
To achieve what you want you should add a union on the analysis where you set the Branch Column to 'Running Total'.
In the metric you just have to do a RSUM(facts) and they will be aggregated as an RSUM by Week.
Let me know if it works.

Similar Messages

  • Want Running / Grand Total excluding supressed values

    Dear All,
    I have made a report in Crystal Report where there is 1 Group which contains database fields as Document No, Document Date, Customer Name and Sales Order Document Total and in the detail section I have database fields as Row Status of Sales Order Line Items as Open or Closed.
    Now I have put a formula in the Group database fields that if any row status which is in the detail section has 'C' means closed then it should supress it. The formula is - if {Command.LineStatus} = 'C' THEN TRUE ELSE FALSE. This is supressing and I am having the report as per the desired requirement. Now I want to have a Total of the report which should show me the rand Total of Only what is shown in the report but the problem is that if I am putting the running total then in the grand total the Document Total which are supressed also are adding up. How to resolve it.
    Means I only want a running or grand total of what data is been fetched and not the supressed values.
    Please help and advise.
    Regards,
    Swamy

    Dear
    No there seems to be still the problem.
    I once again try to explain my report. I am trying to make a Sales Order which are open. Open for me means for Sales Order whose no Delivery or A/R Invoice is made. Meams all lines items are open. To check this I made a Group and placed the document numer, Document Total in the Group Header and used the supress formula in this field as in format > supress as if {Command.LineStatus} = 'C' THEN TRUE ELSE FALSE.
    The field Command.LineStatus is in the detail section. By the above formula I am able to bring only the sales order whose target document is not made for any single line or in other words the sales order is open.
    The SQL query is :
    SELECT T0.[DocNum], T0.[DocStatus], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[DocTotal], T2.[LineNum], T2.[TargetType], T2.[TrgetEntry], T2.[LineStatus] FROM ORDR T0  INNER JOIN NNM1 T1 ON T0.Series = T1.Series INNER JOIN RDR1 T2 ON T0.DocEntry = T2.DocEntry WHERE T1.[SeriesName] = 'KSAPRJ' and  T0.[CANCELED] = 'N' AND    T0.[DocStatus] = 'O'
    As per your advise I made a new formula field 'Total' and used If {Command.LineStatus} <> 'C' then {Command.DocTotal} else 0
    and then placed it in the same Group Header beside Document Total and then run the report then its showing corectly the values but when I sum up the 'Total' field the Adding is wrong.
    Can you advise is my report making process wrong or any advise.
    Regards,
    Swamy

  • Time Format (Grand Total) in OBIEE 11g

    Experts,
    In my Report Talk Time and Delay Time are present and I have enable the Grand Total based on Agency.
    i.e.
    Agency - Talk Time - Delay Time
    AgencyA 00:05:10 00:00:02
    AgencyB 00:02:12 00:00:01
    AgencyA 00:15:13 00:00:02
    AgencyC 00:10:10 00:00:25
    GrandTotal 00.00:32.00:45.00    00.00:00.00:35.00
    Look at Grand Total is shows like *00.00:32.00:45.00 ; 00.00:00.00:35.00*
    But our requirement should be *00:32:45 00:00:35* for Grand Total.
    Please let me know your valuable suggestions.
    Thanks,
    Balaa...

    Hi bala,
    Tricky one and good question,never tried this or got this type of requirment.
    did you aggregate the talk_time and delay_time,if so what is it ?? or did you use it as default one.
    Play with it like using server aggregation so it would determine the correct totals i suppose.
    hope helps you.
    Note:- If you get any solution or work around please post here so we could also learn & looking forward for other experts go on it.
    UPDATED POST
    Instead of sum as aggregate can you try server complex aggregation so server would decide how it would handle or
    even the max or min function .....its just playing with it to get a solution and check the query generated and run at the backend and see how the results are coming.
    Cheers,
    KK
    Edited by: Kranthi.K on Apr 18, 2011 2:08 AM

  • Alv subtotals  and grand total for a field

    Hi friends,
    I Have an internal table ITAB1
    in that i have a senario as below.
    In my GRID display iam getting values in the layou as follows
    BUKRS =  1000
    LIFNR      MATNR     STCST
    100          abc            500,00
    100          pqr             400,00
    100          xyz            200,00
                        sub total
    200         pto              700,00
    200         vbr              900,00
                        sub total
    BUKRS =  2000
    LIFNR      MATNR     STCST
    150          abc            500,00
    150          pqr             400,00
    150          xyz            200,00
                        sub total
    260         pto              700,00
    260         vbr              900,00
                        sub total
              GRAND TOTAL = 
    Now my requirement is at the end of every vendor  i need sub total for STCST field.
    and at the end of every company code i need GRAND TOTAL for STCST field.
    Its alv grid display.
    how can i do that.
    Regards,
    Priyanka.

    Check this sample code may it will help u:
    *& Report  Z_ALV_SUBTOTAL
    REPORT z_alv_subtotal.
    *& Table declaration
    TABLES: ekko.
    *& Type pool declaration
    TYPE-POOLS: slis. " Type pool for ALV
    *& Selection screen
    SELECT-OPTIONS: s_ebeln FOR ekko-ebeln.
    *& Type declaration
    * Type declaration for internal table to store EKPO data
    TYPES: BEGIN OF x_data,
           ebeln  TYPE char30,  " Document no.
           ebelp  TYPE ebelp,   " Item no
           matnr  TYPE matnr,   " Material no
           matnr1 TYPE matnr,   " Material no
           werks  TYPE werks_d, " Plant
           werks1 TYPE werks_d, " Plant
           ntgew  TYPE entge,   " Net weight
           gewe   TYPE egewe,   " Unit of weight                          
           END OF x_data.
    *& Internal table declaration
    DATA:
    * Internal table to store EKPO data
      i_ekpo TYPE STANDARD TABLE OF x_data INITIAL SIZE 0,
    * Internal table for storing field catalog information
      i_fieldcat TYPE slis_t_fieldcat_alv,
    * Internal table for Top of Page info. in ALV Display
      i_alv_top_of_page TYPE slis_t_listheader,
    * Internal table for ALV Display events
      i_events TYPE slis_t_event,
    * Internal table for storing ALV sort information
      i_sort TYPE  slis_t_sortinfo_alv,
      i_event TYPE slis_t_event.
    *& Work area declaration
    DATA:
      wa_ekko TYPE x_data,
      wa_layout     TYPE slis_layout_alv,
      wa_events         TYPE slis_alv_event,
      wa_sort TYPE slis_sortinfo_alv.
    *& Constant declaration
    CONSTANTS:
       c_header   TYPE char1
                  VALUE 'H',                    "Header in ALV
       c_item     TYPE char1
                  VALUE 'S'.
    *& Start-of-selection event
    START-OF-SELECTION.
    * Select data from ekpo
      SELECT ebeln " Doc no
             ebelp " Item
             matnr " Material*
             matnr " Material*
             werks " Plant*
             werks " Plant*
             ntgew " Quantity
             gewei " Unit
             FROM ekpo
             INTO TABLE i_ekpo
             WHERE ebeln IN s_ebeln
             AND ntgew NE '0.00'.
      IF sy-subrc = 0.
        SORT i_ekpo BY ebeln ebelp matnr .
      ENDIF.
    * To build the Page header
      PERFORM sub_build_header.
    * To prepare field catalog
      PERFORM sub_field_catalog.
    * Perform to populate the layout structure
      PERFORM sub_populate_layout.
    * Perform to populate the sort table.
      PERFORM sub_populate_sort.
    * Perform to populate ALV event
      PERFORM sub_get_event.
    END-OF-SELECTION.
    * Perform to display ALV report
      PERFORM sub_alv_report_display.
    *&      Form  sub_build_header
    *       To build the header
    *       No Parameter
    FORM sub_build_header .
    * Local data declaration
      DATA: l_system     TYPE char10 ,          "System id
            l_r_line     TYPE slis_listheader,  "Hold list header
            l_date       TYPE char10,           "Date
            l_time       TYPE char10,           "Time
            l_success_records TYPE i,           "No of success records
            l_title(300) TYPE c.                " Title
    * Title  Display
      l_r_line-typ = c_header.               " header
      l_title = 'Test report'(001).
      l_r_line-info = l_title.
      APPEND l_r_line TO i_alv_top_of_page.
      CLEAR l_r_line.
    * Run date Display
      CLEAR l_date.
      l_r_line-typ  = c_item.                " Item
      WRITE: sy-datum  TO l_date MM/DD/YYYY.
      l_r_line-key = 'Run Date :'(002).
      l_r_line-info = l_date.
      APPEND l_r_line TO i_alv_top_of_page.
      CLEAR: l_r_line,
             l_date.
    ENDFORM.                    " sub_build_header
    *&      Form  sub_field_catalog
    *       Build Field Catalog
    *       No Parameter
    FORM sub_field_catalog .
    *  Build Field Catalog
      PERFORM sub_fill_alv_field_catalog USING:
         '01' '01' 'EBELN' 'I_EKPO' 'L'
         'Doc No'(003) ' ' ' ' ' ' ' ',
         '01' '02' 'EBELP' 'I_EKPO' 'L'
         'Item No'(004) 'X' 'X' ' ' ' ',
         '01' '03' 'MATNR' 'I_EKPO' 'L'
         'Material No'(005) 'X' 'X' ' ' ' ',
         '01' '03' 'MATNR1' 'I_EKPO' 'L'
         'Material No'(005) ' ' ' ' ' ' ' ',
         '01' '04' 'WERKS' 'I_EKPO' 'L'
         'Plant'(006) 'X' 'X' ' ' ' ',
         '01' '04' 'WERKS1' 'I_EKPO' 'L'
         'Plant'(006) ' ' ' ' ' ' ' ',
         '01' '05' 'NTGEW' 'I_EKPO' 'R'
         'Net Weight'(007) ' ' ' ' 'GEWE' 'I_EKPO'.
    ENDFORM.                    " sub_field_catalog
    *&     Form  sub_fill_alv_field_catalog
    *&     For building Field Catalog
    *&     p_rowpos   Row position
    *&     p_colpos   Col position
    *&     p_fldnam   Fldname
    *&     p_tabnam   Tabname
    *&     p_justif   Justification
    *&     p_seltext  Seltext
    *&     p_out      no out
    *&     p_tech     Technical field
    *&     p_qfield   Quantity field
    *&     p_qtab     Quantity table
    FORM sub_fill_alv_field_catalog  USING  p_rowpos    TYPE sycurow
                                            p_colpos    TYPE sycucol
                                            p_fldnam    TYPE fieldname
                                            p_tabnam    TYPE tabname
                                            p_justif    TYPE char1
                                            p_seltext   TYPE dd03p-scrtext_l
                                            p_out       TYPE char1
                                            p_tech      TYPE char1
                                            p_qfield    TYPE slis_fieldname
                                            p_qtab      TYPE slis_tabname.
    * Local declaration for field catalog
      DATA: wa_lfl_fcat    TYPE  slis_fieldcat_alv.
      wa_lfl_fcat-row_pos        =  p_rowpos.     "Row
      wa_lfl_fcat-col_pos        =  p_colpos.     "Column
      wa_lfl_fcat-fieldname      =  p_fldnam.     "Field Name
      wa_lfl_fcat-tabname        =  p_tabnam.     "Internal Table Name
      wa_lfl_fcat-just           =  p_justif.     "Screen Justified
      wa_lfl_fcat-seltext_l      =  p_seltext.    "Field Text
      wa_lfl_fcat-no_out         =  p_out.        "No output
      wa_lfl_fcat-tech           =  p_tech.       "Technical field
      wa_lfl_fcat-qfieldname     =  p_qfield.     "Quantity unit
      wa_lfl_fcat-qtabname       =  p_qtab .      "Quantity table
      IF p_fldnam = 'NTGEW'.
        wa_lfl_fcat-do_sum  = 'X'.
      ENDIF.
      APPEND wa_lfl_fcat TO i_fieldcat.
      CLEAR wa_lfl_fcat.
    ENDFORM.                    " sub_fill_alv_field_catalog
    *&      Form  sub_populate_layout
    *       Populate ALV layout
    *       No Parameter
    FORM sub_populate_layout .
      CLEAR wa_layout.
      wa_layout-colwidth_optimize = 'X'." Optimization of Col width
    ENDFORM.                    " sub_populate_layout
    *&      Form  sub_populate_sort
    *       Populate ALV sort table
    *       No Parameter
    FORM sub_populate_sort .
    * Sort on material
      wa_sort-spos = '01' .
      wa_sort-fieldname = 'MATNR'.
      wa_sort-tabname = 'I_EKPO'.
      wa_sort-up = 'X'.
      wa_sort-subtot = 'X'.
      APPEND wa_sort TO i_sort .
      CLEAR wa_sort.
    * Sort on plant
      wa_sort-spos = '02'.
      wa_sort-fieldname = 'WERKS'.
      wa_sort-tabname = 'I_EKPO'.
      wa_sort-up = 'X'.
      wa_sort-subtot = 'X'.
      APPEND wa_sort TO i_sort .
      CLEAR wa_sort.
    ENDFORM.                    " sub_populate_sort
    *&      Form  sub_get_event
    *       Get ALV grid event and pass the form name to subtotal_text
    *       event
    *       No Parameter
    FORM sub_get_event .
      CONSTANTS : c_formname_subtotal_text TYPE slis_formname VALUE
    'SUBTOTAL_TEXT'.
      DATA: l_s_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type     = 4
        IMPORTING
          et_events       = i_event
        EXCEPTIONS
          list_type_wrong = 0
          OTHERS          = 0.
    * Subtotal
      READ TABLE i_event  INTO l_s_event
                        WITH KEY name = slis_ev_subtotal_text.
      IF sy-subrc = 0.
        MOVE c_formname_subtotal_text TO l_s_event-form.
        MODIFY i_event FROM l_s_event INDEX sy-tabix.
      ENDIF.
    ENDFORM.                    " sub_get_event
    *&      Form  sub_alv_report_display
    *       For ALV Report Display
    *       No Parameter
    FORM sub_alv_report_display .
      DATA: l_repid TYPE syrepid .
      l_repid = sy-repid .
    * This function module for displaying the ALV report
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = l_repid
          i_callback_top_of_page   = 'SUB_ALV_TOP_OF_PAGE'
          is_layout                = wa_layout
          it_fieldcat              = i_fieldcat
          it_sort = i_sort
          it_events                = i_event
          i_default                = 'X'
          i_save                   = 'A'
        TABLES
          t_outtab                 = i_ekpo
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
    *    MESSAGE i000 WITH 'Error in ALV report display'(055).
      ENDIF.
    ENDFORM.                    " sub_alv_report_display
    *       FORM sub_alv_top_of_page
    *       Call ALV top of page
    *       No parameter
    FORM sub_alv_top_of_page.                                   "#EC CALLED
    * To write header for the ALV
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = i_alv_top_of_page.
    ENDFORM.                    "alv_top_of_page
    *&      Form  subtotal_text
    *       Build subtotal text
    *       P_total  Total
    *       p_subtot_text Subtotal text info
    FORM subtotal_text CHANGING
                   p_total TYPE any
                   p_subtot_text TYPE slis_subtot_text.
    * Material level sub total
      IF p_subtot_text-criteria = 'MATNR'.
        p_subtot_text-display_text_for_subtotal
        = 'Material level total'(009).
      ENDIF.
    * Plant level sub total
      IF p_subtot_text-criteria = 'WERKS'.
        p_subtot_text-display_text_for_subtotal = 'Plant level total'(010).
      ENDIF.
    ENDFORM.                    "subtotal_text
    Edited by: Joyjit Ghosh on Aug 21, 2008 5:25 PM

  • How to get the Grand Total in Module pool Screen

    Hi Frds.
         How to get the Grand Total in Module pool Screen
    Example i have 10 different materials
    for each matarial has different moving . But in my case matarials is doesnt matter here
    10 material Moving Average price to do Frand total and display in one column...
    Please Help me out Frds.
    Regards,
    Kabil

    Hi
    You need to calculate the total in a module of PAI (or PBO) event:
    PROCESS PAI.
       LOOP.....
       ENDLOOP.
      MODULE CALCULATE_TOTAL.
      MODULE CALCULATE_TOTAL.
        GRAND_TOTAL = 0.
         LOOP AT ITAB,
            GRAND_TOTAL = GRAND_TOTAL + ITAB-PWB.
        ENDLOOP.
    ENDMODULE.
    In this way the grand total will be calculated as soon as the user presses enter or another command.
    You can't insert the calculation in the loop of table control, because this loop runs the visible lines only, so it's better to calculate the total out of those loop,

  • SSRS Totals by Month and Grand Total

    I am almost done with this report.  It uses alot of lookup functions to connect 2 datasets together.  I have grouped the data by month and by a column called Alt.  Now I need to get the sum for each month and then a grand total but I'm not
    sure how to do this. 
    My data looks like this:
    Year/Month Column:              Alt:              Number                 
                 14/01                        A                    
    50                                  
                 14/01                        B                    
    25
                 14/01                       C                    
    10
    Needs to add a Totals Row or something where it would say like:
    14/01 Total = 85                                
                 14/02                        A                   
    55
                 14/02                         B                  
    30
                  14/02                       C                   
    20
    Total Row: 14/02 = 105
    Grand Total: 190
    Is there a way I can do this?  Should I use a matrix instead of a regular table? 
    Also since most of this is from lookup functions, I have to use reportitems! function in my equations, and usually it says that an aggregate cant be used with reportitems

    I think you are combining the concept of the Local currency and the document currency. Currently, your ALV has the Document Currency values (e.g. EUR, ARS, USD) whereas (I assume) you have the local currency as the USD.
    To get the total on the USD (Local Currency), you have to select and bring the Local Currency as a new columns. E.g If you are selecting data from BSEG than you must select DMBTR (amount in local currency) with the WRBTR (Amount in Document currency). Than You can than make a Grand total on this column.
    Regards,
    Naimesh Patel

  • What is the use of Grand total level in obiee ,

    hi ,
    i know that we can perform drill down from one level to another level, level base measures ,aggregate atble.................
    apart from that any other user if so pls give me one small example
    What is the use of Grand total level in obiee

    When you start to use multi-star models and none-conforming dimensions, you will use the grand total level to tell the BI Server what to do with the measures when you try and plot them all in the same answers request.
    Also consider any meaure you want to perform a '% of total' you will need the total mapped somewhere, this could use the Grand total level as a level based measure.
    Regards
    Alastair

  • Grand total values are not matching with Detail report

    Report has grand totals and when I drill to the detail report, grand total values are NOT matching with parent report totals, I did some analysis but I'm clueless on this issue.
    Please provide your thoughts and insight on this issue..
    Thanks

    is your summary and detail reports hitting different facts, like summary hitting aggregate and detail report hitting it's corresponding detail level fact..?
    if then,
    From Front-end:
    Fix the filter values in detail report that are passing from master report then try delete each columns then check the grand total. If you found your values is matching by deleting particular column then you need to investigate what is the issue around with that dimension table..
    From Database side:
    1. check first aggregate table has proper aggregate data of it's detail..
    2. Take the detail report obiee generated query and try to comment each dimension table and it's corresponding joins to the facts, (before, this delete all the dimensional columns and other measures from select statement and put only that measure where you are getting wrong value, so that you need not to comment all the select and group by columns which saves your time.. ). Need to check by commenting each dimensional wid and it's table from clause, if you found that values is matching then there is some problem with wid columns data population in your ETL.
    Is that BI-Apps project?
    btw, whtz ur name?

  • Problem with Grand total in Crystal report xi

    Post Author: eshwar_polawar
    CA Forum: Crystal Reports
    Dear all,
    I am facing the problem with Grand total field in Report footer.Please advise me how should we resolve it.
    My report design as follows
    Report Title
    Page Header section:
    charged date    fee_ description charge_ amount currency_code
    Group  Header #1(Group by bank_ref)
    Group Header #2(Group by Currency code)
    Details
    charged date    fee_ description charge_ amount currency_code
    Group Footer#2 
    (Sub Total )
    Running Total field(Fields to Summarize on Charge_amount, Evaluate on "Group2# change of currency code) ,Sum of Charge_amount,Currency_ code
    Report footer:
    Sum of (charge_amount) currecy code
    Example of data:
    charged date   fee desc   chrage amount  currencycode
    0000000060129
    CAD
    10-Oct-2007    Transfer     200   Cad
    11-Oct-2007  comm          150 cad
    Sub total                        350 Cad
    0000000060129
    CAD
    10-Oct-2007    Transfer     100   USD
    11-Oct-2007  comm          150  USD
    Sub total                        250 USD
    Grand total     should   350 CAD  but it is showing  all total amoun 1000 CAD ,Group by Curreny code in the table
                                        250 USD but it is showing all  total amount 1200 USD
    Please provide the solutions like:
    1).About Running total in Report footer section
    2).Formula on While printing records for grand total
    3).How will send links with subreports
    Thanks and Regards
    Eshwar

    Post Author: eshwar_polawar
    CA Forum: Crystal Reports
    eshwar_polawar:
    Dear all,
    I am facing the problem with Grand total field in Report footer.Please advise me how should we resolve it.
    My report design as follows
    Report Title
    Page Header section:
    charged date    fee_ description charge_ amount currency_code
    Group  Header #1(Group by bank_ref)
    Group Header #2(Group by Currency code)
    Details
    charged date    fee_ description charge_ amount currency_code
    Group Footer#2 
    (Sub Total )
    Running Total field(Fields to Summarize on Charge_amount, Evaluate on "Group2# change of currency code) ,Sum of Charge_amount,Currency_ code
    Report footer:
    Sum of (charge_amount) currecy code
    Example of data:
    charged date   fee desc   chrage amount  currencycode
    0000000060129
    CAD
    10-Oct-2007    Transfer     200   Cad
    11-Oct-2007  comm          150 cad
    Sub total                        350 Cad
    0000000060129
    CAD
    10-Oct-2007    Transfer     100   USD
    11-Oct-2007  comm          150  USD
    Sub total                        250 USD
    Grand total     should   350 CAD  but it is showing  all total amoun 1000 CAD ,Group by Curreny code in the table
                                        250 USD but it is showing all  total amount 1200 USD
    Please provide the solutions like:
    1).About Running total in Report footer section
    2).Formula on While printing records for grand total
    3).How will send links with subreports
    Thanks and Regards
    Eshwar

  • Grand Total problem

    I have grand total problem. This is my pivot table.
    A B A/B
    1 10 0,1
    2 4 0,5
    8 3 2,67
    {color:#ff0000}11 17 _3,27_ GRAND TOTAL{color} (0,1+0,5+2,67)
    A - AVG type
    B - SUM type
    How to make obi calculate grand total like this:
    A B A/B
    1 10 0,1
    2 4 0,5
    8 3 2,67
    {color:#0000ff}11 17 _0,647_ GRAND TOTAL{color} (11/17)
    Is that posssible?
    Would it help to add *&lt;ReportAggregateEnabled&gt;true&lt;/ReportAggregateEnabled&gt;*
    in instanceconfig.xml?
    Edited by: Micek on 2009.02.09 12:53

    Conceptually Report Aggregate Enabled should work. Look into this blog article which refers same.
    http://oraclebi.soundvoid.net/2008/10/grand-totals-with-calculated-columns-2/

  • Grand Total on Formula

    I have a quantity field in my main report that I passed off to my subreport. In the subreport I took the quantity field and placed it in a formula ({@Valuation Material Costs}*{@Qty from Main Report}). This is placed in the Group Header. Now I want to setup a grand total of this formula but I can not figure out how to get there. Any ideas?

    If your formula already contains any summarized fields then you cannot summarize that formula. Try creating a mannual running total like this
    whileprintingrecords;
    numbervar i;
    i:=i+@formula;
    Now place this formula in group footer or header and suppress this formula. Create a new formula like
    whileprintingrecords;
    numbervar i;
    Place this in report footer which shows the grand total.
    Reagrds,
    Raghavendra

  • Grand Total on the Header page

    Post Author: RogerR
    CA Forum: General
    Say I'm created a multiple page estimate report. As all the labor and material costs are being created and added up.
    Is it possible to put that Grand Total on the first page?
    Can you process the report first to get the numbers then print the report? I guess this is what would need to happen.

    Post Author: SKodidine
    CA Forum: General
    If you summarize a field (not a running total) then you should be able to create the summary field and move it to the Report Header without any problems.  This cannot be done if you use running totals for obvious reasons.

  • Grand Total % Variance

    Hi,
    I have a Report for GL Reconciliation and it shows Source System Balances and GL Balances along with the Variance in these two and % Variance.
    Sample data is as follows:
    Year     Month     SYS     Source System Bal GL Balances     Variance     % Variance
    2010     MAY     A     66,100,676,002     60,994,246,811     -5106429191     -8.37%
    2010     MAY     B     29,081,192,665     29,066,650,415     -14542249.78     -0.05%
    2010     MAY     C     218,856,115     212,416,688     -6439426.71     -3.03%
    2010     MAY     D     14,601,939               -100.00%
    2010     MAY     E     808,716,681     822,453,990     13737309.05     1.67%
    2010     MAY     F     5,874,200,259     6,856,456,401     982256141.3     14.33%
    2010     MAY     G     2,181,160,124     2,164,379,222     -16780901.26     -0.78%
    2010     MAY     H     10,505,609,797     23,529,905,894     13024296097     55.35%
    2010     MAY     I     1,566,030,457     1,565,502,039     -528418.48     -0.03%
    2010     MAY     J     1,479,284,089          100.00%
    2010     MAY     K     10,939,680,559     7,481,930,011     -3457750548     -46.21%
    2010     MAY     L     8,774,737,817     8,831,160,339     56422521.84     0.64%
    2010     MAY     M     1,117,717,954     548,331,847     -569386106.3     -103.84%
    2010     MAY     N     73,670,961     55,680,430     -17990531.39     -32.31%
    2010     MAY     O     4,583,263,229     4,562,122,752     -21140477.19     -0.46%
    2010     MAY     P     204,382,965     206,288,734     1905768.97     0.92%
    2010     MAY NULL          332,763,879          100.00%
         MAYTotal          142,044,497,524     148,709,573,543     6665076018     4.48%
    Now This is how the Report will work as Normal...
    What the user wants is Instead of Variance he wants to see the Absolute variance. So If I run absolute function on This Column, I will get following results:
    ABS(Variance)
    5,106,429,191
    14,542,250
    6,439,427
    13,737,309
    982,256,141
    16,780,901
    13,024,296,097
    528,418
    3,457,750,548
    56,422,522
    569,386,106
    17,990,531
    21,140,477
    1,905,769
    6665076018 --- -This Total is Incorrect as it is showing only the Absolute value to the Total, where as it should be More than this and to achieve this, I changed the Aggreegation Rule to SUM
    to Get the correct sum of the figures mentioned ablove which will show following output:
    ABS(Variance)
    5,106,429,191
    14,542,250
    6,439,427
    13,737,309
    982,256,141
    16,780,901
    13,024,296,097
    528,418
    3,457,750,548
    56,422,522
    569,386,106
    17,990,531
    21,140,477
    1,905,769
    23,289,605,688
    Now Till this point everything is correct and can be achieved. The problem is with the % Variance:
    Bydefault % Variance ( Calculated using Variance/GL Balances )*100 Is as follows:
    % Variance
    -8.37%
    -0.05%
    -3.03%
    -100.00%
    1.67%
    14.33%
    -0.78%
    55.35%
    -0.03%
    100.00%
    -46.21%
    0.64%
    -103.84%
    -32.31%
    -0.46%
    0.92%
    100.00%
    4.48%
    But the Users wants that The % variance be calculated on Variance Column and GL Balances Column ( Variance/ GL Balances)*100
    But the Grand Total values at the bottom should be based on ( Grand Total of ABS(Variance)/ Grand Total of GL Balances ) *100
    to get the Desired results as :
    % Variance
    -8.37%
    -0.05%
    -3.03%
    -100.00%
    1.67%
    14.33%
    -0.78%
    55.35%
    -0.03%
    100.00%
    -46.21%
    0.64%
    -103.84%
    -32.31%
    -0.46%
    0.92%
    100.00%
    15.66%
    (23,289,605,688/1,48,709,573,543)*100
    If someone can help me with this...
    Edited by: help-required on Oct 1, 2010 1:14 AM

    OK, there are a couple of things that have to be pointed out before getting to the actual problem. First of all, the column you named "Variance" is not a variance, but a "difference" and should be labeled as such. Second, what is the variance you are trying to calculate?
    If the variance is from the "Source System Bal," then the calculation is ("GL Balances" - "Source System Bal")/"Source System Bal"
    If the variance is from the "GL Balances," then the calculation is ("Source System Bal" - GL Balances")/"GL Balances"
    You have ("GL Balances" - "Source System Bal")/"GL Balances" so do you know what you are measuring? Make sure you get this part right first. Now on to the issue itself.
    This is the point of confusion with some I think: you want the individual rows of the "% Variance" column to display the +actual+ variance, positive or negative, but in just the total at the bottom, you want the "% Variance" to reflect the "absolute values of the differences, summed, and then divided by the GL Balances."
    You can't have two different calculations on the same column like that, one for the rows and a completely different one for the total.
    Here's a workaround. Uncheck the "totals" for the pivot table completely and just show the rows. (Make sure you change the name of the "Variance" column to "Difference" or something similar.)
    Now create another pivot table view, but take out all the attributes so the measures sum up. Add an additional column called "ABS % Variance" and make this calculated column (do this in Criteria in the fx of a "dummy column"):
    (ABS("GL Balances" - "Source System Balances")/"Source System Bal")*100.00
    Don't forget to change the data format to "percentage."
    Now place this pivot table view directly below the one with the individual rows. You should now have what you are looking for.
    Edited by: David_T on Sep 30, 2010 10:58 AM

  • Grand Total formula different from Subtotals

    Hi,
    i've a question. Suppose i have a normal table (No pivot) with 2 columns: Month and Salary percentage on Month.
    In addition i have subtotals on Month column and a Grand Total. I have a situation like this:
    Month Salary percentage on Month
    30
    January 20
    50
    January Subtotal 100
    20
    February 70
    10
    February Subtotal 100
    Grand Total 200
    In Salary percentage on Month field I have as aggregation rule Sum because i want that subtotals are the sum of single rows of the month.
    But i don't want this for grand total. It should be 100 (max of subtotals).
    Is it possible specify a different formula for Grand Total respect to that used for Subtotals?
    Thanks
    Giancarlo

    If your formula already contains any summarized fields then you cannot summarize that formula. Try creating a mannual running total like this
    whileprintingrecords;
    numbervar i;
    i:=i+@formula;
    Now place this formula in group footer or header and suppress this formula. Create a new formula like
    whileprintingrecords;
    numbervar i;
    Place this in report footer which shows the grand total.
    Reagrds,
    Raghavendra

  • Grand total in OBIEE Answers

    I have say three columns in a report, Col A that aggregates by SUM, Col B that also aggregates by SUM and Col 3 that aggregates by Avg
    Col A Col B Col C
    Amount Qty Avg price
    10 3 3.33
    20 4 5
    30 7 ? Grand Total (use of report total)
    I want to see Sum (col A) / Sum Col B and average of Col C where I have ?, how can I do that?

    Hi,
    If i got you correctly,
    i think you can achieve this way.
    Criteria:
    Dim X, Dim Y, Col A , Col B , Col C
    case i:
    If Col A & Col B are Aggregated to SUM(in RPD),
    then in the column formula of 'Col C',
    Col A/Col B (Aggregation Rule - Default)
    This gives you the SUM(Col A) / SUM(Col B) for the Grand total Row for 'Col C'
    case ii:
    If Col A & Col B are Not Aggregated to SUM(in RPD),
    then in the column formula of 'Col C',
    SUM(Col A BY Dim X, Dim Y)
    SUM(Col B BY Dim X, Dim Y) (Aggregation Rule - Default)
    This gives you the SUM(Col A BY all Dim X,Y values) / SUM(Col B BY all Dim X,Y values) for the Grand total Row for 'Col C'
    Hope it helps you.
    Regards,
    Raghu

Maybe you are looking for