I generated a pivot chart from a pivot table. The chart type is stacked columns. The problem with the pivot is that it generated automatically the order of the stacks and I can't set them in the order I want
Do you know if I can rearrange the stacks order in a Pivot Chart?
I want to do this because I have some other chart type for some data (line) and the lines need to be on the same level with the stacks.
Any idea?
Thanks!
The most straight forward way to do this is to rearrange their order in the associated pivot table. You should be able to drag the labels in the table and see the result in the chart.
There is also another way using the sort options within the legend drop down menu. But I've always found dragging items around the chart to be really difficult
Related
so far when I want to choose columns which I want to show in the graph, I have to click on the pivot table and then choose columns fom pivot fields. Is there a faster way to do that? I would like to add some nice looking list under the graph from which I could choose columns to show.
You don't need to use the PivotTable, you can add columns directly to the PivotChart using the same interface as for PivotTables. Right click on the PivotChart and select "Show Field List" as the bottom. The control pane will appear on the right.
Building a custom user interface below the PivotChart would require a significant amount of VBA and would not perform as well.
I've got a table containing data and on the right are four columns aggregating a few of the lines resulting in new data. Having this the lines between aggregated data are empty and trying to chart that data results in gaps in the chart.
I want to chart only the aggregated data not the (empty) lines between. At the moment I've tried using #NA or NA() and properties in the select-data-dialog but nothing works. The only thing would be to deselect every empty line in the select-data-prop-window but there's of data and this would be too much work everytime new data comes.
A fairly simple approach is to use a PivotChart:
Select the data and Insert a PivotTable
Add Label and Data elements to the PivotTable
Summarize Data by Sum
Hide the Row Label that is blank or has #NV to exclude the rows without data
Select the PivotTable then go to the PivotTable Tools > Analyze tab
Click the PivotChart button then select chart type
A very simple but temporary solution, is to use an autofilter to hide the blank rows:
From:
To:
Suppose I have a pivot table:
Now if I add a column in it turns into this:
Clearly the formatting has messed up on the lighter blue cells at the top. I wish these to be the same dark blue as the original.
Even worse it does this when even just the values of the raw data behind the pivot changes, let alone adding columns etc.
Is there a fix for this to lock the formatting as I am having to update many such pivots and changing the colour each time I make a single change on the raw data or want to add a new column on every pivot is getting tedious.
I have looked online and looked into preserve cell width + formatting option bt messing with those has not helped.
Any ideas?
PS: Can anyone embed the images for me?
If you want to preserve the formatting, you need to add a new pivot table style. Within a pivot table, choose Design on the ribbon. You'll see swatches of the existing pivot table styles. Choose the down arrow and "New Pivot Table Style."
This dialog box will appear.
From here, you could specify the header, total row, and row styles you'd want. Once applied to a pivot table, new columns won't affect the style.
I have intermediate excel skills and am relatively new to pivot charts and slicers. I have made a pivot chart out of production-related data. Next to the chart is a slicer that displays all the different products in production. Basically, whenever the user clicks on one of the products in the slicer, it displays a bar graph mixed with a line graph. If the bars are exceeding the line, then the product is considered "critical" (it is exceeding production capacity). I want to use conditional formatting (or another method, preferably not a macro) to highlight the products on the slicer in red that are critical.
Thanks in advance for your help.
You can't conditionally format Slicer Items. Instead, your best bet is to use a second PivotTable that only shows the critical products in it.
I have a chart that works and presents the data as I expect.
When I use Data Grouping of the data and collapse that data region it seems it's no longer available for the chart. Is this correct / is there a way around this (other than creating a summary data set manually?)
This is true when the chart is on the same tab or not.
The default setting on charts is to not include data from hidden columns and rows in the chart. To change this do the following:
Right-click the chart and click Select Data...
Click the button Hidden and Empty Cells
Check the box Show data in hidden rows and columns