• 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
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Pivot Table Total difference|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Pivot Table Total difference|General Excel Questions & Answers|Excel Forum|My Online Training Hub

vba course banner

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 ForumGeneral Excel Questions & Answe…Pivot Table Total difference
sp_PrintTopic sp_TopicIcon
Pivot Table Total difference
Avatar
David_Ng
Member
Members
Level 0
Forum Posts: 306
Member Since:
December 5, 2016
sp_UserOfflineSmall Offline
1
September 4, 2020 - 2:06 pm
sp_Permalink sp_Print

Can not understand why PT Table  total not tally , pls refer attached

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4515
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
September 4, 2020 - 4:56 pm
sp_Permalink sp_Print

Hi David,

When you insert a calculated field the calculation is operating on the aggregated values for the field. You can see this in the case of product PT_PN-UH861 PPT where there is a total quantity of 66 representing 3 rows of data, and the sum of the SELL. Unit Price for those 3 rows is 4999.02 and you'll notice the Sales Check value is 329,935.32 i.e. 66 x 4999.02 as opposed to what you're expecting of 109,978.44.

For this same reason, you don't get sub-totals and grand totals for these type of calculated fields because it wouldn't make sense to multiply the total unit price by the total units.

If you want to perform calculations like this in a PivotTable you need to use Power Pivot.

Mynda

Avatar
David_Ng
Member
Members
Level 0
Forum Posts: 306
Member Since:
December 5, 2016
sp_UserOfflineSmall Offline
3
September 4, 2020 - 5:16 pm
sp_Permalink sp_Print

Thanks  Mynda pointing out  the problem and methodology of the calculating method in the PT.

But, please help further demonstrate using Power Query , then, Pivot table to overcome this problem, thanks !

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4515
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
September 4, 2020 - 9:55 pm
sp_Permalink sp_Print

Hi David,

It doesn't require Power Query. Just Power Pivot, but Power Pivot is not available in all versions of Excel. Please check this list and ensure you have Power Pivot before I spend time providing a solution you can't use.

Mynda

Avatar
David_Ng
Member
Members
Level 0
Forum Posts: 306
Member Since:
December 5, 2016
sp_UserOfflineSmall Offline
5
September 5, 2020 - 2:17 pm
sp_Permalink sp_Print

I got Power Pivot as an add on in my Excel 2010, but not so sure how to work out a solution to solve the calculation problem with this PT.

Avatar
David_Ng
Member
Members
Level 0
Forum Posts: 306
Member Since:
December 5, 2016
sp_UserOfflineSmall Offline
6
September 7, 2020 - 12:10 pm
sp_Permalink sp_Print

I transform the data sheet to Table , but still not sure how to use the Power Pivot to  to overcome the  calculated field errors in the sample.  

[ ie Shipped Qty* Selling Price]

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4515
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
7
September 7, 2020 - 7:20 pm
sp_Permalink sp_Print

Hi David,

You need to write a DAX measure using SUMX to calculate the unit price x qty shipped e.g. in the attached file:

Check Total =SUMX(Table1, [SELL. Unit Price] * [SM Shipped QTY])

If you'd like to learn Power Pivot please consider my Power Pivot course.

Mynda

Avatar
David_Ng
Member
Members
Level 0
Forum Posts: 306
Member Since:
December 5, 2016
sp_UserOfflineSmall Offline
8
September 8, 2020 - 10:18 am
sp_Permalink sp_Print

Thanks, Mynda, that's the solution we want, we can tell and enjoy the power of Power Pivot and Query.

It saves our effort to juggle around the complex data sometimes we are encountering.

Definitely,  I will consider to join the course suggested, but seems  a bit expensive for me, will seek my Company financial support.  

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Misael Gutierrez Sr.
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 218
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Cathi Giard
Sarah Young
Henry Delgado
Alita Nieuwoudt
KL KOH
Joao Marques
Regi Hampton
Taffie Elliott
Paramita Chakraborty
David du Toit
Forum Stats:
Groups: 3
Forums: 24
Topics: 6358
Posts: 27805

 

Member Stats:
Guest Posters: 49
Members: 32335
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.