Complex Calculations in Excel 2010 Pivot Tables

Douglas R. Eckert

It would be better if you can provide us with more information for this issue....
In PivotTable reports, you can use summary functions or customer calculations in value field. You can also create your own formulas in calculated fields and calculated items.
Please refer to:http://office.microsoft.com/en-gb/excel-help/calculate-values-in-a-pivottable-report-HP010382405.aspx?CTT=5&origin=HP005200663

Similar Messages

  • Excel 2010 Pivot Table VBA Not Refreshing Table

    My company recently upgraded from Excel 2003 to 2010. I had VBA written to take source data and convert it into a number of Pivot Tables on a number of worksheets. It has been working fine for years. After upgrading to 2010 the VBA crashed. I tracked it
    down to the fact that when my code was making changes to the Pivot Tables (changing fields, filters, etc...) the pivot table on the worksheet had no data, but the fields were there. I can manually go to the pivot table and manually refresh and all the data
    comes in.
    So I tried adding the VBA code to refresh the pivot table, but the pivot tables will not refresh with data.
    I tried:
    ActiveSheet.PivotTables("WO Pivot").RefreshTable
    and
    ActiveWorkbook.RefreshAll
    And these did not work.
    I also tried recording a macro for the manual steps to refresh and got:
     ActiveSheet.PivotTables("WO Pivot").PivotCache.Refresh
    This does not work either.
    The PivotTable name is correct, but I tried using the number as well, and the name works for other code manipulating the the pivot table.
    e.g.:
    With ActiveSheet.PivotTables("WOPivot").PivotFields("Task Title")
          .Orientation = xlRowField .Position = 2
          .Subtotals = Array(False, False, False, False, False, False, False, False, False, False, _False, False)
    End
    With Why isn't this working? Is there another way to refresh pivot table data in 2010?
    Thanks. P.S. I've tried formating this so it is readable, but it comes out garbled. Hope this looks better.

    The solution above didn't work for me, but the following did the trick:
    ActiveSheet.PivotTables("WOPivot").PivotCache.Refresh
    By the way, I identified it by recording a macro, then going on the Pivot Table that needed refreshing and pressing F9 to refresh it. The line of VBA code above was the result.
    Cheers,
    Marco.

  • Calculated Percentage Columns in Pivot Table loose formating in Excel

    I have a simple report built using pivot table ( OBIEE 11.1.1.5.0)
    1 Metric and 1 dimension using pivot table. and I duplicated the metric column and change it to % column.(Show data as % of column). SO far so good. Below is the snapshot
    http://tinypic.com/r/2s14xa9/7
    Now i download the report in excel and all the % values are messed up . Below is how it looks
    http://tinypic.com/r/bede90/7
    I tried messing with data formats etc..nothing works.. I cannot add a custom column format to the metric column since it will impact the derived % column.
    Is this a bug ?Any pointers ..
    Thanks

    Hi,
    Follow up this SR:
    SR 3-5060435331: Calculated Percentage Columns in Pivot Table loose formating in Excel
    Workaround: (not sure may be give a try)
    also give a try like below one then try to download it may work.
    In that % column -->add the below statement in the Custom CSS section of the column properties:
    mso-number-format:"\@"
    Refer snapshot here:
    http://i53.tinypic.com/a09kqv.jpg
    This will treat the data in the column as text while downloading to excel, hence retaining any leading or trailing spaces.
    Thanks
    Deva

  • Export excel to Pivot table issue

    Hello Folks,
    Our Business user has a problem with the exporting to excel as Pivot table. Now, the user is trying to do, List - Export - Spreadsheet, and she is getting "Save XXL list object in  SAPoffice". How can we get the option to save in "Excel in XXL format" to get to the Pivot table..
    Thank You.

    hi,
    check out this [LINK|http://sample-code-abap.blogspot.com/2009/05/reset-alv-export-option-for-user.html]
    the report SALV_BS_ADMIN_MAINTAIN is used to reset this setting. It's easy, run the report, select and delete the record for the specific user from report output and that user will get the dialog again.

  • Send excel as Pivot table in attachment through ABAP

    Hi All,
    I have a requirement where I have to send excel file as attachment. Which I can do without any issue.
    But when we send in excel it should be in Pivot format as we can do in Excel.
    Sending excel file as attachment in Pivot format thorugh ABAP. Is it possible. If some one has tried it ever can tell me some thing about this.
    Thanks,
    Anu

    Hi Anu,
    can you pls share  the logic of sending excel as pivot table and i can try with it.
    Thank You.
    K.S.

  • Sorting on a total column or calculated column in a pivot table

    We have a pivot table showing customer activity by month. We have added a calculated field to show the YTD average instead of a total column. Is there a way to sort on this calculated field? We have applied a sort on the measure in the criteria, and our resulting pivot table sorts by the values in the most recent month, not by the YTD average.

    I think we cant sort when we use a pivot view becoz all the rows are already fixed. Say your rows are sales and volume and columns are year 2007 and 2008, imagine if you r given the sorting ability then if number of units solds is more then it need to change the rows (but in pivot table rows are fixed). So, we cant sort in pivot tables!!

  • Excel containing pivot table - Problem when opening

    Hi,
    There is jsp that generates an excel with few pivot tables in it. In the open/save dialog, if I save the excel and open it, it displays fine but if it is opened up directly, it gives an error saying "Reference is invalid".
    Note: The range for the pivot tables are specified using named ranges ( data is in different sheet from that of the pivot table ) ... but it works fine if saved and reopened.
    just confused of this behaviour... any ideas would be greatly appreciated...
    Regards...

    This seems to be a bug with the Excel. This works fine with Netscape and also should work fine with other browsers. In IE, the temp file is created with a file name that ends with a square bracket at the end( eg. myExcel[1].xls ) and this is contrary to the file naming convention of ms-excel ( should not contain '[' or ']' ).
    Only solution is, open the excel file as inline...
    response.setHeader("Content-Disposition", "inline; filename = myExcel.xls");Please advice if my perception is wrong or is there any other work around for this? I have tried using all types of headers when sending the response but nothing helps.
    To check this,
    Create an excel file and try to save it with a file name that contains square brackets...
    Regards...
    Edited by: Praveeen on Jun 27, 2008 1:36 AM

  • Calculating Average on a Pivot table- Not calculating correct

    Hello All BI Techie's,
    I have a requirrement, which is calculating the average out of a column , this column is aggreated by sum in the rpd.
    Month Year      Associate Headcount      Involuntary Termination Count (Associates)
    2012 / 07      18878.0      55
    2012 / 08      18817.0      53
    2012 / 09      18770.0      63
    Grand Total      18770.0      17
    Now, I want calculate a column which gives the average of Associate Headcount, ( 18878+18817+18770)/3 , how I can achieve that?
    I tried, using avg(associate headcount), it not returning correct average, any insight?
    Please share your ideas.
    Thanks,
    Bala

    Thanks Srini, The tried your solution but still the problem exists.
    I have created a new column, called Avg Headcount and entered condition in the column, I am using pivot table.
    max(rsum("Workforce Profile Facts"."Associate Headcount"))/max(rsum(1))
    Actual Results
    Month Year      Associate Headcount      Involuntary Termination Count (Associates)      Avg Headcount
    2012 / 07      18878.0      55      18907.8
    2012 / 08      18817.0      53      18878.0
    Grand Total      18817.0      108      18878.0
    Expected results
    Month Year      Associate Headcount      Involuntary Termination Count (Associates)      Avg Headcount
    2012 / 07      18878.0      55      18878
    2012 / 08      18817.0      53      18817
    Grand Total      37695.0      108      37695/2 = 18847.5
    Eeven my Associate Headcount, pivots grand total was wrong, my instanceconfig.xml already setted to aggregate enabled.

  • Resetting calculated values  in Answers pivot tables

    We have a a pivot table whereby we summarize by zones. Our calculation is derived using running aggregates.
    E.g
    Zone name | Value 1 | Value 2 | Calc Value
    Zone A X y x/y
    Zone B A B A/B
    However we are unable to reset the value of our running aggregate when our zone changes. Hence for Zone B in the example we are getting a value = (X+A)/(Y+B) when we want A/B.
    We are calculating our values at previous 7 day intervals so hence these have to be calculated at run time
    We are in 10.1.3.4
    All help would be appreciated.
    Thanks

    Hi,
    you can with this syntax inside the column Calc Value of a table view:
    RSUM(Value 1/Value 2 by Zone name)
    Hope it helps.
    Regards,
    Gianluca

  • MS Excel 2011 pivot tables and Lion

    Hi,
    I run quite a lot of spreadsheets with pivot tables in MS Excel 2011. With the most recent version of Snow Leopard and all the patches from Microsoft it seemed to be working quite well. The minute after the upgrade to Lion, when I tried to refresh a pivot table Excel crashed, and it is crashing on every single file that I have. I also created new files from scratch, ran a new pivot table, and the second time I open the file it would crash upon refresh.
    Apart from being extremely annoying, there seems to be no way around it for the time being; I really hope that with the next release of Office 2011 they fix it. Anyone has similar experiences or ideas?
    Thanks,
    Claudio

    This is absolutely a problem after insalling Lion!  Office 11 was a great improvement over office 08 to handle pivot tables and now pivot tables are basically useless on Office 11, running Lion.  I confirm that munipulating pivot tables in Excel 11 causes excel to crash every time.

  • Calculating percentage change in pivot table

    Hi,
    In my requirement i want calculate percentage change of revenue in month wise(i.e.,by comparing current month previous month).that result should display in pivot table.but iam not getting values.can any one know.plz give sol ASAP

    Read these:
    http://catb.org/~esr/faqs/smart-questions.html#homework
    http://catb.org/~esr/faqs/smart-questions.html#beprecise
    Try again, and hopefully, there will something someone can respond to. But don't ask to "give the solution." That's your job. We'll help, if we can and if we have the time. Good luck.

  • Excel 2010 Pivot Chart

    On my pivot chart, the field filters at the top of the chart do not show the field value that it was filtered on.  We filter on Customer.  I am clicked into the chart and I select the analyze tab, on the field button drop down, the "show legend
    field buttons" option is not enabled.
    Why isn't that enabled?
    Thank you for your help.

    Hi
    I hope you can help me please?
    I have a similar issue in that I produce spreadsheets that I present to the Management team twice a month.
    I have pivots for the forecast, which support a graph.
    Using the filter, we look at a product family at a time
    How can I display a family name (that we have filtered on) on the chart itself, please?
    I've searched as many websites as I can to find help but haven't been successful.
    I can't add a print screen at present (need my account verified).

  • Excel - Filters/Pivot tables

    Hi!
    For some of our users whenever they export Viewer reports to Excel, they loose the filter options that available in the original Discoverer Viewer reports. However, for others such as myself this works fine.
    Is there a configuaration option somewhere? Everyone is using IE6, Excel 2000, and have the Security settings for macros set to medium in Excel.
    Any ideas?
    Cheers,
    Martin

    Unfortunately for what you want to do, hiding of rows does not hide the data from the formulas. This is true with the category functions as well the regular functions. Can you reorder the precedence of your categories to get the hidden stuff to not be in the subtotals? In other words if you have a category based on column A and a sub-category of column B, can you make B be the main category and A be the sub-category to achieve your results?
    Message was edited by: Badunit

  • Hide Blank Rows in a Pivot Table in Outline Form in Excel 2010

    In Excel 2010 Pivot Tables, using the Outline Format and Repeat Item Labels, is it possible to hide the rows with no data?  Please see atch.
    Doug in York PA
    Douglas R. Eckert

    Hi,
    If you want to hide these subtotal rows, you have to use the Tabular forum, the Tabular layout is very similar to Outline except that you will not 
    have subtotals at the top of every group.
    1.Right-click an item in the pivot table field, and click Field Settings
    2.In the Field Settings dialog box, click the Layout & Print tab.
    3.Check the 'Show item labels form in tabular form’ 
    check box.
    4.Click OK
    Then your pivot table layout should look like the image below:
    Let us know if that’s what you wanted.
    Regards,
    Melon Chen
    TechNet Community Support

  • Performing a specific calculation in a pivot table with BI Publisher 10g

    I am using BI Publisher 10g and new on it and I need to integrate a specific calculation measure in a pivot table
    The logic uses two measures that already exist in the report (Demand & PAB) and the required calculation is represented by a new measure/row (Calculated). The pivot time is in weeks
    Week w0     w1     w2     w3     w4     w5 .....
    Demand     d(w0)     d(w1)     d(w2)     d(w3)     d(w4)     d(w5) .....
    PAB     p(w0)     p(w1)     p(w2)     p(w3)     p(w4)     p(w5) .....
    Calculated     c(w0)     c(w1)     ....     ....     ....     c(w5) .....
    If p(w0) < d(w1) --> then c(w0) = p(w0) / d(w1)
    If not
    If p(w0) < d(w1) + d(w2) --> then c(w0) = p(w0) / ( d(w1) + d(w2) ) * 2
    If not
    If p(w0) < d(w1) + d(w2) + d(w3) --> then c(w0) = p(w0) / ( (dw1) + d(w2) + d(w3 ) ) * 3
    If not
    etc .... Same logics apply for c(w1) and so on
    Is such calculation logic achievable in Bi Publisher ? If yes, how would you do it ?
    Thanks for your time and support on this
    Regards, Samir
    Edited by: skaroui on 02-Mar-2012 05:50
    Edited by: skaroui on 02-Mar-2012 06:02
    Edited by: skaroui on 02-Mar-2012 06:12

    Can you use the logic that you specified in the data model (query) to generate the required data and then use it in the pivot table? That would be the easiest way to do it. Tweaking the code to include the conditional logic/calculated measures is not going to be straightforward..
    Thanks,
    Bipuser

Maybe you are looking for

  • WARNING: Failed to validate the xml content

    Hi, We notice this error when we start the web logic admin console and also in many of Hyperion log files. There are many instances of this error and everything is pointing to different lines in this file "jps-config.xml". WARNING: Failed to validate

  • How do I set up an account for my child with no bank details

    Can anyone tell me how to set up an account for my daughter so she doesn't have access to my bank account?

  • Programatically create adobe form?

    Hi, I have an interesting request from a client. They do surveys which they are now designing in Excel. The surveys are long and change for each job they do for their customers. They would like to be able to define a survey and have a program take th

  • Erro while executing adobe forms in webdynpro

    Hi , Please help me in resolving the following issue while running the adobe form in webdynpro for java on sneakpreview java.lang.exception:incorect content type found "text/html" thanks

  • Make your LabVIEW experience more convenient

    Hi, This is where I list all of my wishlist (ideas) together. Allow to link two arrays so that they can scroll synchronously. String control/indicator/constant with line number display. Allow selecting multiple columns to be resized. Bundle/Unbundle