I made the pie chart clickable in active report and linked to data deck and to filter on lists but the thing here if it's possible to multi select on chart and how to make it reset to show all items I can't make it anti select so it show all as when it loaded
anyone faced that before
I think I understand what you are trying to do here.
You appear to be trying to set the value of a filtered pie chart in an active report to be unfiltered, or similar to a case where you have "selected all"
The simplest way to do this is to create a button that will set the variable filtering the chart to empty. Since you are not filtered all values will be shown.
Source
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 am trying to create a static format for pivot chart in MS Excel (including same colors and the same chart-type). I have created a format template and applied it to the pivot chart, but after applying filter within pivot chart, all defined colors and chart type are gone. They are set to default.
I have researched and it seems that this is a typical behaviour for Pivot charts/Filters in Excel, but someone maybe knows workaround. Because in my case predefined colors and chart type are really important!
I have found the workaroud in Excel and VBA.
Excel steps
Choose one specific filter (it is best to select the default filter in the pivot diagram)
First set all colors for all series manually in data series options (click twice on diagram). It is important that the filling is set instead of automatic, single-color filling.
Set diagram type manually (right click -> change diagram type). Select the desired chart type for all data series.
VBA steps (necessary for changing diagram type!)
Right click on the tab where the diagram is located -> Show code
Add Worksheet_PivotTableUpdate subprocedure (every time the pivot table changes, including the filter, this procedure is called)
Activate the chart with:
ActiveSheet.ChartObjects ("chartName"). Activate
Reference the name of the data series that a certain diagram type should have (e.g. line chart)
ActiveCharts.SeriesCollection ("Series_Name"). Select
ActiveCharts.SeriesCollection ("Series_Name"). ChartType = xLine
I'm looking to set up a scroll bar in Excel that corresponds to what set of data I use for a chart. I have built a 2-value doughnut chart that acts as a percentage gauge (green section is completed and grey is 100% minus the completed part).
I want to be able to choose what month's data I use for this chart using the scroll bar. All I can seem to find online is how to modify the number of rows and columns that are displayed on a graph rather than actually using the scroller to pick what data to display.
In addition, how would I make it default to the current month? Any help would be appreciated!
For anyone that is looking for a similar solution, I have figured it out. It works with something called a dynamic range. Use the value of the scrollbar to determine the offset of rows (pick which row of data to use). Then link that dynamic range to your chart in place of where you would select the data.
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.