Chart based on Store selection

IvanYerk

Board Regular
Joined
Aug 26, 2018
Messages
61
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I rarely post questions on here as I've so often been able to find posts on how to solve my problem. In this case, I'm struggling. I want to chart data based on the selection of a Store. How do I do this?

Gross SalesOct-18Nov-18Dec-18Jan-19
Store A 79,942 74,361 75,260 71,771
Store B 70,669 65,432 77,234 67,521
Store C 43,685 42,508 56,921 38,843

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>



<colgroup><col><col><col><col><col span="2"><col span="3"></colgroup><tbody>
</tbody>
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I think your problem lies in how you have your data laid out. If it were me, I would have 3 Columns of data. The header row would be STORE#, DATE, SALES. I would then move the sales data to the appropriate corresponding cells.

With your data set up like this you can create a pivot table and then a pivot chart off of the pivot table. Once that is done you can filter the pivot table by whatever store or stores you want and the chart will automatically update. You can even filter by store right on the chart itself.
 
Upvote 0
You can take the data just as you have, and convert the range into a Table. Select the range, press Ctrl+T, check my data has headers. I changed "Gross Sales" to "Store".

Then make a chart from the Table, switching rows and columns if necessary.

Add a slicer to the Table, link it to the Store field. When you use the slicer, the unselected rows are hidden, and only the visible ones appear in the chart.

ndKDVlU.png
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,208
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top