Grand Total Issue - Weighted Sum

Here's the Issue
3 Columns
Hours Worked, Pay Amount, and Pay Rate
20 10 $.50
Pay Rate is a calculated column from "Hours Worked" and "Pay Amount"
I'm trying to add the grand total to my work sheet for "Pay Rate"
Discoverer simply adds all of the "Pay Rate" values.
I would like the Pay Rate grand total to be "Pay Amount Grand Total" / "Hours Worked Grand Total"
Is this even possible?

If you're using 10g, take a look at your aggregation options (tools/aggregation). Since Pay Rate is a calculated column, there should be an option that forces it to do a calculation on the totals (rather than a total of the calculation). If you're on an older version, you may need to look into the aggregation-related registry settings/preferences. Also make sure you're doing a sum (not a cell sum).
That behavior seems to change from version to version but if you search on MetaLink you should find some version-specific help.

Similar Messages

  • Grand Totals issue

    Hi Gurus,
    In My RPD we are using "Count Distinct" Aggregate rule for Facts and in Reports I am using Table level "Grand Total" Enable with "Report Based Total(When applicable)"option also checked...It is working fine for some days..but suddenly it is showing Different Grand totals..and as work around for this I changed Aggregation rule at report level to "Sum"...now it is showing correct values..so my question is Is my work around is correct or not because we used "Count Distinct" as aggregation Rule in RPD and in report level we changed it as "sum"...and also I observed Physical sql when using Grand totals it is summing the values like...sum(Count(distinct fact1))....and when i changed aggregation to "sum" at report level also it is summing the values like..sum(count(distinct fact1)..so please suggest, Is my work around is correct or am I doing any mistake like changing aggregation at report level to get grand total correct?
    I am using 10.1.3.4.1...
    I also studied in Release notes as it is a bug in this version for this they suggested work around to use<ReportAggregateEnabled>true</ReportAggregateEnabled> in <serverInstance>tag of instanceconfig file this also not working in my environment...

    Hi,
    I dont' think this is possible for the same measure in a pivot table. Maybe you can use this workaround:
    - create an extra column for the measure with a calculation like:
    CASE WHEN "Base Facts"."1- Revenue" = MAX("Base Facts"."1- Revenue" BY "Products"."P3 LOB") THEN MAX("Base Facts"."1- Revenue" BY "Products"."P3 LOB") ELSE 0 END
    In this example I use the Revenue as the measure. I use the MAX BY function to calculate the MAX value per Product Lob (subtotals per Product Lob in my example). If the max value per product lob is equal to the revenue then the Max value is displayed and otherwise o.
    Add this extra measure to the pivot table and add the grand total with aggregate rule = SUM. If you don't want to see the grand total for the original measure select None instead.
    Hope this helps. I have a screenshot as well but then I need your emailadress.
    Kind regards,
    Quinten

  • Grand Total issue, it won't display...

    Hi,
    Discoverer Desktop 4.1.44
    I have a simple table work sheet showing accno, name, address, balance
    Balance is a calculation, a case statement, so is not held in the database, and it is worked out in the worksheet.
    I want to create a grand total at the bottom of the balance colum but it simply will not show. So if I have 4 records with a balance of £25 each I wpould like to see a grand total at the bottom of £100 but it won't show!
    Is this because disco cannot show a grand total on a calculated field and if so is there any way around it?
    Thanks,
    rg

    Hi,
    You can do a grand total on a calculated column,by just going to tools/totals and then select the column and do a sum and clicking the option at the bottom.There comes your grand total in the report.
    Derry Discoverer 4.1 is outdated and there are many issues concerning it.So better suggestion is upgrade it to the latest version of discoverer 10g where many issues are solved.You can search this forum for upgrading to 10g
    Best Wishes,
    Kranthi.

  • Grand Total of weighted average in OBISE10g

    Hi,
    I need a basic help in OBISE1(10.1.3.2.1)10g aggregation.
    I have a report which shows 5 cols col1,col2,col3 (as an amount section) col4,col5 (as % column). col 4 and col 5 are derived by using some cacluation based on col1 and col2..
    upto here no issues and all columns are getting populated properly...
    i have a Total column at the bottom of the report where the columns get added up.. Now sum(col1),sum(col2),sum(col3) is being displayed which is correct and as expected.. but for total% of col4 and col5 what I expected value is to recalculate their formula using the values available in total aggregation column for col1 and col2.. but I am unable to do it..
    values are not as expected...also the number of columns are getting reduced after applying grand total to whole report.
    please provide me a solution for the same......
    Edited by: 925085 on Apr 3, 2012 12:00 AM

    Hi,
    I need a basic help in OBISE1(10.1.3.2.1)10g aggregation.
    I have a report which shows 5 cols col1,col2,col3 (as an amount section) col4,col5 (as % column). col 4 and col 5 are derived by using some cacluation based on col1 and col2..
    upto here no issues and all columns are getting populated properly...
    i have a Total column at the bottom of the report where the columns get added up.. Now sum(col1),sum(col2),sum(col3) is being displayed which is correct and as expected.. but for total% of col4 and col5 what I expected value is to recalculate their formula using the values available in total aggregation column for col1 and col2.. but I am unable to do it..
    values are not as expected...also the number of columns are getting reduced after applying grand total to whole report.
    please provide me a solution for the same......
    Edited by: 925085 on Apr 3, 2012 12:00 AM

  • Urgent Grand total Issue

    Hi Experts,
    In my Dashboard has 5 different table report with a Filter option, when I click the clear filter option it affect all the (5) reports.
    1. But I want to clear filter for each reports separately, is it possible means pls tell me how to fix this issue.
    2. Then I want display Grand total at the top of the Table report ie First Grant total then Table report (Usually table report has Grant total is in bottom of that report)
    Thanks in advance
    Balaa...

    1. I donot think this is possible.
    2. This is possible in Pivot but not possible in normal Tabular view. When you click on the 'Sigma' signs there is an option that enables you to specify the position of the Grand Total
    Regards

  • OBIEE 11g Grand total issue

    Hello,
    I have one requirement where I want to show the data as follows
    Type          Metric          Values
    Type1          units          100
              Days          50
              % Calc     10%
    Type2           units          100
              Days          50
              % Calc     10%
    Type3          units          100
              Days          50
              % Calc          10%
    Total units     300
    Total Days     150
    Total % Calc 30%
    If I take grand total of row in pivot table, I am not able to show Total units, Total Days and Total % Calc values in Grand Total because by default, same grand total name appears.
    I want to give different grand total names and percentage sign should appear in grand total.
    Please let me know if u need any more information.
    Thanks.

    Try to recreate the report. Just in case make sure that you dont have null values in that metric or try with ifnull(col,0)
    Check this bug too BUG:9871470
    Keep update

  • I used with rollup to add a Grand Total in the result.

    BEGIN select a.InvoiceNumber ,a.InvoiceDate,dbo.GetCompanyName(CompanyId) Company,isnull(convert(VARCHAR,a.InvoiceNumber),'GRAND TOTAL') AS InvoiceNumber, sum((Sum(isnull(Units,0)*isnull(UnitPrice,0))+ isnull(a.GST,0))) AS 'Total In Inventory',(Select ProjectCode from tblProjectmmc where id=ProjectId)as ProjectId,a.BusinessUnit,(Sum(isnull(Units,0)*isnull(UnitPrice,0))+ isnull(a.GST,0)) as InvoiceAmount, a.UserId as ProjectManager from tblinvoicemmc a inner join tblInvoiceItemDescriptionmmc b on a.InvoiceNumber=b.InvoiceNumber group by a.invoicenumber,a.GST,a.InvoiceDate,a.CompanyId,a.ProjectId,a.UserId,a.BusinessUnit with rollup ORDER BY a.Invoicenumber DESC ; End
    but giving error
    Cannot perform an aggregate function on an expression containing an aggregate or a subquery.
    Sms

    BEGIN
    select a.InvoiceNumber ,a.InvoiceDate,dbo.GetCompanyName(CompanyId) Company,isnull(convert(VARCHAR,a.InvoiceNumber),
    'GRAND TOTAL') AS InvoiceNumber, sum((isnull(Units,0)*isnull(UnitPrice,0))+ isnull(a.GST,0)) AS 'Total In Inventory',
    p.ProjectCode as ProjectId,
    a.BusinessUnit,(Sum(isnull(Units,0)*isnull(UnitPrice,0))+ isnull(a.GST,0)) as InvoiceAmount,
    a.UserId as ProjectManager
    from tblinvoicemmc a
    inner join tblInvoiceItemDescriptionmmc b
    on a.InvoiceNumber=b.InvoiceNumber
    left join tblProjectmmc p
    on p.id = a.ProjectId
    group by a.invoicenumber,a.GST,a.InvoiceDate,a.CompanyId,p.ProjectCode,a.UserId,a.BusinessUnit
    with rollup
    ORDER BY a.Invoicenumber DESC ;
    End
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • 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,

  • Grand Total Title

    Hi Experts,
    In answers in table view , i've grand total that displays sum for one columns and average for another column. My problem is in the Grand total label,
    Is it possible to have more then one label ?
    thx

    hi,
    you got it ready...
    you tick
    Horizontal axis---> dimension
    Vertical axis-------> measure
    Legend axis -----> max(rsum(amount))
    you click above the previous in Additional Charting Options-->Legend--->Location = top
    and you are ok.
    read from the blog i send you ...there are many interesting things there!(min,max values...and others...)
    hope i helped....
    http://greekoraclebi.blogspot.com/
    ///////////////////////////////////////

  • Wrong Grand total

    In our database we 've data for a lot of departments. The department number is in almost every table part of the key. Each department has shops
    In the login initialization block we decide which department we want to see information of.
    When I make a small request eg. shop, turnover, I see all the shops from the department initialized in the ini. block.
    But, when we want to make a grand total (in the same request) by pressing the summation sign on top, this grand total is the sum of all shops of all departments together. (not the only one department which is selected in the initalization block)
    Is this a BUG?

    Could you add dept =(dept from init block) in the fact table LTS content tab and see?

  • Wrong Grand Total in 11g

    Please list out the solutions available to solve the Grand total issue.
    These are the problems Im facing.
    If I enable Grand total I find some rows missing in the report.
    sometimes if i apply any calculations in report(fx) grand total is wrong and again some rows missing.
    These same issues I faced in BISE1 and it is still continuing.
    Any solutions?

    Hi sneha,
    sometimes if i apply any calculations in report(fx) grand total is wrong and again some rows missing.Strange behaviour of missing rows,dint come across this......tell us the exact problem
    These same issues I faced in BISE1 and it is still continuing.How did you solve this issue in BISE1.
    By,
    KK

  • Grand Total a Percentage

    So I am calculating the % change between two Quarters with the following formula:
    ((Current Qtr / Prior Qtr) -1) *100
    my rows are calculating correctly but my column's grand total does a sum and it isn't correct. How can I get my grand total to calculate similar to my rows in my table?

    Hey Lacey - I followed your instructions and am able to calculate the correct total % change:
    ((SUM(Current Qtr) / SUM(Prior Qtr)) - 1) * 100
    That is now displayed in it's own column (or I can hide it and don't see it at all). How do I get that value to display in the grand total of the standard % change column?
    Thanks!

  • Query Grand Total help required

    Hi all ,
    I have make the following query with followin output:
    SELECT asset, SUM(decode(abc_ccy, 'PR1', (nvl(abc_accr_lab, 0) + nv(abc_market_lab, 0)))) PR1,
    SUM(decode(abc_ccy, 'PR2', (nvl(abc_accr_lab, 0) + nv(abc_market_lab, 0)))) PR2,
    SUM(decode(abc_ccy, 'PR3', (nvl(abc_accr_lab, 0) + nv(abc_market_lab, 0)))) PR3,
    SUM(decode(abc_ccy, 'PR1', 0, 'PR2', 0, 'PR3', 0,
    (nvl(abc_accr_lab, 0) + nv(abc_market_lab, 0)))) OTHERS,
    SUM(nvl(abc_accr_lab, 0) + nv(abc_market_lab, 0)) total
    FROM   test_table
    GROUP  BY asset
    Asset       PR1    PR2    PR3  OTHERS TOTAL
    Bonds       100     50    75     100    425
    Shares      50      50    75     100    475
    Accounts    50     100    100    50     350My required output is also Grand Total below the field...is it possible in sql ????
    Asset       PR1    PR2    PR3  OTHERS TOTAL
    Bonds       100     50    75     100    425
    Shares      50      50    75     100    475
    Accounts    50     100    100    50     350
    Grand Ttl   200    200     250    250   1250Regards

    I don't think it'd accept that,
    Here's a quick demo of what might work tho'
    DROP TABLE TEST_TABLE PURGE;
    create table test_table(Asset varchar2(20),PR1 number,PR2 number,PR3 number,OTHERS number, TOTAL number);
    insert into test_table values('Bonds',100,50,75,100,425);
    insert into test_table values('Shares',50,50,75,100,475);
    insert into test_table values('Accounts',50,100,100,50,350);
    insert into test_table values(NULL,50,100,100,50,350);
    SELECT DECODE(ASSET,NULL,DECODE(GROUPING(ASSET),1,'GRAND TOTAL','NONE'),ASSET), SUM(PR1), SUM(PR2), SUM(PR3), SUM(OTHERS), SUM(TOTAL)
    FROM TEST_TABLE
    GROUP BY ROLLUP(ASSET);

  • OBIEE Avg Issue on Grand Total

    Hello Experts,
    I'm having an issue while calculating the grand total for the AVG measure.This is the scenario
    1)I have the show count for  the top three tiles for the rolling 13 weeks and only for the weekends and for a particular group of theaters.I have a 13 week indicator and weekend indicator in the filter.
    2) I have the show count to which is using ((showcount/3(top 3 titles))/ 3(3 days in the week)) = ShowCount/9
    3) now when i'm doing the grand total in the pivot rules summation after ,then it is showing sum of all the averages......but this is not my case...my case should be it has to show the avg of all the theaters that are in group of theaters.
    how can i resolve this issue?
    Any help is greatly appreciated.

    Hi User,
    This report is corrupted. You can rebuild or re copy the xml from 10g to 11g and see if it works.
    Thanks,
    Amol
    (Please mark this answer, if you find helpful)

  • In OBIEE Report Grand Total instead of Average(Average)  use Sum(Avg)?

    Hi All,
    In OBIEE Report Grand Total average always shows Average of average (Default) "avg(avg)" , can i overwrite this functionality to sum of average "sum(avg)".
    Thanks in advance
    Regards
    Kandasamy

    Hello,
    You can try the following:
    Remove the calculate result as setting for the three KFs.
    In exception aggregation set property to average with ref char as leave start date.
    Check if it works.
    If the above dosent work, set reference char to emplyee ID and check.
    Either one of them has to work
    REgards,
    Shashank
    Edited by: Shashank Dighe on Apr 2, 2009 9:03 AM

Maybe you are looking for