10.3 Graph Data Slicer


Besides applying filter to worksheet (i.e. worksheet data slicer), you can apply filters on graph directly (i.e. graph data slicer).

Data slicer 01.gif

Contents

Worksheet Data Slicer vs. Graph Data Slicer

If the source worksheet has any filter, turning on data filter on any graph plotted from this worksheet will apply the existed worksheet filter. This is called worksheet data slicer.
Worksheet data slicer applies to worksheet and will also to all graphs plotted from this worksheet. Changing filters (condition or enable/disable status) in the graph will update worksheet and all graphs created from this worksheet. Vice versa.
If the source worksheet has no filter, turning on data slicer on any graph plotted from this worksheet will pop up dialog allowing you to choose a column to apply filter to. This type of filter is called graph data slicer.
Graph data slicer only applies to current graph and NOT touches data in the source worksheet. That is to say, the filter on current graph will not affect other graphs even though they are all plotted from the same worksheet. If you delete the graph window on which the data slicer is based, all analysis and performance derived from this slicer will also be removed.

We always recommand graph data slicer not only because it only affects the current graph (in this sense independent of source worksheet), but also because it has more useful features such as duplicate plot(s) for comparesion, and will keep improving in the feature.

Add Data Slicer to Graph

  1. Active a graph whose source worksheet has no data filter applied.
  2. Select menu Data: Slicer.
    Or,
    Click Add/Remove Data Filter button Button Add Remove Column Filter.png on the Worksheet Data toolbar.
    Or,
    Hover the cursor over the edge of the graph page until the cursor changes to Data slicer mouse.png. Single clicking on the blank area will bring up the page-level mini toolbar. Click Data Slicer button.
    Data slicer 02.png
  3. A Add Slicer to Graph dialog opens.
    Data slicer dialog 02.png
  4. The Data Slicer panel will be turned on at the left side of the graph window, listing the filter you just set. Graph will update accordingly. You can view and change the current filter condition, add more filters, remove existed filters, or reorder them, see next section for details.
    Data slicer 01.png

    If the source worksheet (from which the graph is created) has one or more filters, no matter the filter is enable or not, turning on Data Slicer panel (by Data Filter button ton Button Add Remove Column Filter.png) will transfer all the worksheete filters to the graph window.

    In this case, you CANNOT add a new slicer. You can only view and edit the existed filters. See next section for available editions.

Filter Controls

Data slicer 12.png
Add Filter To All Plots Select a column from sub-menu list to add a new filter to layer level, which will apply to all plots in all layer but have independent filter control in each layer level. In this case, you can set different filter conditions to diffferent layer filters for comparison.
Add Common Filter to Page Select a column from sub-menu list to add a new filter to page level, which will apply to all plots in all layers and have a common control in page level.
Change X/
Change Y
Change X/Y if all layers share the same X/Y column, and rescale to show all.
Duplicate Layers With Filter(s) Duplicate layers with filter(s) to the current graph for comparison.
Auto Rescale Check this item to auto rescale axes according to the filter results.
Data slicer 11.png
Multiple Selection/
Single Selection

Filter on a Text/Categorical column can have Multiple Selection' and Single Selection. Choose the menu item to switch between the two selection modes.

Custom Filter/
Change Condition Type

Different options are provided according to the format of the column to which the filter is applied.

  • Text & Categorical
    • Right click on a text/categorical slicer and select Custom Filter... context menu to open the Custom Filter (Advanced Text) dialog for advanced editting. Refer to this page for how to set a text filter.
  • Numeric
    • For simple editting, left-click on a Numeric slicer to open the Simple Numeric Filter dailog, or right click on the slicer to select Change Condition Type context menu and select a condition from the pop-up list.
    • Right-click and select Custom Filter... context menu to open the Custom Data Filter dialog for advanced editting. Refer to this page for how to set a numeric filter.
    • Select Change Condition Type: Load to load a saved filter condition.
  • Data & Time
    • For simple editting, left-click on a date and time slicer to open the Simple Date Filter dailog, or right click on the slicer to select Change Condition Type context menu and select a condition from the pop-up list.
    • Right click and select Custom Filter... context menu to open the Custom Data Filter dialog for advanced editting. Refer to this page for how to set a date filter.
    • Select Change Condition Type: Load to load a saved filter condition.
Change Filter Column

Choose a column from the pop-up list to switch the current filter to.

Move To Page As Common Filter

For a data slicer based on current layer, choose this item to move it to page level so that the filter condition is applied to ALL layers (all plots) and share the same filter control.

Delete Filter

Delete selected data slicer.

  • You can also click Add/Remove Data Filter button Button Add Remove Column Filter.png on the Worksheet Data toolbar to remove ALL data slicers on the current graph window.
  • Note that all analysis derived from slicers will also be removed.

Explore Graph with Data Filter

Extract Filtered Data

Right click on the filtered plot and select Create Slicer Copy as New Book.

A workbook named Slicer will be created containing the filtered data. Filter condition shows in the User-defined parameter.

Creaate Slicer Copy as New Book.png

Analysis on Graph with Graph Data Slicer

DataSlicerwithAnalaysis.gif

Things you need to know...

and add a data slicer, the linear fitting results will NOT update if you change the filter condition.

Data slicer 08.png