Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-08-2018, 11:50 AM
Jamal NUMAN Jamal NUMAN is offline How to pivot based on three fields? Windows 7 64bit How to pivot based on three fields? Office 2010 64bit
Expert
How to pivot based on three fields?
 
Join Date: Nov 2010
Posts: 527
Jamal NUMAN is on a distinguished road
Question How to pivot based on three fields?

How to pivot based on three fields?

For example, in the screenshots below, I wanted to pivot based on the following fields

To have F1 as rows
To have F2 as columns


To have F4 as values

Currently, it appears that excel has no power to write the values of F4 in the pivot table.

How this can be performed?


Thank you

Jamal
Attached Images
File Type: jpg Clip_187.jpg (104.5 KB, 22 views)
File Type: jpg Clip_188.jpg (163.9 KB, 22 views)
__________________
Jamal NUMAN, Jamal432@gmail.com, P.O.BoX: 731, Ramallah, West Bank.
Reply With Quote
  #2  
Old 05-09-2018, 01:36 AM
ArviLaanemets ArviLaanemets is offline How to pivot based on three fields? Windows 8 How to pivot based on three fields? Office 2016
Expert
 
Join Date: May 2017
Posts: 875
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

You can't get cell values as Pivot Table values - they must be either Sum, Count, Average, Max, Min, Product, Numbers count, StdDev, StdDevp, Var or Varp of COLUMNS values.

As Pivot Table is 2-dimensional as max, with 3 fields you have to decide, do ROWS or COLUMNS have 2 fields to group. And as values you have to use Count - there is now way you can sum letters, and I can't see a point in summing F1 values too.

You can get the result more like you want, when you add a calculated column where you concatenate values in F1 and F2
Reply With Quote
  #3  
Old 05-09-2018, 01:56 AM
ArviLaanemets ArviLaanemets is offline How to pivot based on three fields? Windows 8 How to pivot based on three fields? Office 2016
Expert
 
Join Date: May 2017
Posts: 875
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

Here is an example how a Pivot table is created either with 3 columns, or with concatenated column
Attached Files
File Type: xlsx PivotExample.xlsx (16.7 KB, 9 views)
Reply With Quote
  #4  
Old 05-09-2018, 09:31 AM
Jamal NUMAN Jamal NUMAN is offline How to pivot based on three fields? Windows 7 64bit How to pivot based on three fields? Office 2010 64bit
Expert
How to pivot based on three fields?
 
Join Date: Nov 2010
Posts: 527
Jamal NUMAN is on a distinguished road
Question

Quote:
Originally Posted by ArviLaanemets View Post
You can't get cell values as Pivot Table values - they must be either Sum, Count, Average, Max, Min, Product, Numbers count, StdDev, StdDevp, Var or Varp of COLUMNS values.

As Pivot Table is 2-dimensional as max, with 3 fields you have to decide, do ROWS or COLUMNS have 2 fields to group. And as values you have to use Count - there is now way you can sum letters, and I can't see a point in summing F1 values too.

You can get the result more like you want, when you add a calculated column where you concatenate values in F1 and F2
Thank you ArviLaanemets for the answer.

I’m not sure if there is other tool that can help performing deriving the result table out of the given table as shown in the screenshot below. It appears that Pivot tool has no such capacity
Attached Images
File Type: jpg Clip_190.jpg (103.1 KB, 16 views)
__________________
Jamal NUMAN, Jamal432@gmail.com, P.O.BoX: 731, Ramallah, West Bank.
Reply With Quote
  #5  
Old 05-09-2018, 10:56 AM
ArviLaanemets ArviLaanemets is offline How to pivot based on three fields? Windows 8 How to pivot based on three fields? Office 2016
Expert
 
Join Date: May 2017
Posts: 875
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

Quote:
I’m not sure if there is other tool that can help performing deriving the result table out of the given table as shown in the screenshot below
OK. In attachment is a possible solution which uses defined Tables, Table formulas, hidden rows and columns, and named ranges. Result table is on sheet Report.

On SourceTable sheet, columns D:H, containing intermediate calculations, are hidden.

On Report sheet, columns A:B with intermediate formulas are hidden. As in defined Tables column headers can't be formulas, dummy headers were created, and according F2 values are displayed at top as single datarow of additional table (with headers hidden).
Attached Files
File Type: xlsx PivotExample.xlsx (14.9 KB, 11 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot drag fields to pivot table jalea148 Excel 5 07-31-2017 04:03 AM
Remove any pivot table fields with a blank entry Ramtrap Excel Programming 0 04-14-2017 07:00 AM
How to pivot based on three fields? Show calculated fields within the Pivot Table John in DSM Excel 2 09-07-2016 02:12 PM
Pivot table - I cant display item labels when no fields in value area differentdrummer Excel 0 12-12-2013 05:13 PM
How to pivot based on three fields? Pivot Table's fields janis129 Excel 7 03-02-2010 03:16 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:04 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft