OBIEE11g Grand total not summing up correctly

hi all,
I have to display the grand total from the foll calculation : (total po numbers - total Recd on time PO numbers) / total PO numbers.
To get the total PO numbers - in the Edit formula - COUNT(PO numbers) and aggregation rule is set to SUM - this gives total correctly. eg : count of Total PO numbers - 15
To get the total Recd on time PO numbers-- In the edit formula fields - COUNT(Recd on time PO numbers) and aggregation rule is set to SUM . This also shows hte total correctly. Eg : Count of total Recd on time PO numbers 12
Now I do the division (Recd on time PO numbers/ total PO numbers ) Again in the Edit formula field SUM( COUNT(PO numbers))/ SUM(COUNT(Recd on time PO numbers)) - This gives incorrect results. output is 12.
12/15 should be .8 but it shows 12.
I am not sure why its not doing the calculation correctly.
Is there any way I can achieve this ?
Thanks
OBI_user

* 1.00 => http://gerardnico.com/wiki/dat/obiee/int

Similar Messages

  • Grand Total not displaying correctly on Column level security.

    Hi All,
    I have implemented the Column level security for three columns. But in dashboard report. The grand total is not displaying correctly. The grand total values are still displayed for the hidden columns.
    Is there any work around for this.
    The sample how my report looks like after column level security is.
    ColumnA Metric1 Metric2 Metrics3(to be hidden)
    A 100 200
    B 150 100
    GrandTotal 250 300 400( this includes the value of A = 300, B = 100).
    Regards,
    Bhavik

    Any pointers please.

  • Grand Total Not working on Materialized view based table ??

    Hi all,
    I have a complex report report by using sum and decode function. I precalculated my requirment in database and then create a materialized view based on my sql statement. I import this view in physical and BM model and its results very fine and efficient. But the problem create when I implement Grand Total on my report in table view it did'nt work means (Grand Total is not working on this MV based table) Any idea why ??
    any reply would by higly appriciated.
    Regards

    Hi Zishan,
    Check the Aggregation Rule and set it to sum in the table view.
    That is go to the "edit formula" tab of the column for which you want grand total and set that to sum.
    Hope this will help.
    Thanks
    Ashok

  • Subtotal / Grand total not working

    I am new to OBIEE & I could not get a simple 'Total By' or 'Grand Total' in Answers, Table view. The default aggregation rule in Administrator is selected as 'Sum'. When I click on the 'E' summation icon, nothing happens. What am I missing?
    Thanks,
    Dinesh.

    OK. I figured out what was wrong. I did not put the logical schema in a star schema approach (dimensions & facts). Once I did that, the sub-totals & grand totals started working.
    But I am greatly disappointed by this limitation. I just have a copy of my transactional database & I do not want to do star schema data modelling so that I can quickly start reporting. Is there any work-around for this?
    Thanks,
    Dinesh.

  • Grand Total not coming correctly in Tabular report

    Hi,
    When I extract in Answers the following information:
    Dimension 1
    Dimension 2
    Dimension 3
    Metric 1 (sum)(sum i defined in RPD)
    Metric 2 (count distinct)(count is defined in RPD)
    When doing this, I get the right result for every value of the dimension, but the total of the summation metric is not correct in tabular report
    Can someone help me, please?

    Hi,
    Try this........
    Add this <ReportAggregateEnabled>true</ReportAggregateEnabled> somewhere inside your <ServerInstance> and </ServerInstance>
    on instance config and restart the presentation services.
    Cheers,
    Aravind

  • PO Print SAP scripts:Grand total field -- High priority

    Hi experts
    In a PO print out, For example in one line item ,I have conditions printed as below
    Line iem 1.
    Gross price -- 1000
    VAT% 40
    Service Tax -
    123.36
    Net. Incl. Disc. 1163.36
    Line iem 2.
    Gross price -- 500
    VAT% 20
    Service Tax -
    61.8
    Net. Incl. Disc. 581.8
    Grand total----
    1500
    (desired tgrand total 1163.36+581.8)
    I have many line items like this and the total of all conditions at individual line item printed is correct.
    But at the bottom of the PO print, in the "Grand Total" the sum of only the Gross values is printed (Not the total of the Net. Incl. vlaues of line items).
    I got info from our developer that we are using SAP scripts (not smart forms).
    Please guide me if anyone has come accros a issue like this and got the answer. This is urgent.
    Thank you
    MRao

    To calculate grand totals and sub totals in sap scripts you have to use subroutines.
    Say if you have to add the unit price (KOMVD-KBERT) then in the main window where ever that value is picked write this routine
    /: DEFINE &TOT_PRICE&
    /: PERFORM F_GET_PRICE IN PROGRAM <subroutine prog name>
    /:USING &KOMVD-KBERT&
    /:CHANGING &TOT_PRICE&
    /:ENDPERFORM
    Then write the variable where ever you want it to be printed (mostly grant total will be in footer window)
    Then create subroutine pool program and you have to write the following code.
    FORM F_GET_PRICE tables int_cond structure itcsy
                                               outt_cond structure itcsy.
    data : value type kbert.
    statics   value1 type kbert.
    Read int_cond table index 1.
    value = int_cond-value.
    value1 = value1 + value.
    Read outt_cond table index 1.
    outt_cond-value = value1.
    Modify outt_cond index 1.
    ENDFORM.
    I have given a rough example,
    Note:Int_cond-value and outt_cond-value are characters.
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • Grand total for user

    Hello,
    Using obiee 11g,
    I am trying to build a report where i am trying do a count(distinct un),so i created a logical column for that and using that in my answers.
    The un i am showing for over months.IS works fine except that the grand total shows wrong.
    Grand total just adds the months total and not just do a count distinct for un.
    Aggregation rule is set as default.
    Would like to know how to do this?
    Thanks

    Hello,
    Its not working that way.
    Let me explain my case in detail.Problem is only in case of GRAND TOTAl.
    I am showing different cases,users and export for each month.
    So cases and users are used everywhere so i created a logical column in the RPD.
    count(distinct caseid) and count(distinct userid) as cid and uid and using that in my answers.
    export count since not used everywhere initially i took that column into my answers and then did a count(xportcount) in my answers
    so i have now
    cid-uid-count(xportcount) as 3 columns in my answers.But here the problem is my Grand total for uid comes wrong.
    Instead of doing a distinct users for all the months selected it just shows the grand total as sum for users
    Like jan-16 users feb -17 users then the total is 16+17 and not the distinct users from jan and feb.
    Grand total for case and exportcount is correct because i need a sum in that case so aggregation rule as deault works fine here.
    Here the problem which i feel is the count distinct which i am doing for caseid and uid and not exportcount.
    In my second scenario i did like created a separted column count(exportcount) in the rpd, then used that in my answers.
    But still no use
    In my third sceanario i created a count(distinct exportcount) in the rpd and using that in my answers
    now it feels it works fine.
    I wnat to know is this the way BI works.
    I am bit confused now.
    Is there a way other then this to do.
    I wanted first,second sceanario also to work but doesnt feel like working is there a way to make it work?
    Thanks

  • Grand Total in Dimension Hierarchy

    Hello,
    I still have problem to get the correct Grand total. The Dimension "Project" goes down to Level 4  (some projects only to Level 3). First I solved summing up a calculated measure  with Isleaf() or SUM (currentmember.children).
    Then the grand total always summed up all members and not those which where filtered in Excel. Here i found the current solution with VisualTotals().  But now i still the problem that when expanding sublevels in excel the Grand total is wrong
    again:
    CREATE MEMBER CURRENTCUBE.[Measures].[Prognosekosten] AS
    CASE
    WHEN IsLeaf([Projekt].[Projekt Hierarchie].currentmember)
    THEN ...calculation....
    WHEN [Projekt].[Projekt Hierarchie].currentmember is [Projekt].[Projekt Hierarchie].[ALL]
    THEN sum(except(  VisualTotals(axis(0)), [Projekt].[Projekt Hierarchie].[All]), [Measures].[Prognosekosten])
    ELSE Sum([Projekt].[Projekt Hierarchie].currentmember.children, [Measures].[Prognosekosten])
    END

    Hi Wolfgang,
    According to your description, you create calculated member to calculate the grand total, now the problem is that the grand total is incorrect when you filter the data in Microsoft Excel, right? In this case, please refer to the links below which might helpful
    for you.
    http://wildwordz.wordpress.com/2008/11/21/not-so-grand-totals-in-ssas-cubes/
    http://vnu10.blogspot.com/2011/01/mdx-grand-total-sub-total.html
    Regards,
    Charlie Liao
    TechNet Community Support

  • Average of the Grand Total in the Pivot Table

    all,
    I have calculated a Grand Total of sum 3 days trade in the pivot table using the Totals after in the Pivot table. I wanted to obtain the average of this Grand total. How can i achecive this in OBIEE 10g.? Please help urgent

    I did not understand your scenario exactly. Did you try using the 'newly calculated column' option from 'More options' of the particular column for which you want the average?.
    for example
    segment brand 1 value
    brand 2 value
    brand 3 value
    brand 4 value
    Avg brand per segment <value>
    notice that the 'Avg brand per segment' is a 'newly calculated item' where the average brand has been calculated. hope this helps.

  • ALV GRID TEXT in grand Total

    Hi friends,
        In ALV GRID I need to display text in total like grand Total not in subtotal.
    Please let me know the solution .
    Thanks in advance
    Rajendran

    Hi,
    R U using FM or Class.
    If you are using FM, Grand total cannot be produced. Only using classes we can display Grand Totals.
    Its my own experience.
    thanks

  • Grand total based on blocks ..??

    Hi all
    My req. is like, I have 3 blocks, each block I have sum and each block data has on different filters. Now I want put Grand total by summing of all blocks sum. I tried to create variable and putting all filter conditions (3 blocks conditions) in where clause. But it returns last block sum value only. Is there a way to achieve this grand total?
    Regards
    swetha

    Hi Swetha,
    Lets consider two objects in report.
    1. Year  (Available values : 2004,2005,2006)
    2. Sales Revenue
    Created three different variables in report for year.
    2004, 2005 , 2006
    And placed in different blocks.
    And then applied the Total sum of Sales revenue in the third block.Please  find attached snapshot for the same.
    Let me know if you have any issues.
    Regards,
    Pranay

  • Column Level Security - Grand Total row

    Hello All, I have a question about Column Level Security in a report where Grand Total is turned on. I am working inside of the OOTB Paint rpd and I am looking at the 'Finish Sales Trend for Current Year' report on the Brand Analysis dashboard page. Inside of the Admin Tool I added column level security on the Units presentation column in the Sales Measures table. I implemented security that will not allow the Central Region Manager group to view the Units column. When I access the report I noticed that the Grand Total row of the table is slightly skewed because the Units column is hidden. The Grand Total row is showing, however all the results are off by 1 cell.
    The forum is not allowing me to attach pictures to this post.
    Thanks for your help

    Hi User,
    It is an bug refer the metalink,
    Bug.9576412 - GRAND TOTAL NOT WORKING WHEN COLUMN LEVEL SECURITY IS IMPLEMENTED
    For eg:
    consieder a report with following columns,
    Year Product Measure1 Measure2
    In this if for measure1 the column level security is enabled (user1 who is not supposed to see the data).
    Then grand total value of measure2 will be in the grand total of measure1. (for user1)
    When column level security is enabled, that column will be pushed to the end of the table view.
    So that it is happening.
    By using case statements with groups or users we can get it work without enabling the column level security.
    Thanks,
    Vino

  • % is not getting correctly for the Grand Total Row in OBI10g

    Hi,We have a report in table view with the following structure.
    Name     Target     Act     %Ach
    ABC     100     50     50
    XYZ     200     10     5
    Total     300     60     27.5
    The value for the %Ach Total row should be 20% but in the report it is showing as 27.5.
    any one observed this ,how to correct this??
    Thanks

    Hi,
    To get grand total correctly..configure instanceconfig.xml and put..
    <ReportAggregateEnabled>true</ReportAggregateEnabled> between <serverinstace>..
    refer..
    http://obiee101.blogspot.com/2009/09/obiee-grand-totals-with-calculated.html
    Hope it solves ur problem

  • Column expression @ dasboard level not divideing by correct totals.

    Having a problem with a column measure at dashboard level. I read a post regarding using a union to fix… but wasn't sure that was the right approach for this issue.
    We have columns 1, 2, A, B, C, values for A and C are within different Fact Dimensions, but do relate back to the common dimensions
    Column A only shows values that are > 0, which limits back values on column C
    Colman B uses an expression of C/A.
    We have table view result totals on Row 1 and 2
    Columns A & C are correct at the total levels, however column B isn’t. it appears that the C value for the expression ‘A/C’ at the total levels is a sum of all the rows for that fact not JUST the rows that match the A > 0 filter.
    Expect this:
    A     B     C
    10     3     30
    20     3     60
    30     3     90
    But get this:
    A     B     C
    10     3     30
    20     3     60
    30     *4.8*     90
    When we change the filter to A >=0 we see extra values in the C column
    A     B     C
    *0*          *15*
    10     3     30
    20     2     60
    *0*          *40*
    30     4.8     145
    I was thinking that I need to modify the column expression with a case statement to limit back the values or something but wanted to put this out there in case I’m missing something or aggregate function I just don’t know about to get back the expected results…
    Running 7.9.6 on 10g
    This was the post i was referring to... OBIEE Answers - Divide two columns from the sum of a union
    Edited by: jeremy21 on Dec 9, 2010 1:45 PM

    I'm assuming like your problem is in you are using a union request for getting the grand total. But in Grand total you aeg etting the results wrong.
    IF yes, then your solution might be this,
    in column B in the grand total criteria, use the formula as,
    sum(C by)/sum(A by)
    and apply the filter as A>0

  • Grand total is not working...please help

    Hi, here is my code
    SORT S_ENDT BY LIFNR.
      LOOP AT S_ENDT WHERE BUDAT IN P_BUDAT.
        WRITE:          1  S_ENDT-BKTXT,
                        11 S_ENDT-BUKRS,
                        16 S_ENDT-LIFNR,
                        24 S_ENDT-NAME1,
                        49 S_ENDT-BLART,
                        53 S_ENDT-BELNR,
                        64 S_ENDT-AUGBL,
                        75 S_ENDT-AUGDT,
                        86 S_ENDT-BUDAT,
                        97 S_ENDT-WRBTR,
                        113 S_ENDT-WAERS,
                        117 S_ENDT-XBLNR,
                        130 S_ENDT-ZUONR.
        AT END OF BKTXT.                         " Subtotal by Draft #
          ULINE.
          SUM.
          WRITE: 20 'Total of draft', 37 S_ENDT-BKTXT, 97 S_ENDT-WRBTR.
        ENDAT.
        AT LAST.                                 " Grand total
          SUM.
          SKIP.
          WRITE: 20 'Grand Total', 97 S_ENDT-WRBTR.
        ENDAT.
        SKIP.
      ENDLOOP.
    EXIT.
    ENDIF.
    I am not getting the right total..I am getting it for all LIFNR and not the value in P_LIFNR only (which is what I want).
    please help
    thanks
    Brian

    Hi,
    try this coding.
    SORT S_ENDT BY LIFNR.
    *data : gt(16) type p decimals 2.*
    LOOP AT S_ENDT WHERE BUDAT IN P_BUDAT.
    *gt = gt + S_ENDT-WRBTR.*
    WRITE: 1 S_ENDT-BKTXT,
    11 S_ENDT-BUKRS,
    16 S_ENDT-LIFNR,
    24 S_ENDT-NAME1,
    49 S_ENDT-BLART,
    53 S_ENDT-BELNR,
    64 S_ENDT-AUGBL,
    75 S_ENDT-AUGDT,
    86 S_ENDT-BUDAT,
    97 S_ENDT-WRBTR,
    113 S_ENDT-WAERS,
    117 S_ENDT-XBLNR,
    130 S_ENDT-ZUONR.
    AT END OF BKTXT. " Subtotal by Draft #
    ULINE.
    SUM.
    WRITE: 20 'Total of draft', 37 S_ENDT-BKTXT, 97 *gt*.
    ENDAT.
    AT LAST. " Grand total
    SUM.
    SKIP.
    WRITE: 20 'Grand Total', 97 S_ENDT-WRBTR.
    ENDAT.
    SKIP.
    ENDLOOP.
    EXIT.
    ENDIF.
    U are using where condition in a Loop ,while executing last record may or may not get executed becoz of restiction.Better declare a variable and SUM under such scenarios.
    Regards,
    Ballack.
    Reward Points if helpful.

Maybe you are looking for

  • Opening multiple files with a single click?

    I have searched this topic here and online elsewhere, but haven't gotten an answer. I teach English, and I download multiple student documents to grade. I want to just open all of them and go through one at a time quickly... like a stack of papers on

  • How to keep MAPI properties when processing message data in RFC822 format in an Exchange Server 2007/2010 transport agent?

    We are developing an agent listening for the submit or endOfData event from the Exchange Server. Due to various reasons we need to convert the Exchange Mail internally to RFC822 format. So our MessageProcessor internally converts the message stream (

  • Namespace in XML Payload for HTTP Sender

    Hello, I have just configured my snychronous HTTP <--> RFC Scenario. When I want to test it with some XML payload in the HTTP testing tool I get a mapping runtime exception. After some investigation using the test tab in the message mapping I realize

  • BUG or ER - Editing the "Launch Settings - Java Options"

    Project Properties : Run/Debug/Profile : Edit : Launch Settings : Java Options I changed added -Djps.auth.debug=false -Djps.auth.debug.verbose=false Is it normal that I've to restart WebLogic to get the change applied ? I feel it should be applied th

  • Photoshop dissapears while in use

    For the past couple of days I've had this continuing problem with photoshop CS4. It opens correctly, works just fine for about 4 to 5 minutes, then without warning, and I reiterate without any warning from my computer, it completely dissapears and cl