Is there a way to have a chart dynamically update based upon filtering data?

I have a chart based upon data in my table. Basic Line Chart. Is there a way to have the chart update automatically using lookup values to only pull in certain cells in the column range?

iMac, Mac OS X (10.7.5), null

Posted on Aug 29, 2017 3:40 PM

Reply
6 replies

Aug 29, 2017 6:20 PM in response to spacebus

Hi Spacebus,

You can find examples of interactive charts in the template Charting basics.

Here is a home-grown version constructed in Numbers 4.2 under MacOS Sierra. It works also with Numbers '09.

User uploaded file

The table Chart Data pulls a row of data from the main table, depending upon the value entered in A2 (this could be a Pop-Up Menu).

Formula in B2 of Chart Data (and Fill right)

=INDEX(Weekly Data::B,MATCH($A2,Weekly Data::$A,0))

For a Category Chart such as this 2D Line, Chart Data has a Header Column and a Header Row.


Choose another week (4):

User uploaded file

The title of your question mentions filtering. An interesting project for someone to investigate. Come on Numbers gurus! Does a filtered table plot only the visible rows?


Regards,

Ian.

Aug 30, 2017 6:03 AM in response to spacebus

Hi spacebus,


Thanks for the screenshot, but I am having trouble understanding the abbreviations and how they relate to your overall aim.

Here is a simplified document, using the Filter feature in Numbers. Avoid merged cells!

Identify those rows that you want to appear in the charts (graphs) by a formula in another column (G in this example).

User uploaded file

Formula in G2 of the Master Table (and Fill Down)

=IF(AND(B2=Choose::B$1,C2=Choose::B$2),"Show","Hide")


Select the columns that you want as X and Y axes for each chart (graph) and insert those graphs.

Now apply a Filter to the Master Table

User uploaded file

You can hide the column (G) that controls the Filter.

Thanks, Barry for the hint on how to include/exclude Hidden Data in a graph 🙂.


Regards,

Ian.

Aug 29, 2017 4:42 PM in response to spacebus

Hi spacebus,


Possibly. You will need to create a table to feed the chart. The table will need to collect only the data to be charted—category names to label the x axis and the associated value for each category.


The devil, of course, is in the details.


A screen shot of what you have and what you want might help plot a path from one to the other,


Regards,

Barry

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Is there a way to have a chart dynamically update based upon filtering data?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.