I have a set of 3 columns:
keyword (consider it as a kind of tag; there are only 5 distinct)
dates (today, yesterday, ... 30 days ago)
a value for each combination of keyword and date
I can easily plot one Line Graph (see the picture below), but I need to plot all the lines. I'd like Excel to understand that each different Keyword is a different series.
Is this a pivot table or just a table?
If it's a table create a pivot table with the keywords in the Legend series on the top, the dates in the Axis (category) box on the bottom left side and the values in the Values area.
Create a line chart and there you go.
You need to use the pivot table to gather the data in series. You have to present the data in a way that will work for your chart. A flat table is not going to give you what you want.
Related
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 am facing an issue with excel offset function for a range which increases horizontally and vertically.
I have a pivot table built from raw data which keeps on updating. I am mainly concerned with products and corresponding price per quarter in the pivot.
I have created another sheet pulling the products from the pivot and corresponding blended price (calculated based on pivot values - Sales/Units).
Below is the code:
Formula to pull the products from the pivot:
IFERROR(INDEX($A$10:$A$155, AGGREGATE(15,3,ROW($A$10:$A$155)-ROW($A$9)/($A$10:$A$155<>""),ROWS($A$10:A10))),#N/A)
Formula to display the corresponding blended price for the product:
IFERROR(INDEX(AZ$10:AZ$155, MATCH($CC10,$A$10:$A$155,0)),#N/A)
Now I need to create a line chart for the above data. Below is the code for Name Manager:
Quarters=OFFSET('Blended Price Calculation'!$CD$9,0,0,1,COUNTA('Blended Price Calculation'!$CC$9:$DA$9)-1)
0.45_Saline=OFFSET('Blended Price Calculation'!$CD$10,0,0,1,COUNTA('Blended Price Calculation'!$CC$10:$DA$10)-1)
0.9_Saline=OFFSET('Blended Price Calculation'!$CD$11,0,0,1,COUNTA('Blended Price Calculation'!$CC$11:$DA$11)-1)
10_Dextrose=OFFSET('Blended Price Calculation'!$CD$12,0,0,1,COUNTA('Blended Price Calculation'!$CC$12:$DA$12)-1)
Similarly for the rest of the products
I want to the horizontal axis to be Quarters and not Products.
Dashboard - Filter based on Slicer
Original Excel without filter
Excel when Slicer filter is applied (to display only 2 products)
Problem:
The chart displays #N/A when I filter data using Slicer in the dashboard. Slicer is acting on pivot table. Basically I need help on offset function which will pick only those values which has data for both rows and columns. Currently I have the formula working for Columns but it is not working for rows, hence the line chart is considering all the rows. But since I have selected only a couple of products (using slicer) out of 100 odd products, line chart shows graph perfectly for those selected products and shows #N/A for the rest.
How can I not display #N/A in my chart legend? I think having a combination of vertical and horizontal offset function should solve my problem but I am struggling to find the solution.
Any help is really appreciated! Thank you!
The issue here is that you have hard-wired ten series into the chart. You can use range names to dynamically change the number of data points in a series, but you can't use a formula approach to dynamically change the number of series in a regular Excel chart. That will require VBA.
If you use a pivot chart instead, you can select the series with a slicer and the legend will show only the visible series.
Edit: Here is a screenshot to illustrate how a pivot chart can be filtered and unused series will not show in the legend.
I've created a Pivot Chart from my Pivot Table, and added a Treadline to forecast the next four quarters. However, the horizontal axis for the new forecasts is blank. How can I add a label to the horizontal axis for the forecasted values (i.e. Q1, Q2, Q3, Q4)?
Thank you.
Add four rows to your data table, one for each quarter, with the appropriate dates, but blank values for revenue (or whatever it is you're tracking).
Excel is looking for labels for the category and can't find any because it's not in your data. Adding blank rows will provide the category labels without adding revenue figures.
I have a csv file with the date and time (h,m,s) all split in separate columns. I would need to display the count in a chart with the appropriate date/time value. I really can't figure out how
screenshot
Remove blank rows or rows without dates, then create a pivot table. Drag date into the rows area, then hours below date, then minutes below hours, if that level of detail is desired.
Drag any field into the Values panel and set it to count. Create a chart from that.
If that does not do what you want, you need to edit your question with A LOT more detail to describe the desired output.
Edit: Another approach: construct a complete date/time value with a formula
=B1+time(0,0,C1)
(assuming that column C has time values in seconds.) Now create a pivot table with the new columns in rows and a count of CT in the Values. Build a chart from that.
If you need the X axis to be a time axis, you need to build a regular chart from the pivot table, not a pivot chart.