• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Calculation outside of pivot table|Dashboards & Charts|Excel Forum|My Online Training Hub

You are here: Home / Calculation outside of pivot table|Dashboards & Charts|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumDashboards & ChartsCalculation outside of pivot table
sp_PrintTopic sp_TopicIcon
Calculation outside of pivot table
Avatar
kathy le

New Member
Members
Level 0
Forum Posts: 2
Member Since:
May 16, 2019
sp_UserOfflineSmall Offline
1
May 16, 2019 - 11:41 am
sp_Permalink sp_Print

If the pivot table does not contain the calculation of my interest, how to include my additional variable to the pivot table.

 

for example- My dataset has number of test failed (5) and number of time that parameter is being tested (10), my interest is to show the test rate (5/10), but this is not part of the pivot table.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4448
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
May 16, 2019 - 5:54 pm
sp_Permalink sp_Print sp_EditHistory

Hi Kathy,

Depending on how your data is structured, you can add a calculated field or calculated item to the PivotTable. You can then format that field as a fraction.

Mynda

Avatar
kathy le

New Member
Members
Level 0
Forum Posts: 2
Member Since:
May 16, 2019
sp_UserOfflineSmall Offline
3
May 17, 2019 - 4:24 am
sp_Permalink sp_Print

Hi Mynda,

 

i added a calculated field, but this new field only can be listened in the sum value field and it can't be placed in other areas (columns..)

 

thanks,
Kathy

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4448
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
May 17, 2019 - 8:50 am
sp_Permalink sp_Print

Correct. It's a calculation, so I'm not sure why you don't want it there. If you don't want it in the values area then you'd have to do this calculation in the source data.

Mynda

Avatar
Microsoft Excel Recalc Or Die

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
May 24, 2019
sp_UserOfflineSmall Offline
5
May 24, 2019 - 2:44 pm
sp_Permalink sp_Print

Hi Kathy, I was reviewing your inquiry, and  Mynda proposed an excellent solution, but you mentioned that you would like this new calculation on the columns area of there pivot table... am I correct? Please let us know if your questions has been resolved, else please elaborate more on this subject please. thanks!

Avatar
minat biswal
Guest
Guests
6
May 24, 2019 - 5:01 pm
sp_Permalink sp_Print sp_EditHistory

Pivot Table Calculated Field
In a pivot table, you can create a new field that performs a calculation on the sum of other pivot fields. For example, in the screen shot below, a calculated field, named Bonus, has been created, and it will calculate 3% of the Total, if the sum of Units is greater than 100.

To add a calculated field:
Select a cell in the pivot table, and on the Excel Ribbon, under the PivotTable Tools tab, click the Options tab (Analyze tab in Excel 2013).
In the Calculations group, click Fields, Items, & Sets, and then click Calculated Field.

Calculate Outside of the Pivot Table

If your pivot table layout won't change, another workaround is to calculate the Subtotals and Totals, outside of the pivot table, in columns to the right. For this technique to work correctly, change the pivot table layout from Compact to Outline Form.

In the screen shot below, the bonus is a calculated field, in column P. Formulas have been added in columns Q, R and S, and column Q has conditional formatting, so it matches the pivot table style.

Formula in cell R12: =IF(L12="",R11,SUM(R11,1))
Formula in cell S12: =IF(M12="",0,P12)
Formula in cell Q12: =IF(L12="Grand Total",SUM(S:S),IF(L12<>"",SUMIF(R:R,R12,S:S),S12))
Copy the formulas down to row 22, where the Grand Total is located.

Then, columns P, R and S could be hidden, leaving only the calculated Bonus in column Q.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Ngoc Tinh, Dieneba NDIAYE, Lavina Dhanwani, Natasha Smith, Monique Roussouw
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Denise Lloyd
michael serna
mashal sana
Tiffany Kang
Leah Gillmore
Sopi Yuniarti
LAFONSO HERNANDEZ
Hayden Hao
Angela chen
Sean Moore
Forum Stats:
Groups: 3
Forums: 24
Topics: 6216
Posts: 27252

 

Member Stats:
Guest Posters: 49
Members: 31897
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.