How to Include Filtered Rows in a Chart in Google Sheets

I usually prefer to exclude filtered rows in charts, as it helps fine-tune the visualization. However, I want filtering not to affect the chart in some situations. Google Sheets provides a built-in option for this. Below, you’ll find step-by-step instructions on including filtered rows in a chart in Google Sheets.

Ways to Include or Exclude Filtered Rows in a Chart

You can control whether filtered rows appear in a chart using two methods:

  1. The built-in option in the Chart Editor pane.
  2. The pop-up notification that appears in Google Sheets when filtering data.

Let’s start by creating a basic pie chart and applying the necessary settings.

Sample Data for the Chart:

StudentMark
a88
b99
c86
d90
e91

Select columns A and B (A1:B) and navigate to Data > Create a filter. Next, create a pie chart using the following steps:

  • Select the range A1:B.
  • Go to Insert > Chart.
  • In the Chart Editor, set the Chart type to Pie chart.

How Filtering Affects a Chart in Google Sheets

Before learning how to include filtered rows in a chart, let’s see how filtering affects a newly created pie chart in Google Sheets.

Click the filter icon in cell A1, uncheck student names ‘a’ and ‘b’, and click “OK.” This action will exclude the relevant data points from the chart.

How Filtering Affects a Chart in Google Sheets

When you filter your data for the first time after creating the chart, you may see a notification at the bottom of your screen stating, “Data in filtered rows is excluded from the chart. You can change the setting in the chart editor.” This notification allows you to enable or disable the inclusion of filtered rows in the chart. However, the notification disappears after a few seconds, and filtered rows are eventually excluded from the chart.

Can I Re-enable the Notification or Use Another Method to Control Filtered Rows in Charts?

Yes! Below are two ways to manage filtered rows in charts.

Two Methods to Include Filtered Rows in a Chart in Google Sheets

1. Include/Exclude Filtered Rows Using the Chart Editor Pane

This is the recommended method.

Step 1:

  • Double-click on the chart to open the Chart Editor pane on the right-hand side of your screen.

Step 2:

  • Scroll down to the bottom of the Setup tab.

Step 3:

  • Enable the Include hidden/filtered data option.
Include Filtered Rows in a Chart Using the Chart Editor

2. Re-enable the Notification to Control Filtered Data in Charts

I often follow this method as I find it convenient.

Assume your data is filtered and the chart has excluded the filtered rows. To re-enable the notification that allows you to control filtered rows, follow these steps:

Step 1:

  • Assume your chart is in Sheet 1. Just navigate to Sheet 2, then return to Sheet 1.

Step 2:

  • Right-click and hide any visible row in the chart source data in Sheet 1. The notification will reappear.
Re-enable the Chart Notification in Google Sheets

By following either of these methods, you can ensure that filtered rows remain included in your chart in Google Sheets.

More Chart Tips and Tricks:

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

How to Sort Pie Slices in Google Sheets

To sort pie slices in a pie chart, you need to sort the data...

Filter Items Unique to Groups in Google Sheets

In this tutorial, we'll learn how to filter items unique to groups in Google...

Find Common Items Across Multiple Columns in Google Sheets

This tutorial explains how to find common items across multiple columns in Google Sheets....

Sort Column by Length of Text in Google Sheets

To sort a column by length of text, you can either use the QUERY...

More like this

How to Sort Pie Slices in Google Sheets

To sort pie slices in a pie chart, you need to sort the data...

Filter Items Unique to Groups in Google Sheets

In this tutorial, we'll learn how to filter items unique to groups in Google...

Find Common Items Across Multiple Columns in Google Sheets

This tutorial explains how to find common items across multiple columns in Google Sheets....

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.