Table Totals

My report has the ff columns: Opportunity Id , Opportunity Team Member , Opportunity Revenue
Ex:
Opty ABC | Team 1 | 10,000
Opty ABC | Team 2 | 10,000
Grand Total 20,000
The Opportunity Revenue is related only to Opportunity level but the amount repeats if opportunity has multiple team members. When I show Table Totals or show the data in pivot table, the revenue is multiplied by the number of team members. Is it possible to show the actual amount (in the example above, Total should show 10,000) ?
Thanks!

MK, thanks for the reply. However, I am getting weird results. After I changed formula of column to Sum( Revenue by Opty Id), I am now getting:
Opty ABC | Team 1 | 20,000
Opty ABC | Team 2 | 20,000
Grand Total 20,000
Each team row should still show 10,000, not 20,000.

Similar Messages

  • Pivot table total on a computed column not showing when using a filter

    I have this strange issue. I will try to explain.
    I have three columns in my report - Delivered Qty, Opened Quantity, and the third one is computed that is (Delivered Qty - Opened Qty). The data is displayed in a table by quarter. So basically I have Quarter, Delivered Qty, Open Qty, Not Opened Qty. I also have the total row. A pie chart shows the opened vs. un-opened quantities. It all works fine.
    The issue is when I add a prompt and the corresponding filter, the total for the computed field is blank. This happens whether it is pivot table or a regular table. That causes the pie chart to show 100% for the Opened qty.
    When I remove the filter, it works again. I can see the total for the computed field and the pie chart looks great.
    Can anyone please help me? I have a number of hours trying to play around with this and also looked in the forum to see if any one might have already discussed similar issue in the past. I could not find any.
    Thanks.

    I found the issue with my table total not showing up. Basically the new materialized view had its own data table alias. However, in the filter I was using date columns from different date table alias (copy and paste problem). As soon as I changed to the right date columns from the associated alias table, the row total showed up.
    Thanks anyways for your support.

  • Count Distinct in Pivot table totals? OBIEE 11.1.1.5

    Hi,
    I have got a column that counts distinct customers per each month of the year and at the end of the analysis, it should show distinct customer count of the year as TOTAL. How can it be achieved? Is it possible to customize pivot table totals?
    Example:
    Month Customers
    Jan          10
    Feb          20 (10 new customers)
    Mar           15  (5 new customers)
    TOTAL: 25 (distinct values --> 10+10+5)Thanks in advance.

    Hi MK,
    I tried it already and it does not work. It takes the distinct value of each month, which is month's count distinct and then it sums. So the total is 45 (10+20+15) not 25.
    Thanks for you reply.

  • Advance table Total option

    Hi all,
    In Advance Table column values are comma separated (These are handled in query)
    When I enabled the totaling on this column, the total value is not comma separated.
    There is any way to achieve this.
    the scenario is col1 col2 col3
    1,200
    2,400
    total 3600
    how to get the total value as comma seperated.
    it is very urgent.
    thanks in advance
    regards

    You are showing the values as comma separated strings in a column. This is what I currently understand from your description. In that case the standard totalvalue is not going to work. You have to manually loop through the VO rows and calculate the total youself. How would you like to show the total value is a decision you can take. As I understand totalValue would not show strings, so you would not be able to set it.

  • Newb question - table total coming out double

    Hi, I'm a newb to BI Publisher, and running in to an issue I can't figure out. I'm trying to output a table that shows # of hours worked by employee for a given month, along with their department, etc. The table part comes out perfectly - works just as I want it to.
    But now I want to add a simple total to the hours worked. Somehow the number keeps coming out exactly double of what it should be. Any ideas?
    p.s. using MS Word template builder. Also using OBIEE answers query as a data source, which explains all the ugly underscore characters in the field names.
    p.p.s. I kinda suspect this is because I'm using two similar queries to produce info - the first query groups rows by a different category, and the one below does it by employee. Is that why numbers are doubling? If so, how can I basically say "give me the sum for the _Quantity_ field - but ONLY for the LABORTRANS rows?
    Thanks!
    Scott
    Table code:
    <?for-each:LABORTRANS_ROW?><?_Employee_._Incurred_by_Person_Name_?><?_Organizations_._Expenditure_Department_Number_?><?_Fact_-_Project_Cost_._Quantity_?><?end for-each?>
    Total code:
    <?sum(_Fact_-_Project_Cost_._Quantity_)?>

    That works perfectly - thanks a million!!!!
    Quick follow up question - do you know where in the documentation I could find this? I tried to quickly locate it and couldn't...and would prefer not to have to bother everyone on the forums.
    Thanks again for the help!\
    Scott

  • Pivot Table Total Value

    In OBIEE 11.1.1.6 version, I drag one brand column, one year column and two measure column named 'Revenue','Quantity'
    For one requirement:
    ------------------------------------2008--------2009--------2010
    Brand
    BizTech--- -----Quantity-----1000--------1001---------1002
    -------------------Revenue-----2000--------2001---------2002
    FunPod--- -----Quantity-----1000--------1001---------1002
    -------------------Revenue-----2000--------2001---------2002
    HomeView ---Quantity-----1000--------1001---------1002
    -------------------Revenue-----1000--------1001---------1002
    Quantity Total----------------3000---------3003---------3006
    (Customers do not want to display Revenue Total, Is it possible to implement it? )
    Thanks

    Hi,
    If I make use of New Calculated Item and group method, I can not select measure name , only choose dimension column,
    Addtionally, 'Revenue' and 'Quantity' is measure column name which will be dragged into the row area.
    If I add new group, the 'Revenue' and 'Quantity' will be also existed.

  • Query to get rows betwen x and y + table total row count

    Hi,
    I try get rows between e.g. 100 and 150 when I sort by some column
    My query is now like this
    SELECT  *
    FROM
      (SELECT a.*,
        row_number() OVER (ORDER BY OWNER ASC) rn,
        COUNT(1) over() mrn
      FROM (SELECT * FROM all_objects) a
    WHERE ROWNUM BETWEEN least(100,mrn) AND 150It is not very fast if I run that kind select from big table
    Any tips to optimize this query?
    Regards,
    Jari

    Hi,
    I'm so bad with SQL :(
    Here is sample where I need that kind query.
    http://actionet.homelinux.net/htmldb/f?p=100:504
    It looks standard Apex report but it is not.
    It is just test to use query to output html using htp package
    I send parameter start row, max rows, column I like order by.
    Now I do query for cursor
        /* Report query */
        l_sql := '
          SELECT * FROM(
            SELECT a.*, row_number() OVER (ORDER BY '
            || l_sort_col
            || ' '
            || l_sort_ord
            || ') rn, COUNT(1) over() mrn
            FROM(' || l_sql || ') a
          ) WHERE rn BETWEEN LEAST(' || l_start_row || ',mrn) AND ' || l_last_row
        ;Then I loop cursor and output html.
    You can order report by click heading and there is that pagination
    I did not know that I could find examples by "pagination query" =), thanks for that tip for both of you.
    I know Apex have reports ,
    but I need have features that Apex templates can not provide at least yet.
    So I have study that generating html tables using custom package instead Apex report should be best approach to get layouts I need.
    Regards,
    Jari
    Edited by: jarola on Jan 21, 2011 10:38 PM

  • Obiee spurious pivot table non-total figures

    Hi,
    My problem is that a pivot table in conjunction with non-hierarchical columns presents figures where no figures exist at data level rather than pivot table totals.
    OBIEE version 11.1.1.7.0
    Essbase version 11.1.2.3
    I have an Essbase data source for my subject area.
    I have a column (dimension) 'Account' which has the structure (in Essbase) Account is parent of 'Total Income and Expenditure' is parent of 'Total Income' and 'Total Expenditure'. I filter to only include 'Total Income' and 'Total Expenditure' in my query.
    I have a column (dimension) 'Entity' which has a number of tiers of which I am including in the query only the first level of children of Entity.
    My problem is that in a number of rows I get figures against 'Total Income' where when I check against the source this should be null, all of the way down the hierarchy - i.e. there are no figures at all so this cannot be an aggregation issue.
    I am not doing anything exotic on the business layer in terms of alternative aggregation sources.
    If I use a hierarchical column I get the correct numbers, but I do not want to in this case.
    Any input appreciated.
    thanks,
    Robert.

    Use expression sum(Marks by Name) in the FX of mark measure in the criteria tab and set the property to suppress the values for measure column.
    appreciate if you mark as correct.
    Regards,
    Kashi

  • Can table wizard add table column totals record

    I am working on the release of an Oracle CGBU product - NextGen Integrity. This is a key prototype for rolling BIP across CGBU
    We are using BI Publisher 10.1.3.4.
    To add subtotals to a table I added an extra row to the table and used xsl in a template property. Can someone confirm there is no way to calculate table totals using the table wizard.

    I now see I can double click on existing field to add aggregation. I thought this would have been part of the insert table wizard. I am expecting customers to write there own reports so hope to limit their need for writing xsl so this is fine.
    Thanks for your response.

  • Need to validate a existing field in the table maitainence Generator events

    Hi EXPERTS,
    There is one Z-table and for that TMG also there. There is custom transaction for sm30. Now I need to validate one field BNAME for new entries I have created event -05(creating new entry) it is validating correctly. But now another requirement is if user also wants to change the existing values for the field BNAME it should also be validated needs to populate error mesg and does not allow to save it. I used event 01(before saving data) 07 ( before correcting the contents of selected field) 18 ( after checking whether data has changed)but not working any of these events. Please suggest me which event is  suitable for my requirement. Orelse I need to put the code in the  flow logic of the screen under PAI module I think this is not a good practice.
    Code:
    FORM data_changed.
      DATA     : l_bname TYPE xubname.
      CONSTANTS: c_mesg      TYPE char16   VALUE 'Invalid SAP User',
                 c_error     TYPE char1    VALUE 'E'.
    * Validation on BNAME field
      IF zps_capex_appr-bname IS NOT INITIAL.
        SELECT SINGLE bname FROM usr01 INTO l_bname
               WHERE  bname = zps_capex_appr-bname.
        IF sy-subrc NE 0.
          MESSAGE c_mesg TYPE c_error.
        ENDIF.
      ENDIF.
    ENDFORM.                              "DATA_CHANGED
    Please suggest me how to proceed.
    <Added code tags>
    << Priority normalized >>
    Awaiting for your replyu2026
    Thanks in Advance.. 
    Edited by: Rob Burbank on Mar 2, 2012 9:23 AM

    Hello Sreekanth,
    How are you populateing the field zps_capex_appr-bname ? I'm pretty much sure that this is not getting populated at runtime.(put a break-point & check)
    In order to access the data in the TMG [Event01|http://help.sap.com/saphelp_nw04s/helpdata/en/91/ca9f0ba9d111d1a5690000e82deaaa/content.htm], we have to use the TMG system tables - TOTAL & EXTRACT.
    If your validation of BNAME fails, remember to:
    1. Set SY-SUBRC to a non-zero value,
    2. Set the flag VIM_ABORT_SAVING to 'X'.
    BR,
    Suhas

  • ADOBE: How to print a table only on uneven pages and a text on the back?

    Hi, I am looking for a clear document on how to use pagination and the Odd and Even pages.
    We need to print a table over several pages, but the table should only appear on Odd pages. The even pages should be skipped. On the even (back) pages we need to print "Terms and Conditions". Is that possible? Can it be done without scripting?
    We are using ADOBE version 8.1
    In the file properties, double sided is switched on, and version set to 8.1 and higher.
    I created two Master pages, a FrontPage with ContentArea1and a BackPage with ContentArea2.
    FrontPage is used for uneven pages, BackPage is used for the even pages. The masterpages are printed correctly (alternating properly).
    One page was created for the table, totals etc.:
    ITEMS: contains item data (table with header and footer). Place is "On Odd Page". After "Goto page BackPage", so there is always one page with the text. And if the table needs to be paginated it goes to BackPage with overflow leader "Conditions".
    What should happen is that on the front pages the item table is printed. If there are too many lines then it should continue on page number 3 then 5 etc. All the even pages should display text only.
    What actually happens is that the item table also gets printed in the content area for the Condition text...
    The best I could achieve is to decrease the contenta area of the back page. To force pagination. But still it prints one table record in the (very small) content area of the back page before paginating to the next page (front page again). If it only would not do that, it would be fine.
    Cheers,
    Edwin.

    Fixed it... After a lot of creating, deleting, playing around with pagination and the inevitable cursing...
    I have created 5 pages:
    1. FirstPage
         - Odd/Even: Odd (Front) Pages
         - Placement: First page (In page set)
    2. FrontPage (For Odd pages)
         - Odd/Even: Odd/Front Pages
         - Placement: Rest of Pages
    3. BackPage (For Even pages)
         - Odd/Even: Even (Back) Pages
         - Placement: Rest of Pages
    4. LastPage
         - Odd/Even: No Odd/Even Restrictions
         - Placement: Last page (In page set)
    5. DummyPage
         - Odd/Even: Blank pages
    The 'Terms and conditions' are located on the BackPage and LastPage (as a text).
    The table that is printed is (of course) located on a normal page (flowed subform).
    Pagination tab: Placement = Following previous, and After = "Continue filling parent". No overflow... Basically, it's all default.
    The table lines will now start on the first page and if there are more lines than can be printed on this page, it will continue in the next content area. That will be on the FrontPage.
    The trick is that each master page must have a content area (mandatory). Except for Blank pages, but these cannot be used... Blank pages would only be used once, after the first page.
    What I discovered is that you can drag a content area away from the Master page and attach it to a different master page.
    Logically, if there is no content area on a page, then data cannot be printed there. So, I created a Dummypage. On this page I dumped the content areas from the LastPage and the BackPage. As a result, content cannot be printed anymore on the back of pages. Only the standard text (a text field) is printed there. When the data from the table is overflowing, it will automatically overflow from the FirstPage to the next content area. Which is located on the FrontPages only.
    The DummyPage is NOT used anywhere.
    The result is that the records can only be printed on the content areas that exist on the First and Front pages. The back pages are now skipped.
    Duplex printing is now working correctly, and the text is printed on the back of all the pages.
    Cheers,
    Edwin.

  • How to use the table maintenance events for validating the input entries..?

    Hi,
    I have created a Z table with 6 fields in which all are KEY fields. All are of CHAR type. I have created the Table Maintenance Generator for the same. While maintaining the entries in the table, even though I maintain a blank entry for a field it is saving the entry. But, I don't want that way. All the fields are mandatory in my table. One should enter all the fields. Otherwise it should not allow to save the entry. So, I think it can be done using the Table Maintenance Events. can someone tell me how to use the Table Maintenance Events. and which event to use for my reuqirement and what is the logic to be written.
    Or Is there any other way to solve my problem.
    Please share your inputs. Thanks in advance.
    Best regards,
    paddu.

    In the table maintenance generator, Environment --> Modifications --> Events then a screen will be appear here,we need to create the Events.In the EVENTS screen, press new Entries, there give 01(Before Saving the Data in the Database) and give a name(This will become a PERFORM), then click the Editor pushbutton, this will be there at the right side of the entry, then a popup will be appear, you can create an include program, there inside of the include program write ur code.
    Here is documentation for Event 01(Before Saving the Data in the Database )
    Event 01: Before Saving the Data in the Database
    Use
    This event occurs before new, changed or deleted entries are written to the database. Other activities can be performed, for example:
    hidden entry processing
    fill hidden fields
    flag data to be written to hidden tables after the database change.
    To have the changes saved by the central maintenance dialog routines, SY-SUBRC must be set to 0 at the end of the routine.
    Realization
    This event has no standard routine. The following global data is available for the realization of the user routine:
    internal table TOTAL
    field symbols
    field symbols <ACTION> and <ACTION_TEXT>
    <STATUS>-UPD_FLAG
    If internal table data are to be changed before saving, t he changes should be made in both the internal table TOTAL and in the internal table EXTRACT.
    FORM abc.
    DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found
    LOOP AT TOTAL.
    IF <ACTION> = desired constant.
    READ TABLE EXTRACT WITH KEY <vim_xtotal_key>.
    IF SY-SUBRC EQ 0.
    F_INDEX = SY-TABIX.
    ELSE.
    CLEAR F_INDX.
    ENDIF.
    (make desired changes to the line TOTAL)
    MODIFY TOTAL.
    CHECK F_INDX GT 0.
    EXTRACT = TOTAL.
    MODIFY EXTRACT INDEX F_INDX.
    ENDIF.
    ENDLOOP.
    SY-SUBRC = 0.
    ENDFORM.
    Regards,
    Joy.

  • Check Table data in Maintenance View event

    Dear all, i created a maintenance view for a customer table and a must carry out a validation over the whole table when any record is created, modified or deleted.
    The table has a column with percentages and after save a modification I have to verify that the values in this columns make 1 (100%).
    For this, I created a routine in the event 01 (Before Saving the Data in the Database  ) of the maintenance view, but I can find the way to read all the records of the table.
    I tried with the tables TOTAL and EXTRACT, but these have '#####' as values in the percentages column.
    If someone need further information please let me know.
    I´d be grateful if someone lead me to a solution.
    Thanks in advance.
    Mariano.

    Hi, thx Madan Kochana .
    I prefer do not modify the screen.
    The column is defined as dec 3,2 and is filled with values like 0.25 or 0.10 in the view.
    Thanks for your help; i'll appreciate any kind of solution.
    Mariano.

  • SELECT-OPTIONS in table maintenance generator screen

    Hi
    Is it possible to create SELECT-OPTIONS in table maintenance screen?
    My requirement is to allow the user to enter single Company code and Range of G/L Accounts in the Table Maintenance input screen. Please let me know.
    Thanks
    Abdul Hakim

    Hello Tamas,
    As a matter of fact we can add a custom selection-screen to the TMG screen & without manually modifying the TMG
    You can do so by using the [Event AA: Instead of the Standard Data Read Routine|http://help.sap.com/saphelp_nw04s/helpdata/en/91/ca9f56a9d111d1a5690000e82deaaa/content.htm].
    Please check the code snippet:
    DATA: gv_fldate TYPE s_date.
    * User-defined selection-screen
    SELECTION-SCREEN: BEGIN OF SCREEN 9000.
    PARAMETERS:     p_carrid TYPE s_carr_id OBLIGATORY.
    SELECT-OPTIONS: s_fldate FOR gv_fldate OBLIGATORY.
    SELECTION-SCREEN: END OF SCREEN 9000.
    *&      Form  sub_yvsflight_event_aa
    *       text
    FORM sub_yvsflight_event_aa.
      DATA: ls_temp_data TYPE yvsflight,
            lt_temp_data TYPE STANDARD TABLE OF yvsflight.
    * Call the user-defined selection-screen
      CALL SELECTION-SCREEN 9000 STARTING AT 25 10.
    * Populate the int. table TOTAL
      PERFORM get_data_yvsflight.
    * Delete the records which are not required
      LOOP AT total.
        ls_temp_data = <vim_total_struc>. "Copy to local struct.
        IF ls_temp_data-carrid NE p_carrid OR
           ls_temp_data-fldate NOT IN s_fldate.
          DELETE total. "Remove the record from the TOTAL
        ENDIF.
      ENDLOOP.
    ENDFORM.                    "sub_yvsflight_event_aa
    BR,
    Suhas

  • Deleting Entries in a Z table maintained in SM30

    Hi Experts,
    I am maintaining a table in SM30.
    I need to put a restriction for user if a certain field ( say date ) is not zero
    he should not be able to delete that.else he can delete that.
    This all I need from teh main screen ..user shud not go to the record by record screen.
    Please help me.
    contact me at varun.abap on rediff as well.
    Thanks,
    Varun.

    Hi I just tried a code:
    I attached a subroutine in the event 3 of the TMG.
    I had 3 fields in my table
    MANDT (Length 3)
    NAME   (Length 100)
    FLAG    (Length 1)
    In the field "<status>-cur_line" you will get the user selected Line.
    My TMG was of single screen.
    FORM ztest1.
      DATA: l_index TYPE sytabix,          "Index to note the lines found
            l_tabix TYPE sytabix.          "Index of total table
      FIELD-SYMBOLS: <record>  TYPE ANY.   "Work area for table
      break sbhadur.
    * Modify changed by and changed on fields for any updates
      READ TABLE total ASSIGNING <record>
      INDEX <status>-cur_line.
      IF sy-subrc = 0.
    *   Assign the table header line to the work area
    * I have a FLAG field like your date field
        IF <record>+103(1) = 'X'.   " <-- Your Condition here
          MESSAGE e001(00) "DISPLAY LIKE 'I'
          WITH 'Checked data cannot be deleted'.
        ENDIF.
      ENDIF.
    * To have the changes saved by the central maintenance dialog routines,
    * SY-SUBRC must be set to 0 at the end of the routine
      sy-subrc = 0.
    ENDFORM. 
    Hope this helps.

Maybe you are looking for

  • Update Nulls With Value from Another Row

    Good Morning, I word for a car manufacturer. I am pulling an excel spreadsheet into SQL 2012.The spreadsheet lists one line for each dealer, each carline. So if there are 6 carlines and 65 dealers there will be 390 lines. when the spreadsheet gets to

  • Transfer Data from a Query to DSO

    Hello, I have an APD to transfer data from a query to a 'Direct update DSO'. The execution of this APD times out since the volume of query data is very high. Is there an alternate way of transfering data from a query to DSO? Please suggest. Thanks!

  • Problems with select statement

    Hi, For some reason I cannot find the solution for the following problem. I have an internal table. Now I like to make an select over a database table, while only rows should be selected, where the key field occurs in the internal table and in case o

  • Never ending automatic repair loop

    I'm working on a client's HP ENVY TouchSmart 4-1215dx Ultrabook that is stuck in a never-ending automatic repair loop. I have done a system diag...all passed . Tried multiple ways to get into BIOS to do a repair from a USB stick made from another OS

  • Final Cut Express HD and the Macbook Pro

    I just purchased a Macbook Pro along with final cut express HD. After purchase I read that FCE HD won't work with the macbook pro. I was hoping to see if anyone knew if they were coming out with an upgrade to the universal version like they are with