Share via


SlicerCacheLevel.CrossFilterType Property

Gets or sets whether a slicer is participating in cross filtering with other slicers that share the same slicer cache, and how cross filtering is displayed.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property CrossFilterType As XlSlicerCrossFilterType
    Get
    Set
'Usage
Dim instance As SlicerCacheLevel
Dim value As XlSlicerCrossFilterType

value = instance.CrossFilterType

instance.CrossFilterType = value
XlSlicerCrossFilterType CrossFilterType { get; set; }

Property Value

Type: Microsoft.Office.Interop.Excel.XlSlicerCrossFilterType
Specifies whether a slicer is participating in cross filtering with other slicers that share the same slicer cache, and how cross filtering is displayed.

Remarks

Read/write.

If more than one slicer is associated with the same PivotTable, by default, if the item or items you filter by in one slicer have no corresponding data in another slicer, those items will be dimmed. For example, if you have Country slicer and a State slicer, and you click a country in the Country slicer, all states in the State slicer that are not in that country will be dimmed. This feature is referred to as "cross filtering."

The user interface settings that correspond to the setting of the CrossFilterType property are the Visually indicate items with no data and Show items with no data last check boxes in the Slicer Settings dialog box. Setting the CrossFilterType property to xlSlicerCrossFilterShowItemsWithDataAtTop corresponds to selecting both the Visually indicate items with no data and Show items with no data last check boxes. Setting the CrossFilterType property to xlSlicerCrossFilterShowItemsWithNoData corresponds to selecting only the Visually indicate items with no data check box. Clearing both check boxes corresponds to setting the CrossFilterType property to xlSlicerNoCrossFilter.

Slicers filtering non-OLAP data sources (SlicerCache.OLAP = false) are not supported by the CrossFilterType property of the SlicerCacheLevel object. For slicers filtering PivotTables based on ranges, lists, and non-OLAP relational data sources, use the CrossFilterType property of the SlicerCache object, instead.

See Also

Reference

SlicerCacheLevel Interface

SlicerCacheLevel Members

Microsoft.Office.Interop.Excel Namespace