Excel pie charts from pivot table columns - excel

I have a pivot table from a database that looks something like this:
Person A Person B Person C
Task A 1 3
Task B 1 2
Task C 2 1.5 1
The number is time spent on a task. If it's blank, the person didn't work on that task.
I would like to make a pie chart for each Person from the pivot table for time spent on each task, not including tasks where the cell is blank. I've tried adding various flavours of pie charts but it only ever creates the chart on the first column of the table. And when it does that, it seems to include empty cells in its key (though obviously not on the pie).
Does anyone know anything about this?

Generally, the Pivot Chart will attempt to plot whatever is in the Pivot Table (including all column titles). I think the easiest way to deal with this is to add a Slicer so that you can select the Person and have it filter the data for you. Alternatively, you can filter the Pivot Table on your own, but the Slicer is quite clean in this application.
I don't think it is possible to get multiple pie charts inside a single chart. You could use the doughnut plot if you want to see all columns plotted at once. Visually, that chart is horrible to interpret though.
Here is something similar to your data with the Slicer in place for person B. Note that the legend cleans up also since the missing keys have been filtered out of the Pivot Table itself.

Related

Excel: How do I make 4 different columns with stacked values on the same graph?

I have 2 columns (Columns A and C) that I want to create with 3 different parts of data (Parts 1, 2, and 3) in them. This leads me to believe they should be stacked columns. I also have two columns D and B, that take just one column of values from the chart. So I want to have 4 columns/bars/categories in total on the graph. How can I manipulate this graph to make it this way? I'm fairly new to Excel, but just for a note, I'm using Pivot Tables. I would also like to maintain the Quarters and Months that they are in.
Already checked this question, wasn't very helpful: In Excel, how do I make a stacked bar graph with 2 bar that have different data points?
This question suggests that I might not be able to do it, but I feel like I have seen it done before: How can I create a graph in excel that uses multiple columns and does stacked columns?
This question is really helpful, but I would like to also show the different colors in the bar. Not just make it one color for a sum: Combining Column Values in an Excel Pivot Table
Let me know if I should provide any further information or ways I need to improve this question. I'll be happy for any help. Thank you!
I think I've found a more or less simple solution, but it will require you to build a different pivot table. All your data will need to be grouped by Columns and Parts (for columns B and D it will always be Part 1, for columns A and C it will be parts 1-3). My randomly generated source data looks something like this:
Based on this source data build your pivot table with the following fields: Dates and Columns are the pivot rows, Parts are the columns, and Values are whatever you had in the values (Number in my case). Make sure to expand all selections on the pivot table for the chart to look right. the pivot will look something like this:
Finally, select any cell in the pivot table, go to Insert tab and select a stacked chart. It will produce the 4 bars you need per each month and quarter, but the disadvantage is you will have the same colors for the same part in all columns (e.g. your Part 1 will be blue in all columns A-D). You can manually override it for each individual bar if you like.

How to combine two pivot tables into one chart in excel

I have two pivot tables, each with two columns. One column is a range from 0 to 6.5, grouped by .5 and the other column is the percentage of the whole column that the data falls into teach grouping. I need to compare these two pivot tables with an area chart that shows both areas overlapping, but I don't know how to do this.
I can make an area chart for each one individually, but I don't know how to structure the data to make the aforementioned combined chart. Here is the data:
The Data and Charts
There are two ways to go about this:
1) Insert a normal area chart (not a pivot chart) and then select the two ranges
2) The better solution is to combine both the pivot tables by combining the raw data. In this scenario you would be able to use a pivot chart.
Hope this helps.

Need help on creating Custom Pivot chart

I need help in creating a Pivot chart. I have dates as a timeline and 4 categories but the values are difference between those 4 categories with points and without points.
I want a pivot chart with 4 categories as a column on each month and out of those 4 column it is stack with the value of categories without and with points
I tried creating it on pivot chart combo but it won't work and also trying to overlap two pivot chart but its ugly
The output in mind is something like this. A stack column within stack pivot chart. So example below is a column chart I need to change the value representation on each column chart that it has stack of those 4 categories with and without points
Pivot charts are very limited compared to the charting techniques that can be used in regular charts. You can build a regular chart based on the data that the pivot table returns. If the number of rows of the pivot table varies, you can use dynamic range names with formulas that capture the pivot table columns and use these for the chart.
What you describe looks very much like a stacked clustered column chart, which is not a standard chart, but can be created with a few tricks. Jon Peltier has a tutorial here for a result that looks like this:
Such a stacked bar chart out of a pivot table can be created with https://www.koia.io.
The source code is on https://github.com/centeractive/koia
Koia protects your data privacy -  you do NOT need to upload your data but it ALWAYS stays local on your machine.
 
In koia, you can create pivots with just a couple of mouseclicks:
Choose the data that you want to work with
Go to the pivot table tab in the header
Drag&drop your columns/row values as you want them to be displayed in your pivot table
Choose the “stacked bar chart” option in the upper right corner (see picture)
Koia will automatically create the stacked bar chart.
The drag&drop options allow you to play around with your data (timeline and different categories) and see the changes in real-time

Sort Excel Pivot Table with multiple rows and one value colum

I am trying to sort an Excel Pivot table by a final value.
The pivot table gets its data from an OLAP data source (SSAS).
I will try to explain the problem with the help of a simple example.
Suppose I have two Rows (Bicycle, Colour) and one Value (Sales).
I am just trying to sort the table by sales, to highlight the top items, like this:
However if I sort Sales highest to lowest it sorts by the best selling colour in each bicycle type, like this:
Similarly if I click in the Bicycle column and select Sort-->More Sort Options, it just sorts Bicycle by the highest combined sales for each bicycle type:
I have also tried creating an MDX Calculated Measure that combines the Bicycle and Colour columns but could not make it work.
I then tried pulling the data into an Excel table but that did not work either, as a table cannot overlap a range that contains a PivotTable report.
This seems that conceptually it should be quite simple. If it is not possible can someone provide the appropriate online reference. And also potential workarounds.

Excel: Pivot Table Filtering Using VBA/Slicer?

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!!! :)

Resources