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
Related
The black area contains a graph, when I hide the data the graph vanishes.
I can still click on the graph and check/uncheck the "Show data in hidden rows and columns" box and I can also check the "Select data source tab" to confirm the data is still selected but it never actually appears.
What's going on and how do I fix this?
With cells hidden:
With cells un-hidden:
Confirming data sources still selected:
If your chart intersects with the rows or columns being hidden then that is most likely the issue. Right click the chart>Format Chart Area>Size & properties, then selecte something other than "Move and size with cells."
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:
I have a pivot chart of a pivot table with two row fields and one column field. I would like to hide one of the row field buttons on the chart but leave the other visible to use as a filter. I see, when I right click on the button, the option to hide all axis buttons, but that removes both of them. Is there a way to only hide one? I am creating the table and chart in VBA, so if it can only be done with code that is fine.
So in my efforts with this, I have at least been able to disable the button using the following code: ActiveSheet.PivotTables(1).RowFields(2).EnableItemSelection = False. The button is still visible though. Currently I am hiding it by pasting a white shape over it, but I consider this a clunky option.
I have a document that I have built tables of data into that are formula driven. I created charts for these tables and for reporting purposes applied filters to these tables to make the charts more readable. The way this works is the user selects an option from an ActiveX combo box which triggers the filter on the table thus making the chart only display the filtered values. All of this works very well except when I add more data in the form of new row or columns to my table. The result is when you select an option from the combo box the chart just appears blank. This only happens sometimes and I have yet to figure out why. The attached picture is showing what the charts data looks like when I chose select data after this problem occurs. As you can see there is data that should be displayed in the dialogue box but it appears empty, likewise the chart is empty. If I copy and paste the chart the data then appears in the new chart, until I select a different option from the combo box, then it disappears again. Very confusing and frustrating. Any ideas as to why this is occurring?
I figured it out! I needed to recalculate the sheet.
Worksheets("Sheet1").Calculate
This seems to work fine.
I'm importing data from a SQL Cube and have several row labels I'd like to show. Is there a way to NOT have the hierarchical view? (aka no plus signs for the first row values, and instead show the second row label's value next to the first row labels, etc.) I'd like to see ALL data without it being hidden or aggregated together.
Figured it out...
It's under PivotTable Tools > Design > Report Layout > Show in Tabular Form