How to set Grand Total of a Measure when its aggregation rule is Max in Logical Layer

Hi
I have a Measure Column (Budget) and in Logical layer the aggregation rule is set as (Max) which looks like Max(Budget). But now it is included in the report and when my client is trying to see its grand total, it is giving the Max Budget figure of the report rather than giving the total sum(grand total).
Kindly share some ideas in achieving the grand total without disturbing the actual aggregation of the measure.

Thank You for your reply.
In my case i don't have a problem with aggregation for Budget Measure(max(Fact_XXKC_SHIP_TO_BUDGET_CAT_F.SALESREP_BUDGET_YTD)). This is the aggregation rule applied on the Salesrep Budget YTD.
Now i created a report with columns
Salesrepresntative(Dimension),, Sales Invoices(Measure1),, SALESREP_BUDGET_YTD(Measure 2).
In the above report the values are perfect, but when we used Grand total option at ROW level in table view, the grand total of Measure1 is cumulative of all the rows, but the Grand total of SALESREP_BUDGET_YTD (measure2) is the max of all the columns.
What i require is the Grand total of SALESREP_BUDGET_YTD (measure 2) should be cumulative of all the columns.
I have shared my SQL query, kindly verify it and share any idea.
select sum(case when T97600.W_XACT_TYPE_CODE = 'Chargeback' then T93664.NET_AMT * T93664.GLOBAL1_EXCHANGE_RATE end ) as c1,
  sum(case when T97600.W_XACT_TYPE_CODE = 'Credit Memo' then T93664.NET_AMT * T93664.GLOBAL1_EXCHANGE_RATE end ) as c2,
  sum(case when T97600.W_XACT_TYPE_CODE = 'Debit Memo' then T93664.NET_AMT * T93664.GLOBAL1_EXCHANGE_RATE end ) as c3,
  sum(case when T97600.W_XACT_TYPE_CODE = 'Standard Invoice' then T93664.NET_AMT * T93664.GLOBAL1_EXCHANGE_RATE when T97600.W_XACT_TYPE_CODE = 'Invoice Cancellation' then T93664.NET_AMT * -1 * T93664.GLOBAL1_EXCHANGE_RATE end ) as c4,
  T315597.XXKC_RESOURCE_NAME as c5
  from
  W_CUSTOMER_LOC_USE_D T315597 /* Dim_W_CUSTOMER_LOC_USE_D_Status */ ,
  W_SALES_INVOICE_LINE_F T93664 /* Fact_W_SALES_INVOICE_LINE_F */ ,
  W_XACT_TYPE_D T97600 /* Dim_W_XACT_TYPE_D_Sales_Ivclns */
  where ( T93664.XACT_TYPE_WID = T97600.ROW_WID and T93664.DELETE_FLG = 'N' and T93664.XX_SHIP_TO_LOC_USE_WID = T315597.ROW_WID )
  group by T315597.XXKC_RESOURCE_NAME
  ) D1 full outer join (select max(T313184.SALESREP_BUDGET_YTD) as c1,
  T315597.XXKC_RESOURCE_NAME as c2
  from
  W_CUSTOMER_LOC_USE_D T315597 /* Dim_W_CUSTOMER_LOC_USE_D_Status */ ,
  XXKC_SHIP_TO_BUDGET_CAT_F T313184 /* Fact_XXKC_SHIP_TO_BUDGET_CAT_F */
  where ( T313184.SITE_USE_WID = T315597.ROW_WID )
  group by T315597.XXKC_RESOURCE_NAME

Similar Messages

  • How to get Grand Total Text in ALV GRID

    Hi Folks,
    I am able to get the SUBTOTAL TEXT .....But i need...
    How to get Grand Total Text in ALV GRID Display...
    Can any one give a Solution for this...

    Hi Surendar,
    Check out this code.. this is showing Total Text in Toal line in the very first column.
    REPORT  zsales_ord_det_1                        .
    TABLES: ztable_10.
    TYPE-POOLS: slis.
    DATA: BEGIN OF it OCCURS 0,
    srno(6) type c,
    name LIKE ztable_10-name,
    age LIKE ztable_10-age,
    END OF it.
    DATA : BEGIN OF it_temp OCCURS 0,
    name LIKE ztable_10-name,
    age LIKE ztable_10-age,
    END OF it_temp.
    DATA: i_fieldcat  TYPE slis_t_fieldcat_alv,
          wa_fieldcat TYPE  slis_fieldcat_alv.
    DATA: v_repid LIKE sy-repid,
           i_index TYPE STANDARD TABLE OF i WITH HEADER LINE,
           gs_layout TYPE slis_layout_alv,
           gd_layout TYPE slis_layout_alv,
           i_sort TYPE STANDARD TABLE OF slis_sortinfo_alv,
           wa_sort TYPE slis_sortinfo_alv.
    START-OF-SELECTION.
      v_repid = sy-repid.
      SELECT * FROM ztable_10 INTO TABLE it_temp.
      LOOP AT it_temp .
        it-srno = 'Total'.
        it-name = it_temp-name.
        it-age = it_temp-age.
        APPEND  it.
      ENDLOOP.
    END-OF-SELECTION.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
       EXPORTING
         i_program_name               = v_repid
         i_internal_tabname           = 'IT'
      I_STRUCTURE_NAME             =
      I_CLIENT_NEVER_DISPLAY       = 'X'
         i_inclname                   = v_repid
      I_BYPASSING_BUFFER           =
      I_BUFFER_ACTIVE              =
        CHANGING
          ct_fieldcat                  = i_fieldcat[]
       EXCEPTIONS
         inconsistent_interface       = 1
         program_error                = 2
         OTHERS                       = 3
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    wa_fieldcat-row_pos = 1.
    wa_fieldcat-col_pos = 1.
    wa_fieldcat-fieldname = 'SRNO'.
    wa_fieldcat-tabname = it.
    append wa_fieldcat to i_fieldcat.
      LOOP AT i_fieldcat INTO wa_fieldcat.
        IF wa_fieldcat-fieldname = 'AGE'.
          wa_fieldcat-do_sum = 'X'.
          MODIFY i_fieldcat FROM wa_fieldcat.
        ENDIF.
       IF wa_fieldcat-fieldname = 'SRNO'.
         Hide this field so that it can display it's content i.e.
            Total text in Subtotal level
        wa_fieldcat-tech = 'X'.
          wa_fieldcat-no_out = 'X'.
          MODIFY i_fieldcat FROM wa_fieldcat TRANSPORTING tech no_out.
       ENDIF.
      ENDLOOP.
    wa_sort-spos = 1.
    wa_sort-fieldname = 'SRNO'.
    wa_sort-up = 'X'.
    wa_sort-subtot = 'X'.
    APPEND wa_sort TO i_sort.
      gd_layout-no_totalline = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                       = ' '
         i_callback_program                        = v_repid
      I_CALLBACK_PF_STATUS_SET     = ' '
    i_callback_user_command                = 'USER_COMMAND'
      I_CALLBACK_TOP_OF_PAGE         = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE  = ' '
      I_CALLBACK_HTML_END_OF_LIST    = ' '
      I_STRUCTURE_NAME                       =
      I_BACKGROUND_ID                        = ' '
      I_GRID_TITLE                                  =
      I_GRID_SETTINGS                          =
         is_layout                                      = gd_layout
         it_fieldcat                                      = i_fieldcat[]
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
         it_sort                           = i_sort
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      I_HTML_HEIGHT_TOP                 =
      I_HTML_HEIGHT_END                 =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = it
       EXCEPTIONS
         program_error                     = 1
         OTHERS                            = 2
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    Regards,
    Seema

  • Need Total of a Measure Constantly without aggregation

    Hallo Experts,
    I Need to show Total of a Measure Constantly without aggregation in Webi in one column.
    The requirement is to show following
    Supplier Name
    No. Deliveries
    Total Deliveries
    A
    1
    43
    B
    2
    43
    C
    2
    43
    D
    4
    43
    E
    3
    43
    F
    6
    43
    G
    0
    43
    H
    8
    43
    I
    6
    43
    J
    5
    43
    K
    3
    43
    L
    2
    43
    M
    1
    43
    N
    0
    43
    I am using following formula" =sum(No. Deliveries) In (Supplier Name)
    (I have used Forall and foreach functions also but they are splitting per supplier)
    It is delivering values correctly.
    But when we do ranking for top ten suppliers, it showing total for only for those ten suppliers. Like below
    Supplier Name
    No. Deliveries
    Total Deliveries
    A
    1
    37
    B
    2
    37
    C
    2
    37
    D
    4
    37
    E
    3
    37
    F
    6
    37
    G
    0
    37
    H
    8
    37
    I
    6
    37
    J
    5
    37
    But the requirement is to show Total deliveries for all suppliers no matter how many suppliers we show.
    Please provide me with any suggestions.
    Thanks in Advance
    Indra

    Solved it with "=nofilter(Sum(No.Deliveries) in (Supplier Name))
    Thanks

  • Can u tell me how to set the color of the button and its border

    hi to all,can u tell me how to set the color of the button and its border

    There are sample code on the java.sun.com
    http://java.sun.com/docs/books/tutorial/uiswing/components/example-swing/index.html
    try this web page ... There are lots of examples... Good luck ... "Gan en "

  • How to set AO channel to 0 value when VI stopped

    when a VI stopped, the AO channel stopped on the level it's get, how to set these analog output to zero when stop a vi?

    Hi!
    As a second option (and if your device supports it ) you could set the property "Idle Output Behavior"
    see here:  http://digital.ni.com/public.nsf/allkb/dc9d2ab6dfb1924e86257260000cc350
    and here: http://forums.ni.com/t5/LabWindows-CVI/Analog-output-behavior-after-the-task-has-stopped/td-p/655137
    Regards,
    Marco

  • HT204409 how can i locate my mini ipad even when its not connected to the internet

    how can i locate my mini ipad even when its not connected to the internet

    Is it lost or stolen?
    Apple (and no one else) can not assist (with serial number or iCloud) in finding a lost or stolen iPad.
    Report to police along with serial number. Change all your passwords.
    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    What to do if your iOS device is lost or stolen
    http://support.apple.com/kb/HT5668
    iCloud: Locate your device on a map
    http://support.apple.com/kb/PH2698
    iCloud: Lost Mode - Lock and Trace
    http://support.apple.com/kb/PH2700
    iCloud: Remotely Erase your device
    http://support.apple.com/kb/PH2701
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to recover a lost or stolen iPad
    http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    What NOT to do if your iPhone or iPad is lost or stolen
    http://www.tomahaiku.com/what-not-to-do-if-your-iphone-or-ipad-lost-or-stolen/
    Apple Product Lost or Stolen
    http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st olen
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
    If you don't know your lost/stolen iPad's serial number, use the instructions below. The S/N is also on the iPad's box.
    How to Find Your iPad Serial Number
    http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number
    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
    http://support.apple.com/kb/HT4061
     Cheers, Tom

  • How can I deactivate Adobe photoshop elements 9 when its un-installed?

    How can I deactivate Adobe photoshop elements 9 when its un-installed? I told my husband I had to get it off the third computer but he trying to help me did not deactivate it before he  un-installed it!!!!
    Now what? I am only using this on 2 computers and I'm told I am using it on a 3rd and I'm not.
    How can I fix this?
    It wont work on the 3rd one anyway because its so old and limited it crashes every time I try. But I need this on my 2 good computers.

    One way could be to reinstall it on the third computer and then deactivate it and uninstall it.
    If that doesn't work out or if you'd rather try this route it should work... contact Adobe Support either by chat or via phone and they should be able to help.  Chat is usually 24/7
    Here are some links to help make contact:
    http://www.adobe.com/support/chat/ivrchat.html
    http://www.adobe.com/support/download-install/supportinfo/

  • HT4623 how can i update my 1st gen ipad when its running at 5.1, i do the update scan and it just says ipad is up to date? why will it not update to 7.1???

    how can i update my 1st gen ipad when its running at 5.1, i do the update scan and it just says ipad is up to date? why will it not update to 7.1???

    iPad 1's can only be updated to IOS 5.1.1. The iPad 1 doesn't have the processing power to handle any higher.

  • How set grand total conditional format

    Hi guys,
    i ahve the follw problem:
    in my pivot table i want to set an image on Total's row. I'm able to set conditiona format on the single measures, but if i make a Total's row isn't impossible.
    There is a solution?
    Thank's a lot.
    Best regards
    Antonio

    Hi,
    check this link
    Conditional formtting in Grand total
    You can achive that by playing with XML in advanced tab.
    Regards,
    Sandeeep

  • How to get grand total in query designer

    Hi,
       Antbody know how to get the grand total after the  last row in query designer? I
    Thanks

    Hi,
    If we select the very first Characterstic in the rows section and set the Supress result rows as "never".
    That will show the overall result in the end of the report,
    In the query properties tab ,check for display properties of the result.That should be set to bottom.
    Hope this will work.
    Thanks
    Mukesh

  • How to show grand total at bottom in Pivot view?

    Hi All,
    How to show the report Grand total at bottom in pivot table?Plz help.
    Regards,
    Vaishnavi

    Hi ,
    Thanks for the reply but My report structure is like below:
    AAA,BBB,CCC,DDD,EEE,FFF,GGG,HHH & III my report columns.I have arranged those columns in measure & i have to calculate the variance against each column like below structure.As per the report here I have lto calculate variance for 4 columns like AAA,BBB,CCC,DDD & after that total of each..then again variance for EEE,FFF & their total.After that i have to show grand total of all from AAAA to FFF likewise for rest of fields.
    Measures           variance
    AAA(db column)          1
    BBB(db column)          2
    CCC(db column)     3      
    DDD(db column
    Total     6
    EEE(db column)     4      
    FFF(db column) 5
    Total     9
    Grand Total(AAA TO FFF)     15
    GGG(db column)     6     
    Total     6
    Grand Total(AAA TO GGG) 21
    III(db column)          
    Grand Total(AAA TO III)     
    How to do that?
    Regards,
    Sonal
    Edited by: Sonal on Jan 11, 2012 9:06 AM
    Edited by: Sonal on Jan 11, 2012 9:15 AM
    Edited by: Sonal on Jan 11, 2012 9:17 AM

  • Grand total of 2 measures in pivot table

    Hi,
    I have a requirement to show in a pivot table in which there are 2 measures - Male_count and Female_count. In the column I have Age_group such as 20-30,30-40 etc. In the row I have grade like assistant, manager etc. The requirement is to show column subtotals - total male count & total female count as well the total no. of employees (F+M) across all age groups. Using the column total I get only the sub total part. How can i get the total part?
    Look forward to your inputs.
    Regards,
    J

    Grade
    25 and under
    26-40
    40-55
    55 and above
    Subtotal
    Grand total
    F
    M
    F
    M
    F
    M
    F
    M
    F
    M
    Manager
    0
    1
    1
    1
    2
    2
    3
    4
    7
    8
    14
    Assistant
    0
    1
    1
    1
    2
    2
    3
    4
    7
    8
    14
    Developer
    0
    1
    1
    1
    2
    2
    3
    4
    7
    8
    14
    Using OBIEE pivot features I am able to obtain upto the Subtotal but I am not getting the Grand total.
    Hope this pivot gives an idea of what I am trying to implement.
    Thank you.

  • SSAS - Named Set Grand Total

    Hi,
    I have a Calculation which I need to compute on fly. Index is the measure which will be product of Base Measure A and B divided by Sum(Measure A of
    selected Dimensions as shown in grey). I created Named set (Descendants) but had some difficulty in getting Total Measure A categorized based on selection.
    Please help me with calculated measure MDX script for the same for below output. Also the calculation script should work if just Product and Year are alone selected.
    Thanks in advance,
    Paddy

    Hi,
    check this link
    Conditional formtting in Grand total
    You can achive that by playing with XML in advanced tab.
    Regards,
    Sandeeep

  • How to display grand total only on the last page of my report

    Hello
    I need to display the grand total amount of the invoice only on the last page of every report. If the report has 1 page then the grand total will be displayed on the 1st page. If the report has 2 pages then a subtotal will be displayed on the 1st page adding up all the amounts on page 1 only, and the grand total will be displayed on the 2nd page, adding up all the amounts of page 1 and 2. If the report has 3 pages then the a subtotal will be displayed on page 1 adding up all the amounts of page 1, and another subtotal on page 2 adding up all the amounts of page 2, and the grand total are displayed on page 3 adding up the amounts of every page.
    supplier amount
    xx 100
    yy 100
    subtotal 200
    page 1 of 2 --here i need to display only the total amounts of page 1
    supplier amount
    subtotal brought forward 200 --then i need to bring total of page 1 over to page 2
    qq 300
    zz 300
    total 800 --here i have reached the end of the report and  
    need to display the grand total
    page 2 of 2
    --Currently i am displaying this on my report
    supplier amount
    xx 100
    yy 100
    total 800 --this one gives the problem cause it displays the grand total
    ---------- on page 1 of 2 even before you can see the amounts on the
    next pages
    page 1 of 2
    supplier amount
    qq 300
    zz 300
    total 800

    put the grand total in a frame and set it to print on the last page of the enclosing object.

  • OBIEE 11g - How to display Grand Total in graphs

    hi ,
          I am using obiee 11.1.1.6 version . In a report I have a requirement to display the grand total (present in the table) to be shown in the graph also . Kindly help.
    Regards,
    Niv

    Hi Niv,
    One quick question here.How are you creating Grand Total?
    I have created using grand total by row summing and inserting that value in the Group By Function.
    Attached the screen shot for your reference.
    GT - Download - 4shared
    Mark if helps
    Thanks,

Maybe you are looking for