+ Reply to Thread
Results 1 to 7 of 7

Calculated field in Pivot Table

  1. #1
    Registered User
    Join Date
    02-22-2012
    Location
    Ponta Delgada, Azores, Portugal
    MS-Off Ver
    Excel 2013
    Posts
    12

    Calculated field in Pivot Table

    Hello!...

    How can I calculate the percentage of bags read using the two existing values and adding a new column to the pivot table: Count of Bags, summarize value field by Count, and Count of Check Bags, summarize value field by Count of Numbers.

    Thank you for the help...
    Attached Files Attached Files
    Last edited by RPCosta67; 07-07-2020 at 04:39 AM.

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

    Re: Calculated field in Pivot Table

    This could be done using Power Pivot which is a free add-in from Microsoft.
    Select a cell in the table and then select 'Add to Data Model' on the Power Pivot tab.
    Once the data is loaded to the data model select one of the cells below the solid gray line and paste the following into the formula bar: % Bags Read:=COUNT([Check Bags])/COUNTA([Bags])
    Select Format and change from general to percentage.
    Select Pivot Table > pivot table putting the three fields in the Values area.
    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
    02-22-2012
    Location
    Ponta Delgada, Azores, Portugal
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: Calculated field in Pivot Table

    Thanks for the help JeteMc!...

    However, I have one more question: in my original workbook, the Check Bags column contains a formula that verifies the respective condition.
    I cannot summarize as SUM because the field is recognized as TEXT - the COUNT of Check Bags gives exactly the same value as the total of bags.
    How can I change this?

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

    Re: Calculated field in Pivot Table

    When you say "verifies the respective condition" I feel as if you mean returns TRUE or FALSE. If you preform a mathematical function, such as =your formula + 0, on that formula it will return 1 or zero, which in turn can be counted.
    To provide more specific help I feel that we would need to see a file that shows the verifying formula.
    Let us know if you have any questions.

  5. #5
    Registered User
    Join Date
    02-22-2012
    Location
    Ponta Delgada, Azores, Portugal
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: Calculated field in Pivot Table

    My formula is IF(AND($N2<>"";$AL2<>" ");1;""). It verifies if two others cells contain some information and returns 1. So my column have 1's and blanks and I need to count the 1's.

  6. #6
    Registered User
    Join Date
    02-22-2012
    Location
    Ponta Delgada, Azores, Portugal
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: Calculated field in Pivot Table

    I tried to solve it and I got it. Thank you for your help.

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

    Re: Calculated field in Pivot Table

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. Creating calculated field and calculated item into a pivot table
    By dvpe in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-12-2019, 12:15 PM
  2. [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
  3. Issue with Calculated filed in Pivot Table (wrong output calculated)
    By martinrt in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-18-2018, 03:11 PM
  4. Calculate or sum a calculated fiel depending on the hierarchy
    By Aeonn in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-21-2017, 04:53 AM
  5. Calculated pivot table field using pivot table data in calculation
    By BrittleStar in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-10-2012, 05:35 PM
  6. CAlculated Fiel inside a pivot table
    By leslie in forum Excel General
    Replies: 0
    Last Post: 06-23-2006, 01:24 PM
  7. [SOLVED] pivot table formulas for calculated field or calculated item
    By Vicky in forum Excel General
    Replies: 3
    Last Post: 06-06-2006, 12:10 AM

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