Total of average

Hello. I am a simple discoverer report which has 3 columns:
'Product' and 'Cost' and 'Average Cost'
The 'Product' and 'Cost' columns are summation columns straight from a business area, that is produced from a table:
SUM(Product), SUM(Cost)
The 'Average Cost' column is the follwing Calcuation:
AVG(Cost).
The average caculates properly.
However when I try to total the 'Average Cost' column, the total does not calculate properly.
Is there any way to fix this?

If I'm understanding you correctly, you have something like
product line A
units 50
cost 1000
average cost 20
product line B
units 10000
cost 100000
average cost 10
and you want the average cost across all products, which is (101000/10050), which is about 10.05.
So what are you doing, and what result do you get?
-- jim

Similar Messages

  • 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

  • Daily total / annual average query

    Hi,
    I am trying to write a report to calculate the daily total & annual average for 2008 for students still on site.
    In the database I have a View that contains the start date and end date for every student, but I dont know how to calculate what I want. 
    For some days there will be no students, for other there could be many.  Some students are on site for 1 day and other are on site for several months.  I have no idea where to start with this one so any help is very much appreciated.
    Thanks,

    Hi Kieran,
    You should be able to create a formula in the format
    if {@start_date} >= '01/01/2008' then {@start_date} else '01/01/2008'
    Regards
    Alan

  • Calculate total and average for same key figure

    Hi Experts,
    I have a requirement where I need to calculate total and average for same key figure no of employees.
    eg:                
    If I enter 03,2009 as Input the reuslt should give from financiual year starting to current month.
         11.2008      12.2008     1.2009     2.2009     3.2009        average
             11          10       12       10        10         10.6
             10         10       11       12        10         10.6
    total         21         20       23       22        20          21.2
    we have only one characteristic in rows... companycode.
    Waiting for your Inputs.
    Regards
    Prasad Nannuri

    no it will work for u
    you have to use variable on 0calmonth or fiscal period depending on what Time characteristic u are using.
    lets say that variable is zcalmonth
    it is based on 0calmonth for e.g.
    now u restrict keyfigure with this variable zcalmonth with time char. = 0CALMONTH
    copy and paste the restricted keyfigure
    now set offset for variable in  variable selection screen dialog box = -1
    repeat this until u want
    make this variable mandatory
    now at query execution user will select any value for month/year
    and u will see all 5 months in result set
    now there can be maximum 12 months in a year, so u end up creating only 12 restricted keyfigures.
    use YEAR in restricted keyfigure too, and restrict it with YEAR VARIABLE processing by CUSTOMER EXIT = CURRENT YEAR
    in this case it will automatically removes any additional values...
    for e.e.g
    YEAR = 2008 only
    User entered 6/2008
    so lets say ur financial year starts in  april 2007 and ends in april 2008
    so u expect to see
    4/08
    5/08
    6/08
    but u created 12 restricted keyfigures , so it will show upto
    4,5,6 months only

  • Can anyone suggest a method whereby I can calculate a numerical value that gives the total or average power between two stated frequencies of the AutoPowerSpectrum?

    Using Measurement Studio (Vis. Basic), I'm trying to calculate as a numerical value the total or average power between two stated frequencies of the AutoPowerSpectrum. The PowerFrequencyEstimate Method gets me part of the way there. Using appropriate values of the input variables SearchFreq and Span, I divided the range between my two frequencies into 12 segments and let PowerFrequencyEstimate find the frequency and its power at the highest point in each segment. Then I added the 12 resulting powers. Since these are power values at several peaks, not average power over a given frequency range, it's not exactl
    y what I want. Do any other approaches occurr to anyone?
    Thanks.

    Most people here won't do your homework for you. If you make an attempt yourself and get stuck then post your code (wrapped in code tags for easy reading), include any errors you get and what line they occur on and most of all ask a specific question. Don't just say "It doesn't work".
    However, your assignment mentions that you are not allowed to use inbuilt C/C++ functions. This is a Java forum. Although the languages are similar and some here have C experience, try posting in a C forum.

  • Display certain totals as average values in Evdre

    Hi,
    we have a planning layout in which the columns contain forecast previous year (2008.TOTAL) ,actual previous year and 12 columns of budget for current year (2009.JAN, ..., 2009.DEC). The rows have sales quantity and a couple of unit rates (sales and COS).
    We would like the system to display the unit rates as averages instead of adding them up, while the sales volume should be added up. Is this possible?
    regards
    Dries

    Hi Dries,
    I don't think that the cell key range of evdre can help you since this is only meant to be used for deviation of dimension members between the pagekey/rowkey/collkey ranges and an individual cell. It will not give you average data.
    Concerning method 1:
    You can build reports that expands in the rows and that have average formulas in one column that reference other columns.
    Concerning method 4:
    You can change the standard measures of an application. Normally an account has YTD and Periodics. You can add an other measure (or use an existing) that calculates an avg based on a property of an account, but be aware of possible performance risks.
    When you have a periodic application, the measures are stored in the SQL table tblformula.
    When you have a ytd application, the measures are stored in the SQL table tblytdformula.
    Please process an application from administration after you changed the measures in the SQL table so that you can use them.
    You can also create/change/try measures directly in Business Intelligence Studio.
    Alwin

  • Summarizing Cross Tab totals as Average

    Hello,
    I have summarized fields in a cross tab report as sum of, however want to average the total of one of them- is there a way to do this?
    Thanks,
    WA

    Select the crosstab field. Right click and modify summary function to average. You can change it in the crosstab expert as well

  • Total and Average in RESULT of same keyfigure?

    Hi guyz,
    Just want to ask if having the SUM and AVERAGE result of one (1) keyfigure is possible in BEx Query Designer?
    Here is the report:
                                                                  Volume
    Customer A           Material X               100
                                     Material Y               200
                                     Material Z               300
                                     RESULT                600             --->  total --- (100 + 200 + 300) = 600
    Customer B           Material X              400
                                     Material Y              500
                                     Material Z              600
                                     RESULT               1500           ---> total --- (400 + 500 + 600) = 1500
    RESULT                                                1050           ---> average of result --- (600 + 1500) / 2 = 1050
    How will I do the AVERAGE? I already got the TOTAL since it's the DEFAULT in CALCULATION tab. But is it possible to also have the AVERAGE?
    Thank you!
    Loed

    Hi Loed,
    You can try to use Exeption aggregation to acheive this.
    OR
    You can use cell restrictions and get this done.There are many documents avaliable for Cell Restrictions
    Rgds
    SVU123

  • Totalling Averages

    Hi,
    I have a column of averages in a report. I need to total them, which
    obviously means taking the average of all the averages, not just totalling the
    averages. I am using a pivot table. Even when I set the 'Average' on the column within
    the Pivot table view:
    Column -> More Options -> Aggregation Rule -> Average
    it doesn't seem to be totalling the averages correctly on the totals line.
    Is there anything for the totals line itself, which is doing other totals on the
    same line which aren't averages, I should be doing so get the average total column to
    calculate properly.
    Thanks for any ideas.
    - Alan.

    Duplicate question:
    Totalling Averages
    Alan please close this one so people only reply in one place.

  • Average & SUM in a Single criteria in the Pivot View

    Hi,
    Can you plese let me know whether it is possible to have SUM at the Grand Total level & Average on the Right Hand side of the Pivot Table view at the same time.
    Thanks & Regards
    Siva.

    Hi,
    The way you want to do it is not possible.
    What you can do is make a union of 2 reports one is using the Sum and the other the AVG and not use the Grand total provided by OBIEE.It's kind of creating your own Grand Totals
    Look at this thread it will help:
    http://obiee101.blogspot.com/2010/08/obiee-combine-with-similar-request.html
    If you are using pivot table you can think about a new calculate item as a GT
    http://varanasisaichand.blogspot.com/2010/12/aggregate-functions-on-grand-total.html
    Best regards
    Adil
    PS: Please don't forget to close the thread and assign points when your question is answered
    Edited by: adil.harrab on Jun 6, 2011 1:36 PM

  • How can I create a view of top five teams averages based on individual averages of that team?

    I have created a list that groups teams by their Team name (Team column) with the individuals members (participants column) averages and their team average (total average view option).  I want to only display the top five teams that have the overall
    top team averages.  I have a list that contains a team name, average minutes, week, and participant. The team manager plugs in each week a new entry for each participant on the team.  I have a view that computes each team average but I want a view
    of the top five teams based on the top averages of the team (not individual participant average).  Unfortunately, I can only seem to get all teams grouped with individuals of that team, their individual averages and the team average but can't figure out
    only how to show the top five teams top average.  Because it's a total (team average) and not a separate column, I can't get a view by team based on total average.  I can by top individual average but not by the team.  Can some one help me figure
    out a solution?

    A calculated column won't work because a calculated column can only reference the individual item, not the entire list or a subset.
    You could do javascript to build this, but to me it's easier to just use Excel.
    Andy Wessendorf | Solution Foundry [email protected]

  • Calculation based on totals in Crosstab

    Hi,
    I have the following crosstab.
    Vendor 1234
         Dc Nbr 1     2     4     
    Sum Invoice Amt      1387.04     300.82     327.29     2015.15
    Sum Cost 44.86 57.43     25.54     127.83
    Sum Advanced Cost     102.44     0     0     102.44
    Sum Consolidation Cost     30.37     0      0     30.37
    Sum Allowance Amt     27.74     6.02     6.54     40.30
    Net Freight Cost     149.93 51.41     19     220.34
    Freight Percent     10.81     17.09     5.81     ****
    The last column are Row totals for those fields.
    What I need is how to get the **** to be 10.93 which is the Freight Percent calculation value based on the Total Column fields. The
    Frieght Percent field is calculated as follows for the rows.
    ( NVL(Sum Cost,0)+NVL(Sum Advanced Cost,0)+NVL(Sum Consolidation Cost,0)-NVL(Sum Allowance Amt,0) )/NVL(Sum Invoice Amt,0)*100                         
    I have tried to do the Row Total with Average, Sum, etc, but not getting the answer we need.
    Table structure is 3 rows per vendor with 1 row per dc nbr.
    Any help would be greatly appreciated.
    Thanks
    Edited by: clifford_d on Dec 4, 2008 9:46 AM

    See if this explains it better for my crosstab with page items of Vendor Number 1234.
    Vendor 1234
    Dc Nbr 1 2 4 AAAA
    Sum Invoice Amt 1387.04 300.82 327.29 2015.15
    Sum Cost 44.86 57.43 25.54 127.83
    Sum Advanced Cost 102.44 0 0 102.44
    Sum Consolidation Cost 30.37 0 0 30.37
    Sum Allowance Amt 27.74 6.02 6.54 40.30
    Net Freight Cost 149.93 51.41 19 220.34
    Freight Percent 10.81 17.09 5.81 ****
    As stated before, Frieght Percent is a calculation I created in Discoverer that looks like this :
    ( NVL(Sum Cost,0)+NVL(Sum Advanced Cost,0)+NVL(Sum Consolidation Cost,0)-NVL(Sum Allowance Amt,0) )/NVL(Sum Invoice Amt,0)*100
    Column AAAA was created in Discoverer using Sum of field and show to the right.
    What I need is for the **** to be the correct calculation for the totals in column AAAA. If I use do a total for Freight Percent using the Cell Sum I get 33.70., what I want is it to be 10.93, which is (127.83 + 102.44 + 30.37 - 40.30)/2015.15*100.
    If I use an Average Total row for Freight Percent, I get 11.24 which is 33.70 / 3 (the 3 would be the # of dc nbr's)
    I did start with using the detail level data to create this crosstab. Then I made a new version and used the SUM data. I seem to get the same results but am still having issues with the one **** value.
    Hopefully this explains it better.
    Thanks for the ideas so far.

  • Inventory Management : Total stock turnover

    Hello,
           Can anyone tell me the logic for calculating Total Stock turnover & the Average quantity of total stock in an Inventory Management scenario.
    Thanks & Regards
    Indraneel

    Hi
    1. Warehouse Inventory Turnover of Total Stock  Specifies how often average total stock has been consumed. (Total consumption quantity / Total stock- average quantity)
    2. Average Total Stock Warehouse Inventory Turnover Specifies how often average total stock has been consumed based upon the average total usage. (Average total consumption quantity / Total stock u2013 average quantity)
    refer this if u still have queries
    http://help.sap.com/saphelp_nw04/helpdata/en/06/8c6cfe0e67fd43a6cd3603d246ced7/frameset.htm
    hope it helps

  • Weighted Average in Pivot View

    Hi,
    Can you please throw some light on the below scenario based on weighted average:
    For Ex:
    Cloumn1---Column2-----Column3
    R1-----------Line Item1--10
    R1-----------Line Item2--20
    R2-----------Line Item3--30
    R2-----------Line Item4--40
    Now i am trying to achieve weighted average based on the group by of Column1.
    10+20=30==>30/2=15
    30+40=70==>70/2=35
    Before raising this thread, i had a look at the below URL:
    http://siebel.ittoolbox.com/groups/technical-functional/siebel-analytics-l/weighted-average-for-fact-column-values-1242947
    Can you please let me know how we can achieve this in the pivot view(OBIEE 10.1.3.4.1).
    Your help is highly appreciated.
    Thanks in Advance
    Siva

    Hi,
    Try-
    AVG(measure_col by column1)
    And try making in the column formula -Aggregation Rule (Totals Row)-->Average
    And also try making the aggregation rule in the pivot table of the column as-->Average
    Hope this helped/ answered.
    Regards
    MuRam
    Edited by: MuRam on Jun 11, 2012 4:46 AM

  • Script logic to calculate average value on nodes - SAP BPC NW 10.0

    Hi experts,
    I need to have in the parent members of the dimension TIME (2014.Q1, 2014.Q2,  2014.Q3, 2014.Q4, 2014.TOTAL) the average value of  their children and not the sum. For example :
    2014.01        2014.02         2014.03        2014.Q1
        1                  2                    3                  2                                          
    2 = AVG(1, 2, 3)
    I tried the script bellow but it doesn't work , it throws the error " ReferenceError : AVG is not defined"
    *SELECT(%TIMESET%,"[ID]",TIME,"[CALC]='Y'")
    *XDIM_MEMBERSET TIME = %TIMESET%
    *XDIM_MEMBERSET MEASURES = PERIODIC
    *WHEN DIM1
    *IS C02
    *WHEN TIME
    *IS %TIMESET%
    *REC(EXPRESSION = AVG(Descendants([%TIMESET%].CURRENTMEMBER)), TIME = %TIMESET%)
    *ENDWHEN
    *ENDWHEN
    *COMMIT
    How can I achieve this ?
    Thanks
    Maha

    The best way is to enter 2 accounts: Productivity and Area, calculating by dimension member formula:
    ProductivityPerHectare=IIF([Area]=0,NULL,[Productivity]/[Area])
    If you have to enter ProductivityPerHectare and Area, then in script you can calculate Productivity:
    *WHEN ACCOUNT
    *IS Area
    *REC(EXPRESSION=%VALUE%*[ACCOUNT].[ProductivityPerHectare],ACCOUNT=Productivity)
    *ENDWHEN
    *WHEN ACCOUNT
    *IS ProductivityPerHectare  //user input
    *REC(EXPRESSION=%VALUE%*[ACCOUNT].[Area],ACCOUNT=Productivity)
    *ENDWHEN
    Then dimension member formula:
    ProductivityPerHectareCalc=IIF([Area]=0,NULL,[Productivity]/[Area])
    You can use arithmetic average of ProductivityPerHectare only if Area is always constant.
    In this case you can create some dummy account member DUMMY and fill it with 1:
    *WHEN ACCOUNT
    *IS ProductivityPerHectare  //user input
    *REC(EXPRESSION=1,ACCOUNT=DUMMY)
    *ENDWHEN
    Then dimension member formula:
    ProductivityPerHectareCalc=IIF([DUMMY]=0,NULL,[ProductivityPerHectare]/[DUMMY])
    Vadim

Maybe you are looking for

  • I have two email accounts. It is only letting me check one. How can I check the other?

    I registered two different email accounts on my iPad mini. It's only letting me check one. How can I check the other one too?

  • Memory leak in Waveform Graph?

    Either thier is a huge memory leak in the waveform graph or I am really doing something wrong. I created an example app with a waveform graph and a button the contructor looks as follows: Form1(void) InitializeComponent(); vals = gcnew array<double>(

  • External Hard drive Auto-sleep Disable

    I have a problem with my external drive, a Seagate GoFlex 2TB. Basically the drive goes to sleep while I am transfering files and freezes up Finder. From what I have read, a possible solution would be to disable the auto sleep in the drive firmware b

  • Trying to sort by rating for whole project

    I am a photographer working on several different series, and I am just setting up Aperture. I have one project that has up to 30 different albums contained within it. I plan to keep adding to this project (is that not a good idea?) as I do more shoot

  • Disable Fast User Switching for RDP (NOT HIDE ENTRY POINTS!)

    Windows 7 Pro. I do virtually all my administration of 150 workstations (various domains and workgroups) remotely via RDP, and with Windows 7, I am finding more and more complications with Fast User Switching. Anything running under another user acco