Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-28-2023, 10:11 AM
rjgriffin46 rjgriffin46 is offline Row and Column Totals in Excel Pivot Table Windows 10 Row and Column Totals in Excel Pivot Table Office 2016
Novice
Row and Column Totals in Excel Pivot Table
 
Join Date: Feb 2023
Posts: 2
rjgriffin46 is on a distinguished road
Default Row and Column Totals in Excel Pivot Table

I would like to enter data (numbers) into a table with rows by date and columns as categories of activities. And then in a pivot table reverse the rows & columns so that dates are columns and activities are rows.



I wish to have both Row and Column totals in the pivot table but so far it displays row totals but not column totals.

I would also like to filter the dates and again am not sure how to do that in this pivot table.

The attached file has the a tab with the data table and a separate tab with the pivot table.
Attached Files
File Type: xlsx Pivot Test.xlsx (20.9 KB, 1 views)
Reply With Quote
  #2  
Old 02-28-2023, 03:27 PM
p45cal's Avatar
p45cal p45cal is offline Row and Column Totals in Excel Pivot Table Windows 10 Row and Column Totals in Excel Pivot Table Office 2019
Expert
 
Join Date: Apr 2014
Posts: 871
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

This is because you're pivoting data which is essentially already pivoted!
In the attached is:
1. An ugly workaround added to your existing which is a calculated field. Don't use it, it's very inflexible (and it doesn't change if you add/remove things to the values area).

2. A second pivot at cell O3 which works as I think you want.
It's your data, unpivoted by Power Query in the background and a new pivot table created from the result.
In the background your data is transformed to look like this:
2023-02-28_222447.png
Attached Files
File Type: xlsx msofficeforums50506Pivot Test.xlsx (32.8 KB, 1 views)
Reply With Quote
  #3  
Old 03-12-2023, 06:58 AM
rjgriffin46 rjgriffin46 is offline Row and Column Totals in Excel Pivot Table Windows 10 Row and Column Totals in Excel Pivot Table Office 2016
Novice
Row and Column Totals in Excel Pivot Table
 
Join Date: Feb 2023
Posts: 2
rjgriffin46 is on a distinguished road
Default Thanks

I apologize for not seeing your reply sooner.

I had suspected there was something about the way the Data Table was structured that was the problem.

I'm not familiar with Power Query but was able to flail around and open it so will see if I can learn how to use it. Is it in any way similar to Power BI which I have used in the past? Any suggestions for learning would be appreciated.

Thanks very much.
Reply With Quote
  #4  
Old 03-12-2023, 07:40 AM
p45cal's Avatar
p45cal p45cal is offline Row and Column Totals in Excel Pivot Table Windows 10 Row and Column Totals in Excel Pivot Table Office 2019
Expert
 
Join Date: Apr 2014
Posts: 871
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

Quote:
Originally Posted by rjgriffin46 View Post
I'm not familiar with Power Query but was able to flail around and open it so will see if I can learn how to use it. Is it in any way similar to Power BI which I have used in the past?
Power Query is also part of Power BI.


Take a look at Articles - Excelguru
Ken Puls is well versed in Power Query etc.
Reply With Quote
Reply

Tags
column totals, date filtering, pivot table



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot totals / subtotals ProudLiberal Excel 0 03-20-2020 06:04 AM
Pivot table- % growth and difference between two items in same column by months sarana Excel 2 01-28-2019 06:42 AM
Excel pivot table Don Harrison Excel 6 06-07-2017 02:32 PM
Row and Column Totals in Excel Pivot Table How do I get column titles to show up in my pivot table? nrcahill Excel 3 03-07-2016 09:35 AM
Pivot table with numbers as column headers kezhia_0128 Excel 0 08-28-2014 12:48 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:14 AM.


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