I have data as below in 3 columns:
I have created a simple pivot table which looks like this (Invoice Day filtered for days 2 & 4 only):
I need to modify the pivot to group some rows and display both grouped and ungrouped data. This would change the Grand Total as well. The Pivot table should look like this after it is grouped:
I tried working with pivot table options a lot but cannot achieve this. Appreciate any help on this!
I see that this is an interview question.
What I'd do is adding another column to the source data, say ProductGroup which contains SG+WI for SG and WI products, and CC for the other product. By dragging the ProductGroup field to the pivot table, you will achieve your desired result without getting wrong totals.
Related
I have a pivot table with distincts value. Short story it was needed for manual adjustment of quantity and also I have no access to Power Pivot.
Is there a way to sum columns inside the pivot table? I have to sort and filter by supplier and adding column with formula outside of the pivot table would not make it all follow when filter or sort.
Please see below image
Thanks!
I have three fields in my pivot table. Each field is connected to one column in my data sheet.
The goal is to group the 0-30 data (0-30 $ Change),and (0-30 % Change) into one field, and then a slicer with 0-30 as one of the options out of 60-90, 90-120.
Currently I have a combined Pivot Table that looks like this:
Again the goal is to make one slicer that would have the 0-30 data as one option in the slicer, the 30-60 data as one option in the slicer and so on...any help would be appreciated :)
With PIVOT functionality and some formulas my approach would be to concatenate 0-30 data with 0-30 $ Change and 0-30 % Change in one column in the source and then present it in the pivot ROWs area. Here is how it looks wiht some sample data:
The second image is how the modified source looks like with the formulas used in the top row with yellow ready to be copied down:
If questions, please do let me know.
Are you looking to 'switch out' the values fields depending on what someone selects in the Slicer? If so, check out my answer at Converting multiple variables into values with excel pivot tables or power pivot
Basically, youreate a new PivotTable from a data source that contains nothing but the options that you want to show up in the slicer. i.e. '0-30', '30-60' etc. Create a slicer for that PivotTable, and when a user clicks on it, catch the resulting PivotTable_Update event and use it to change which fields shows up in your existing master PivotTable.
See the other thread for more on how to do this.
I am looking to create a consolidated pivot table (similar to the one shown in Pivot Table - Keys from multiple columns) but the source table also contains another column which lists department names. I'm struggling to create the consolidated pivot table which includes a filter (or slicer) based on the department name.
Does any one have any ideas on how to solve this?
Let me know if you need more info.
Much appreciated!
You need to UnPivot your source data before you create your PivotTable. If you give Google a spin on "VBA" and "UnPivot" you'll turn up some great code, including these:
http://dailydoseofexcel.com/archives/2013/11/21/unpivot-shootout/ (Look for the code block at the bottom below the 'Update 26 November 2013' heading)
http://yoursumbuddy.com/data-normalizer/
Gold star for whoever solves this! :)
I have a pivot table that has data from various attributes attached to unique ID numbers from an OLAP cube report. When I select ID# as a pivot field and all the corresponding attributes ie: Name,age,etc I end up getting about 10k ID's with 10k corresponding attribute values. I have a list of 3k ID#'s which I want to filter my report by. What is the best way to do this?
Simple example: Pivot table displays ID# 1,2,3,4,5 and corresponding attributes such as name,age,etc
I want to filter ID#'s from a column of values I have in another worksheet for example the column in other worksheet would have ID#'s 1,2,3 (Which in theory would omit values 4 and 5 from pivot)
(Keep in mind I am dealing with thousands of rows this example is made simple just for explanation)
I thought a VBA slicer combo might work, but I have no clue how to set up a slicer so when it is created it has only values selected from a column of values.
In my example VBA slicer will have ID#'s 1,2,3 selected upon creation or an easy way to select multiple ID#s from a list or something as I can't feasibly click through 3k values
Possible Solutions I Brainstormed
I was also thinking maybe just a VLOOKUP or something that will pull ID#'s against the column and also bring all corresponding attributes? The thing is I like the cube report being dynamic and updating with the slicer.
I then also thought to create a slicer based off of another pivot table which is composed simply of a header of ID#'s and lists ID# 1,2,3 I created in another worksheet and try and use that simple slicer against the OLAP cube, but the issue is the slicers have different connections and they can't overlap. :(
Any and all help is much appreciated!!! :)
I'm running into a bit of a problem which I'm guessing there exists an easy solution to which I've overlooked.
I'm trying to add a column to a pivot table that is the sum of two other columns in the pivot table. All of the documentation that I've seen has told me how to make a calculated field based on the columns in the original data set.
I've added a column to the right of my pivot table that does exactly what I want - summing columns B and C in the pivot table:
Unfortunately this column is not considered as part of the pivot table so pivot charts do not include it.
There HAS to be an easy solution to this that I'm overlooking. Does anyone know what I'm doing wrong?
Best regards,
MoarCodePlz