+ Reply to Thread
Results 1 to 4 of 4

Pivot table - calculating on pivot fields

  1. #1
    Registered User
    Join Date
    08-24-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    37

    Pivot table - calculating on pivot fields

    Hi all!

    I've been looking on here but not found anything yet

    When using a pivot table, I'm using COUNT to determine the number of instances values in a column of data (without caring what the raw data is).

    This is fine, but I'm struggling to then perform simple calculations on the COUNT values in the pivot table as the pivot fields are the source, not the COUNT representations that are in the pivot table.

    For example, I want to calculate one series of COUNTS as a % of another. I'm struggling to do this in the pivot table. Even doing this outside the pivot table, I need to manually enter the formula for each time (which doesn't scale in my rather large use case).

    Attached is a simplified example. Any pointers would be hugely appreciated!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,526

    Re: Pivot table - calculating on pivot fields

    According to the following you can get Power Pivot for the 2010 version of Excel: https://support.microsoft.com/en-us/...7-20b87e1c2a4b
    After converting the range A1:E7 to an Excel table, Power Pivot can be used to produce three measures from the data
    Count of Date Last Accessed:=COUNT(LocationTable[Date last accessed])
    Count of Date Completed:=COUNT(LocationTable[Date completed])
    Percent Completed:=[Count of Date Completed]/[Count of Date Last Accessed]
    The resulting pivot table is modeled on Sheet1.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    08-24-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    37

    Post Re: Pivot table - calculating on pivot fields

    Thanks for the response JeteMc!

    I'd not heard of Power Pivot before - looks like it does exactly what I need.
    Shame it's not available for Office for Mac though - thank you MS

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,526

    Re: Pivot table - calculating on pivot fields

    In that case a work around may be in order such as is modeled on Sheet2.
    Two columns are added to the table.
    Count LDA: =([@[Date last accessed]]<>"")+0
    Count DC: =([@[Date completed]]<>"")+0
    Note that since this is an Excel table the calculations will automatically copy down when a new row is added.
    In the pivot table the Percent Completed is a calculated field: ='Count DC' /'Count LDA'
    Let us know if you have any questions.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 01-31-2021, 07:36 AM
  2. Replies: 1
    Last Post: 01-30-2021, 11:11 AM
  3. [SOLVED] Power pivot or pivot table for connecting data and creating calculated fields
    By jaryszek in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 02-06-2019, 08:31 AM
  4. [SOLVED] Calculating (dividing)fields already within a pivot table
    By JackXcel in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 07-29-2015, 02:56 AM
  5. Replies: 5
    Last Post: 06-08-2012, 03:24 PM
  6. Collapse/Expand - Pivot table Fields - Need equivalent option in Excel VBA Pivot table
    By ragavendraph in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2012, 03:00 PM
  7. Calculating grouped fields in a pivot table
    By sqrl18 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-14-2009, 04:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1