Percentage Totals

Hi,
I have two reports in answers using the same data source. One of the reports is a summary at the parent level and the oher report is a detailed report at the lowest level. The percentage totals are different for both reports, e.g.
(Summary/Parent Level)
MARKET - 3.77%
(Detailed/Lowest Level)
MARKET - 3.35%
Is this a bug, I am using OBIEE 10.1.3.4.1.
Thanks

Hi
I have checked the underlying data on both reports and the values are the same. The problem appears with the grand total % on both reports, the rolled up summary report grand total is different to the detailed grand total.
Detailed - 3.35%
Summary - 3.77%
Can anyone help?
Thanks

Similar Messages

  • Modify percentage total in Blocklist ALV

    Hi Experts,
    I want to modify the percentage total in the grand totals line.
    for eg: 
    A        B       C
    5        10      50 %
    3         5       40%
    Total
    8        15      90%
    Instead I want it to display   : C  = ( (15 - 8) / 15 ) * 100  =  46%    .
    The below code is working fine in case of ALV grid.
    But how can I achieve the same in ALV BLOCKLIST .  Please help.
    FORM top_of_page .
    *get global reference.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
        E_GRID                           = lo_grid.
      ET_FIELDCAT_LVC                  =
    *get the subtotal
    call method lo_grid->get_subtotals
          importing
          ep_collect00 = it_00.
    change the data
      ASSIGN it_00->* TO <ft_tab>.
      LOOP AT <ft_tab> ASSIGNING <fs_tab>.
        ASSIGN COMPONENT 'VAR_PCT' OF STRUCTURE <fs_tab> TO <ff_field>.
        ASSIGN COMPONENT 'TOT_PLAN' OF STRUCTURE <fs_tab> to <fs_value1>.
        ASSIGN COMPONENT 'TOT_ACTUAL' OF STRUCTURE <fs_tab> to <fs_value2>.
        IF NOT <fs_value2> IS INITIAL.
        <ff_field> = ( ( <fs_value2> - <fs_value1> ) / <fs_value2> ) * 100.
        ENDIF.
      ENDLOOP.
    **Refresh the table display
    CALL METHOD lo_grid->refresh_table_display
    EXPORTING
          i_soft_refresh = 'X'.
    ENDFORM.
    Thanks,
    Kiran

    Hi Experts,
    I want to modify the percentage total in the grand totals line.
    for eg: 
    A        B       C
    5        10      50 %
    3         5       40%
    Total
    8        15      90%
    Instead I want it to display   : C  = ( (15 - 8) / 15 ) * 100  =  46%    .
    The below code is working fine in case of ALV grid.
    But how can I achieve the same in ALV BLOCKLIST .  Please help.
    FORM top_of_page .
    *get global reference.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
        E_GRID                           = lo_grid.
      ET_FIELDCAT_LVC                  =
    *get the subtotal
    call method lo_grid->get_subtotals
          importing
          ep_collect00 = it_00.
    change the data
      ASSIGN it_00->* TO <ft_tab>.
      LOOP AT <ft_tab> ASSIGNING <fs_tab>.
        ASSIGN COMPONENT 'VAR_PCT' OF STRUCTURE <fs_tab> TO <ff_field>.
        ASSIGN COMPONENT 'TOT_PLAN' OF STRUCTURE <fs_tab> to <fs_value1>.
        ASSIGN COMPONENT 'TOT_ACTUAL' OF STRUCTURE <fs_tab> to <fs_value2>.
        IF NOT <fs_value2> IS INITIAL.
        <ff_field> = ( ( <fs_value2> - <fs_value1> ) / <fs_value2> ) * 100.
        ENDIF.
      ENDLOOP.
    **Refresh the table display
    CALL METHOD lo_grid->refresh_table_display
    EXPORTING
          i_soft_refresh = 'X'.
    ENDFORM.
    Thanks,
    Kiran

  • Report Structure based CKF percentage total colume Error

    Dear Guru's
    In Report Created structure in Rows structure created formulas for sub total, CKF using in colume for finding percentage on sale,
    where formula used in structure, percentage also adding instead of average. Applied exception aggregation for plant but no result
    Example scenario : Zone1 created with selection of plant, division and region.same as a UCWL and internal total Zone1+UCWL used formula
    percentage CKF working as addition. Red colour highlighted are wrong totals
    Month
    Target
    Prorata
    Target
    Actuals
    Today
    Actual
    Todate
    %Age
    Achiev
    Target
    PPC % age
    PPC %Age
    Actual
    Rajasthan Zone1
    45,000
    36,000
    1,276
    27,473
    76
    67
    54
    UCWL
    25,000
    20,000
    952
    18,183
    91
    100
    76
    ZONE1+UCWL Total
    70,000
    56,000
    2,228
    45,656
    167
    167
    129
    Rajasthan Zone 2
    60,000
    48,000
    1,722
    34,746
    72
    65
    10
    Rajasthan Total
    1,30,000
    1,04,000
    3,950
    80,403
    240
    232
    140
    Gujarat-Sirohi
    1,12,000
    89,600
    2,555
    85,877
    96
    42
    Gujarat-Kalol
    60,000
    48,000
    1,644
    34,945
    73
    75
    30
    Gujarat- P Pur
    8,000
    6,400
    247
    6,035
    94
    100
    Gujarat Total
    1,80,000
    1,44,000
    4,447
    1,26,857
    263
    217
    30
    Treat this most urgent, report is pending due to percentage total.
    Regards
    ramesh

    I applied this:
    If([Process Category] InList("Process01") And IsNull([Date]);[Percentage];Max(Date)))
    [Percentage] = (Count([Date])/Count([Operation]))*100.
    but, this is not becoming true - even when Operation has one Date
    Showing result as:
    List#,Process01,Process02
    100, 11/12/2010, 11/15/2010
    But result should be
    100,50%,11/15/2010
    Can anyone help me achieve the right result!
    Thanks in advance.

  • Percentage Total/Subtotal in ALV Grid

    Dear All,
    I have to display an ALV report with percentage feilds. Everything is fine but the problem arises when the standard ALV sum functionality is used. It simply adds up all the percentage columns. Making do_sum = 'C' wont help either as it would simple give an average of all the percentage. My requirement is to show them through calculation. I have searched the web and saw some solutions with SUBTOTAL_TEXT nad some with OOP programming but i am not able to get this. Can anybody please help.
    <REMOVED BY MODERATOR>
    Thanks
    MV
    Edited by: Alvaro Tejada Galindo on Apr 21, 2008 4:24 PM

    hi manish,
    try this program.
    ALV Grid List with sub-totals
    REPORT z_demo_alv_sort.
    * This program lists orders (VBAK) with sort and sub-total for        *
    * 'sold-to-party' (KUNNR) and 'Sales organization' (VKORG)            *
    TABLES : vbak.
    TYPE-POOLS: slis.                      " ALV Global types
    SELECT-OPTIONS :
      s_vkorg FOR vbak-vkorg,              " Sales organization
      s_kunnr FOR vbak-kunnr,              " Sold-to party
      s_vbeln FOR vbak-vbeln.              " Sales document
    SELECTION-SCREEN :
      SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max.
    PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    DATA:
      BEGIN OF gt_vbak OCCURS 0,
        vkorg LIKE vbak-vkorg,             " Sales organization
        kunnr LIKE vbak-kunnr,             " Sold-to party
        vbeln LIKE vbak-vbeln,             " Sales document
        netwr LIKE vbak-netwr,             " Net Value of the Sales Order
        waerk LIKE vbak-waerk,             " Document currency
      END OF gt_vbak.
    INITIALIZATION.
      v_1 = 'Maximum of records to read'.
    START-OF-SELECTION.
      PERFORM f_read_data.
      PERFORM f_display_data.
    *      Form  f_read_data
    FORM f_read_data.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbak
               FROM vbak
                 UP TO p_max ROWS
              WHERE kunnr IN s_kunnr
                AND vbeln IN s_vbeln
                AND vkorg IN s_vkorg.
    ENDFORM.                               " F_READ_DATA
    *      Form  f_display_data
    FORM f_display_data.
      DEFINE m_fieldcat.
        add 1 to ls_fieldcat-col_pos.
        ls_fieldcat-fieldname   = &1.
        ls_fieldcat-ref_tabname = 'VBAK'.
        ls_fieldcat-do_sum      = &2.
        ls_fieldcat-cfieldname  = &3.
        append ls_fieldcat to lt_fieldcat.
      END-OF-DEFINITION.
      DEFINE m_sort.
        add 1 to ls_sort-spos.
        ls_sort-fieldname = &1.
        ls_sort-up        = 'X'.
        ls_sort-subtot    = &2.
        append ls_sort to lt_sort.
      END-OF-DEFINITION.
      DATA:
        ls_fieldcat TYPE slis_fieldcat_alv,
        lt_fieldcat TYPE slis_t_fieldcat_alv,
        lt_sort     TYPE slis_t_sortinfo_alv,
        ls_sort     TYPE slis_sortinfo_alv,
        ls_layout   TYPE slis_layout_alv.
      m_fieldcat 'VKORG' ''  ''.
      m_fieldcat 'KUNNR' ''  ''.
      m_fieldcat 'VBELN' ''  ''.
      m_fieldcat 'NETWR' 'X' 'WAERK'.
      m_fieldcat 'WAERK' ''  ''.
      m_sort 'VKORG' 'X'.                  " Sort by vkorg and subtotal
      m_sort 'KUNNR' 'X'.                  " Sort by kunnr and subtotal
      m_sort 'VBELN' ''.                   " Sort by vbeln
      ls_layout-cell_merge = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                is_layout   = ls_layout
                it_fieldcat = lt_fieldcat
                it_sort     = lt_sort
           TABLES
                t_outtab    = gt_vbak.
    ENDFORM.                               " F_DISPLAY_DATA
    ***************** END OF PROGRAM Z_DEMO_ALV_SORT **********************
    thanks
    karthik
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 21, 2008 4:50 PM

  • I am looking to see if anyone has found out how to do a sum or percentage totalling other columns or rows in Numbers?

    I am looking to see if anyone has figured out, from their iPad in Numbers how to calculate percentages or sums totalling other columns or rows?

    The issue is I bought the G4 from my buddy a few months ago... the machine has been abused to say the least, both inside and out. It is almost falling apart and has a BUNCH of programs loaded on it. I have always used a PC and am still familiarizing myself with Macs, I need to clean out the machine and dump all the excess applications and files that are causing problems.
    I think this is why I am having some trouble. Sometimes it works just fine, but I am only working with a few simultaneous tracks at a time. I am using the virtual instruments at this time but will be running guitars and bass through an external sound card soon. Similar to what you are doing it sounds like.
    Anyway, wanted to give you some more insight. Last night it seemed to work alright, I am not going to rush into buying anything until I absolutely have to but want to get some direction as far as what I should be looking at.
    Any further input is appreciated, thanks.

  • Displaying percentage total in ALV

    Hi,
    We have a requirement where we have to display a percentage value along with the subtotal and the totals.  We are doing the subtotal using the sort table LVC_S_SORT-SUBTOT.  Is there any way for displaying the percentage value in the same line item as that of the subtotal in the ALV.

    Hello Nanda
    Have you tried to fill the calculated percentage value into field LVC_S_SORT-<b>SELTEXT</b>? Perhaps it may work.
    Regards
      Uwe

  • Chart Cummulative Percentage Total?

    Post Author: Kanshouzhe
    CA Forum: Charts and Graphs
    I have seen one other post for one similar to this... but no answer. 
    I have created a Crystal 9 bar chart showing the percentage of days to resolve helpdesk tickets.  Nice... but I really want to create a running total (cummulative) of the percentages.  I have been able to create a formula for the cummulative total, but the chart excludes my formula:
    WhilePrintingRecords;Numbervar TotalPercent;TotalPercent := TotalPercent + (DistinctCount (, {@DaysOpen})/DistinctCount ())*100;
    I have tried creating various formulas, running total Summaries and combinations to no avail.  Could someone please help me skin this cat?  Thanks!

    paulclark wrote:
    I have a spreadsheet full of clients from different cities, and I'd like to create a chart (3D ideally) showing which cities have the most clients and which have the fewest.
    For example, 158 live in City A, 132 City B all the way down to 1 client in City V.
    Currently my spreadsheet has first, last, street, ZIP, city, state, misc info A, misc info B, misc info C Etc Etc.
    I may also like to create a chart showing totals of one of the Misc columns.
    Use a subsidiary table to collect the names of the cities in your list, and to count them. Chart the results. Here's an example.
    Cities are listed in column B, and may be in any order. Spelling counts, as the formula in column E identifies each city by the exact contents of the cell.
    Column E contains a formula that counts the number of different entries in column B, and marks the row containing the first occurrence of each with a serial number.
    The formula in E2 is
    =IF(COUNTIF($B$1:B2,B)=1,MAX($E$1:E1)+1,"")
    Fill down to the end of the column.
    Column A in the second table (For Graph) contains a formula that constructs a reference to the cell containing the first occurrence of each City name on the Main table, and copies that name to it's cell.
    The formula in A2 is
    =IFERROR(OFFSET(Main :: $A$1,MATCH(ROW()-1,Main :: $E,0)-1,1),"")
    Fill down to the end of the column.
    Column B contains a formula that counts all occurrences in column B of the Main table of the name in its row in column A.
    The formula in B2 is
    =IF(COUNTIF(Main :: B,A2)>0,COUNTIF(Main :: B,A2),"")
    Fill down to the end of the column.
    Regards,
    Barry
    PS: Descriptions of each function used, and further examples of their use can be found in the iWork Formulas and Functions User Guide. You can download the guide (and the Numbers '09 User Guide) through the Help menu in Numbers.
    B

  • Calculating Percent totals and Averages in SSRS

    Below is a report created using SSRS. I want to be able to calculate the percentage(%) total to add up to 100 % in the Total column. For some reason my averages are not working as you can see from the table. The idea is to calculate the averages of opportunities
    as well as Sold. But from my calculation, things are not adding up as I supposed. This report is not grouped by parent. How do I make this to work as it should? Thank you.
    (NB: Please zoom in to view the image)
    Zionlite

    Hi,
    According  to the description, I doubt you may manually add Total and Averages columns. Did you manually add Local and International or they were in a column group?
    You can use the following expression for the Opportunity Cost(averages) column in the total row:
    =Sum(Fields!opportunitycost.Value)/2
    How did you calculate the percentage column? If it is Sold value divided by Opportunity Cost value, use:
    =Sum(Fields!sold.Value)/Sum(Fields!opportunitycost.Value)
    Also try to define the scope in the expression and see if it make difference.
    If there is no progress, please capture the screenshot of your design tab.(Click on the report and capture the image of your report structure)
    Also, tell us the expression of the text box which in problem.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • How do I add a percentage

    All apps/programs are current OS 03/2015
    I imported an Excel spreadsheet to Numbers and lost the the formulas. The spreadsheet is a basic invoice - using dollar amounts:
    $ SUBTOTAL+ PERCENTAGE  =  $ TOTAL
    However, this is what I keep coming up with:
    Subtotal
    $ 85.00
    Credit Card Surcharge
    5%
    Total
    $ 85.05
    And when I enter the formula from the subtotal line, = G57 + 0.05:
    Subtotal
    $ 85.00
    Credit Card Surcharge
    8505%
    Total
    $ 170.05
    I magically had it  figured out in Excel. All I need it to do is add 5% to the subtotal...
    These programs boggle my mind. HELP!

    Hi Reetercat,
    Try this:
    B3 is my subtotal
    B4 is my surcharge. I formatted it as a percentage.
    B5 is where the formula is it is formatted as currency.
    quinn

  • Wrong TDS percentage is showing in TDS Certificate for partial payment

    The TDS percentage is not showing correctly in the TDS certificate for partly bill payment. While adjusting the advance payment with partly bill TDS amount is adjusted with the payment correctly but while calculating the percentage system is not calculating the advance part of the TDS and printing the wrong percentage in the TDS certificate. For example –
    The Total Bill amount is 10000/-
    Advance payment amount is 1000/-
    Assume TDS percentage is 10%
    Partial payment amount is 2000/-
    Description     Base Amount     TDS     Percentage
    Total Bill          10,000          1000     10%
    Advance          1,000          100     10%
    1st part Payment 2,000     190       9% (Wrong)
    Rs. 10 is adjusted with the TDS advance. So the TDS percentage should be 10%.
    In TDS cerficate the TDS percentage is printing wrongly. ERP Version we have 4.6C and CIN veriosn 40A.

    Hi
    check OSS Note No 1286144 my be it's helpful to you.
    satish

  • How to have total result of CKF use the formula of the CKF

    Hello experts, in a couple of BI reports we need that a Calculated Key Figure's total result use its same formula, instead of using the different calculations that are offered for totals. Let me explain:
    We have the following report (please ignore the "-"):
    Month----Entries---Exits----Percentage
    Jan--82--
    25%
    Feb--63--
    50%
    Mar--81--
    12.5%
    Result--226--
    Percentage is calculated as "Exits / Entries * 100", or "Exits %A Entries" (in the latter case, the default calculation of total is "average", while in the former it is "sum") and has an exception aggregation of "Average" with reference characteristic "Calendar Month". The problem we have run up with is that we want the result of Percentage calculated the same way, which is somewhat similar to an average. However, the result is always calculated based on the individual results. This gives us different numbers.
    Result Percentage = Total Exits %A Total Entries = (6 / 22) * 100 = 27.27% (CORRECT)
    Result Percentage = Average of individual Percentages = (25 + 50 + 12.5) / 3 = 29.16% (INCORRECT)
    I've tried different approaches, such as changing the reference characteristic and exception aggregation, selecting "average" as the method of calculating results or individual values, checking the "cummulated" and "Also apply to results" checkboxes, etc. but I was unsuccessful.
    Any thoughts?

    I'll post sample data and give a more thorough explanation of both queries (the one that works correctly and the one that does not). Both queries come from the same infocube:
    The correct query: it is a monthly report of entries vs exits for all store types but one (called "general" which should not be included here) in a base country (so if base country is, for example, France, then all stores in France). The query structure and sample data (ignore the "-"):
    January--February--
    Exits--EntriesPercentageExitsEntries--
    Percentage
    Store type 1--52025%918--
    50%
    Store type 2--41822.22%320--
    15%
    Store type 3--125621.43%1360--
    21.67%
    Total--2194
    22.34% -2598--
    25.51%
    This query is initially restricted by the base country and the store type "general" (so that it is not considered).
    The incorrect query: it is a monthly report of entries vs exits for store type "general" ONLY, outside the base country. The query structure and sample data (for ease of analyzing, I am repeating the data in the key figures, changing the store for the calendar month):
    Country 1--Country 2--
    Exits--EntriesPercentageExitsEntries--
    Percentage
    January--52025%918--
    50%
    February--41822.22%320--
    15%
    March--125621.43%1360--
    21.67%
    Total--2194
    30.33% -2598--
    28.89%
    This query is initially filtered by the store type "general" and the base country (so that it is not considered).
    As you can see, the percentage can change quite a lot. What confuses me is that in both cases I am using the same CKF "Percentage" with "Average" as exception aggregation and "Calendar Month" as Reference Characteristic.
    Percentage = Exits %A Entries
    When dealing with individual results, everything is ok. It is only when dealing with totals that the query miscalculates, calculating the totals as the "Percentage" average (the sum of individual values / the number of values).
    I modified the incorrect query to match the correct query, so that it looked like a copy of it, and the results were calculated correctly. Then, when I modified it again to return it to its original form, the results were calculated incorrectly again.
    Any suggestions? Do you think this could be a configuration issue or something like that?

  • How to hide total value in hierarchy column?

    Hi all,
    My requirment is like this:
    Department--------Sales--------Percentage(%)
    Total---------------600---------(NULL)
    A----------------100---------- 0.5
    B-----------------200-------(NULL)
    C----------------300--------0.33
    Department column is a hierarchy column.
    The expression for Percentage(%) column is:
    CASE WHEN Department ='A' THEN Filter(Sales Using Department='A' )/ Filter(Sales Using Department='B' ) WHEN Department ='C' THEN Filter(Sales Using Department='A' )/ Filter(Sales Using Department='C' ) END
    But the total for Percentage(%) is wrong value, so I want to hide it, So anyone know how to do it?
    Regards,
    Anne

    Hi,
    Not sure about the requirement.
    But didnt you try the column properties >> Hide check box
    Hope this helped/ answered
    Regards
    MuRam

  • Settlement Rule for Internal Order

    Hi All
    I have Maintained Settlement rule for Internal order as under
    CAT - FXA
    Settlement Receiver - Asset
    % - 100
    Settlement type - Full
    Now after settlement of above Order in KO88 . I want again use above internal order. Hence i have trying to put Settlement rule 50% for some anther asset but system gave me following error. Please guide on this issue.
    Total = 50.00%, ( Set.Type PER / Version / Actual settlement ), period 010/2011
    Message no. KD042
    Diagnosis
    You have entered distribution rules which settle 50.00% in total. This applies for settlement view ( Set.Type PER / Version / Actual settlement ) in period 010/2011.
    When checking the percentage total, the system found one of the following errors:
    The total percentage for the distribution rules is more than 100%
    The total percentage for the distribution rules is less than 100% and this is a rule for full settlement.
    The total percentage for the distribution rules is less than 100% and the 100% check is switched on in the settlement profile.

    Hi:
            Please refer to the contents of OSS Note 45612 - IM: pre-settlement does not work, or KD042... which states
    "Symptom
        1. If a preliminary settlement rule (for example, to cost center) is entered for individual items of capital investment measures with line item management, this rule is not considered during periodic settlement. There is no settlement to cost centers.
        2. If you enter a final settlement rule for individual line items of investment measures with line item management for a partial capitalization (that is, the percentage rate is less than 100%), then you receive the unjustified error message KD042 "Total percent = xx%".
    Additional key words
    KOB5, CJ70, CJ88, CJ8G, KO88, KO8G, preliminary settlement, partial settlement, partial capitalization
    Cause and prerequisites
        1. You did not enter the settlement type ACT in the preliminary settlement rule.
        You can check this in the Line Item Apportionment transaction by choosing the menu option "Goto" -> "Overview dist. rules" to display the distribution rule groups entered so far.
        The system displays rules which have no entry in the "SetTyp" field (settlement type, field name PERBZ).
        2. The check of the percentages is incorrect.
    Solution
        1. Install the following correction. Afterwards reverse the incorrect settlement, re-enter the preliminary settlement rule and settle again.
        2. Install the following correction. Afterwards, you can maintain the settlement rule for the partial settlement.
        Note: If you want to use a default settlement rule (maintaining the settlement rule from the master data maintenance transaction), then you are required to distribute the line items at 100%. In order to carry out a partial capitalization (settlement of less than 100%), you have to use menu path "Actual postings -> Period-end closing -> Settlement -> Line item "
    Regards

  • Intercompany Stock Transport- MIRO problem

    Dear Experts,
    Client requirement is that in intercompany stock transfer the value should post to the respective supplying palnt g/l account.
    To meet the requirement i have created customer master record for my 8 plants  with diff  account assignment group to post the value to diff g/L accounts in VKOA.And one vendor master for the supplying plant.
    In SD pricing we maintain Base Price+Profit Percentage = Total value( this value the client wants to post to the G/L account).
    The step  we are following
    1. create PO in ME21N - Pricing with the Base price only
    2. delivery in VL10G- Picking and PGI
    3. Issue Invoice from delivering plant(base price+profit percentage)
    4. migo wrt delivery
    5. Miro
    Now the problem is in 5th step i can not do wrt the supplying plant invoice.
    Is it the right process am i following??
    Regards
    Jyoti

    Dear Ravi,
    The process we are following
    1.create PO in ME21N - Pricing with the Base price only(in receiving plant)
    2. delivery in VL10G- Picking and PGI(in supplying plant)
    3. Issue Invoice from delivering plant(base price+profit percentage)( in supplying plant)
    4. migo wrt delivery(receiving plant)
    5. Miro(in receiving palnt)
    Requirement is we  need to treat this scenario as sales and purchase .
    Regards
    Jyoti
    Edited by: JYOTI PRAKASH KUNNAR on May 14, 2009 5:36 PM

  • Sum Analytic Function

    Hi,
    I have a query in SQL that generates percentage totals. I am having trouble replicating this code in BMM layer of the repository. I have created a new logical column, the sql query is below:
    SELECT id, seq, asset_cost ,
    CASE
    WHEN asset_cost > 0
    THEN ROUND(RATIO_TO_REPORT (
    CASE
    WHEN asset_cost > 0
    THEN SUM (asset_cost)
    END) OVER (partition BY id)*100)
    END total
    FROM test
    GROUP BY id, seq asset_cost
    Can anyone help with replicating the above expression in the logical layer column. ]
    *** how can i use the Ratio_to_report function in obiee
    The above link shows a workaround
    Are there any alternatives to 'RATIO_TO_REPORT' in OBIEE functions?
    Thanks
    Edited by: sliderrules on 16-May-2012 04:23

    Hi,
    I have just been through the Oracle documentation to understand that 'RATIO_TO_REPORT' would compute the ratio of a value to sum of values. For your requirement, what you could do is
    1. Bring in the measure 'asset_cost' into the BMM with aggregation rule as sum. (I think you could include a condition here itself as asset_cost >0)
    2. Create another measure with the 'Derived from another logical column as source' option chosen and the function as
    EVALUATE('RATIO_TO_REPORT(%1) OVER (PARTITION BY %2)' AS DOUBLE, asset_cost,id)
    The above function does the following steps:
    EVALUATE will send the analytic function to the database.
    SUM(asset_cost) would be the first parameter
    id would be the second parameter.
    I might not be pretty good with the syntax here, but hope you could get it while implementing.
    Hope this helps.
    Thank you,
    Dhar

Maybe you are looking for

  • How to get iPhone working

    My Dad gave me his iPhone. He activated it with AT&T, used to for a month or so. Once he realized he did not want or need all the fancy features of the iPhone, he deactivated it and went back to a regular AT&T phone. I connected it to my Mac. In iTun

  • Changing VA22 using 'BAPI_CUSTOMERQUOTATION_CHANGE'

    Hi all, I have to change the VA22 transaction using afore said BAPI, a quotation is created with a line item using VA21 transaction,so now i have to reject this line item.this line item can be rejected by adding the reason code as 23,thats all the li

  • Installing ubuntu 13.04 on mac?

    I installed windows 8 (64bit) beside OSX (10.8.3) thorugh BootCamp 5. i want to install ubuntu 13.04 beside my OSX and Windows. Can anyone give me some help how can i do it?

  • How to show artists on a track, album view - itunes 11

    just got itunes 11 and i have my library in album view, when i click on an album a list of songs drops down and underneath each track the artists on the track are displayed; but not for every album. i cant seem to find why but sometimes the artists j

  • How to configure a new product type with a new operation deal?

    hello, All, I wonder to know if somebody knows, how to configure a new product type with a new operation deal with the amortization divided?, I mean in the SPRO, portfolio of securities with the characteristics mentioned. Hope you help me. Bests rega