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:
Related
I'd like to show in the chart below as title the selection from the slicer. I see two possbile options:
Select the unique row from the table below where the data is from. I've tried Unique function, but it gives me all the unique items from the table, rather than only the selected item
Possible vba code to save the value from the slicer and save in a speficic cell?
I have a slicer containing values from 0.00-1.00, connected to a pivottable.
I would like to have a scrollbar to control these slicer values instead of having to select them individually.
I have looked into the timeline option, but that obviously only applies to dates, which I can't use.
The second option I have been trying is the ActiveX controll scrollbar. I thought I'd then use the scroll bar as a maxium value for the slicer, but I don't know if it's possible to connect the slicer to a cell?
I ended up adding the slicer content as an extra row in the Pivottable and then recording a macro where I filter the content to some arbitrary values.
I then adjusted the macro to reference the cell values linked to the scroll bar.
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
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