Create graphs by group in Excel - excel

I have data that has different groupings.
The amount of rows could change from data pull to data pull.
I need to create graphs by these groupings that can change dynamically each time I run the data.
Is their a way to do this without having the change the data for each grouping each time?

Make the Data into a table in excel, then use the table reference for the graph, preferable a pivot chart. Data can be added at the bottom of a set of data set up as a table and the additional rows will be added to the table.
Here are some links about setting up tables and pivot tables/charts up.
http://www.wikihow.com/Create-Pivot-Tables-in-Excel
https://www.youtube.com/watch?v=IaOtCWxx3xU
https://support.office.com/en-us/article/Create-or-delete-a-PivotTable-or-PivotChart-report-d09e4d07-8cd6-4b60-afad-8fb67418800f

Related

EPPLUS - Charts not updating after table grows

I have an Excel file with a table and several charts created from data in the table. I need the charts to take any new data when the table grows. It works fine if I work from Excel, obviously (i.e. when I add a new row, the charts make room for the new data and when the numbers are added, the charts show the changes).
But I need to do it programmatically with Epplus. I've managed to add a row to the table and have it update all the formulae in it properly, but the charts are not updated.
Any idea of why this is? Is it a known limitation of EPPlus?
Or do I have to traverse all the charts and update the data series for each?

Pivot Table Value Adjustments

I have a pivot table from multiple tables. When I double-click my pivot table data, it produces a copy of the row(s) that data came from. Is there a way for me to make adjustments aka change the values of cells in these rows, and have it only adjust the pivot table?
What I'm mainly looking for is an easy way of viewing the data through the pivot table, and adjusting it without it necessarily affecting the source tables. Right now when I adjust a row produced by the pivot table, none of the values in the actual pivot table get updated.
What about producing a new PivotTable from the drilldown sheet that got produced when you double-clicked the old PivotTable?
That's about as close as you're going to get, I'm afraid.
The pivot table is a visualization tool only. It summarizes that data that you input into the pivot table, and gives you a visual output.
If you want to change that visual output, you have to copy the relevant part of the pivot table to another area (different cell or sheet, doesn't matter). Then, you can edit that table.

Dynamic charts from pivot

I have a data set that I am using as an input to a pivot table. I have transformed that data set into a table, so that every-time I add something to the data set, the pivot gets updated automatically. I have also added a line of code, so that every-time a user clicks on the sheet containing the pivot table, the table gets refreshed automatically. Now I need to have a chart (linked to the pivot table) that updates automatically every-time the pivot refreshes (like rows or columns also increase/decrease).
You could use a dynamic named range in order to get the chart data to update automatically. Without knowing what your data looks like, I'll just provide you with a generic version assuming your data is in A1:C5.
=OFFSET(A1;0;0;COUNT(A:A);3)
This will create a range that is 3 columns wide and goes until the last row with data in column A.

Structure Reference for Excel Pivot Table Column Labels for Named Range

I'm interested in creating a chart for which I can easily change the data source from which the chart is created. However, as I am hoping to grab this data from a pivot table (as I am using a Mac and cannot create pivot charts), I am having some difficulty constructing the named range.
The link below shows what I am hoping to do but with a pivot table rather than a normal table:
http://www.get-digital-help.com/2013/11/06/quickly-change-chart-data-source/#comment-66012
Is this possible? If so, how can I adapt the formulas given in the linked website to use with the pivot table?
Thank you in advance!
Goto Insert --> Pivot Chart
Select the data cells along with header. (Apply required formulas to your base data itself)
Choose existing or new worksheet as per your requirement.
Select the column labels and row labels and sigma values according to your requirement.
Automatically a pivot Bar graph would be generated. This will also have a default filter option where if you select particular values, the graph will automatically get changed.
If there are any modifications to data, just right click the pivot graph and click refresh Data.

Create Multiple 'PivotCharts' on One 'PivotTable'

Within my Excel Spreadsheet I have a PivotTable which is based on data retrieved from a SQL query.
The PivotTable is made up of a series of customers, each with their own stock value.
I made a PivotChart, but as there are many customers, the lines on the Chart are unreadable.
I want to make an individual chart for each customer, however when I filter on one customer, every chart filters on that customer - not allowing me to do one chart for each
Is there a way around this?
After investigation, adding more than one PivotChart distorted the layout of the underlying data.
Therefore it is necessary to read the same data into the Excel spreadsheet twice to have a second PivotChart.

Resources