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.
Related
I have a matrix of data, with similar values across 5 columns and 5 rows. What I would like the function to do is to return the column text corresponding to where a specific value is. The matrix is dynamic, so there is no fixed cell within the matrix that contains this value, but I know the value from a separate function.
I believe what you're looking for is pivot tables. Pivot tables are super versatile and often overlooked. Here's a great resource for using pivot tables to accomplish what you're looking to achieve Create a PivotTable to analyze worksheet data.
Tip, if you're going to use a pivot table which I believe is your best solution here, remember to define your data as a table prior to creating a pivot table from it.
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.
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
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.
I have Pivot table with one Axis field (containing 13 elements 0-12) and two Values series. One of the series (A) has 13 values. The other series (B) has only 3 elements.
When I make a pivot table, I'm able to hide the zero values using this explanation :
Excel 2010: Hide 0 values in Pivot
However when I make a pivot chart (line chart) the series B keep showing zero (or a line dropping to the x-axis). I want the line of the series B to stop when there are no values (the line should be floating on the chart).
Anyone has an idea how to achieve this ?
I faced a similar issue where the Series drops down to Zero.
I have a Pivot Chart linked to a Pivot Table with multiple Series for 7 different Key Figures & other Fields. I pick up my source data from BEx/BI using Formula to bring in some extra Columns & apply some miscellaneous formatting. This data is then forms the basis for my Pivot Table & Pivot Chart.
I found that you cannot filter the Pivot Table as the Fields do not contain items. You cannot use NA() or even "" (double-quotes) using Formula - this is because when using different kinds of aggregation within the Pivot Table the NA() cannot be SUMMED and hence the Series is not displayed. It also appears that setting a Cell to blank using "" (double-quotes) in a Formula has no effect either. I even tried #DIV/0! errors & then hiding the errors - no luck.
As a workaround, the "only" way I have found so far that works is to manually Filter my final data input for the Pivot Table by zero and then simply delete the values. Refreshing the Pivot Table then allows the Pivot Chart to hide the blanks and the data points will not be displayed. This means that any Series with intermittent values are displayed correctly.
Found a trick: in the data field use =if(x=0,na(),x/y). The graph will be fine but the table will look ugly (with #NAs). You can use conditional formatting on the table to set the font color as white when there is an error.
Voila!!!