I'm struggling to understand how to create a pivot table from raw data i have.
The reason i need to do this is so i can use the column names as slicer and further create filterable pie chart, but with the current data set i have no idea how to create pivot table.
Expected result:
Slicer for the regions and pie chart for the product groups, so when i press a region i get the revenue for the regions in the pie chart.
I hope my explanation is understandable.
So, i got to the conclusion that i have to restructure my data.
What i did was calculate for each product group its revenue per region.
It should look like this:
Afterwards it was easy to make the pivot table and pie chart from the pivot table, with slicer for regions.
Related
Ugh. As you can see, my pivot table has a problem - I probably don't understand pivot tables very well in that case.
I want the pivot table to state "Months" in the first column and not "Row Labels".
Also, I'd like to have a horizontal line appear at an exact percentage in my chart. How would I do that?
Please help.
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.
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
In order to simplify a stacked bar chart, I am looking to sum up the counts of multiple columns I have in my pivot table. For example, in this sample table, I would like to combine Fruits and Vegetables into one column, so that each bar will comprised of three colors: one for Meats, one for Grains, and one for Fruits+Vegetables.
Pivot Table and Stacked Chart
For reference, this is the data source:
Data Source table
I tried adding a Calculated Field, but I'm not sure if I can use specific values from a column in the Formulas field. Is there a way to create something like this from a pivot table, or should I be taking a different approach to this all together?
I'm using Excel 2016, -- pretty sure it's the same with older versions, but the premise is the same.
In your pivot table, Select the Pivot Table Tools> Analyze tab, then "Fields, Items",then pull down to"Calculated fields". Enter a name for the generated field, and the formula you want to use:
In my example, I added the fields Fruit and Vegi's from my available pivot table fields (which is based on my data table).
Then select the calculated field as you would any other..
and create the chart as usual.
Hope this helps.
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.