ExcelPivotFilter
OfficeIMO.Excel
Describes a pivot table label or value filter to author.
Inheritance
- object
- ExcelPivotFilter
Usage
Explore 60 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 60
- Method ExcelPivotFilter.BottomCount
- Method ExcelPivotFilter.BottomPercent
- Method ExcelPivotFilter.BottomSum
- Method ExcelPivotFilter.Date
- Method ExcelPivotFilter.DateBetween
- Method ExcelPivotFilter.DateEquals
- Method ExcelPivotFilter.DateLastMonth
- Method ExcelPivotFilter.DateLastQuarter
- Method ExcelPivotFilter.DateLastWeek
- Method ExcelPivotFilter.DateLastYear
- Method ExcelPivotFilter.DateMonth
- Method ExcelPivotFilter.DateNewerThan
- Method ExcelPivotFilter.DateNewerThanOrEqual
- Method ExcelPivotFilter.DateNextMonth
- Method ExcelPivotFilter.DateNextQuarter
- Method ExcelPivotFilter.DateNextWeek
- Method ExcelPivotFilter.DateNextYear
- Method ExcelPivotFilter.DateNotBetween
- Method ExcelPivotFilter.DateNotEquals
- Method ExcelPivotFilter.DateOlderThan
- Method ExcelPivotFilter.DateOlderThanOrEqual
- Method ExcelPivotFilter.DateQuarter
- Method ExcelPivotFilter.DateThisMonth
- Method ExcelPivotFilter.DateThisQuarter
- Method ExcelPivotFilter.DateThisWeek
- Method ExcelPivotFilter.DateThisYear
- Method ExcelPivotFilter.DateToday
- Method ExcelPivotFilter.DateTomorrow
- Method ExcelPivotFilter.DateYearToDate
- Method ExcelPivotFilter.DateYesterday
- Method ExcelPivotFilter.DynamicDate
- Method ExcelPivotFilter.Label
- Method ExcelPivotFilter.LabelBeginsWith
- Method ExcelPivotFilter.LabelBetween
- Method ExcelPivotFilter.LabelContains
- Method ExcelPivotFilter.LabelEndsWith
- Method ExcelPivotFilter.LabelEquals
- Method ExcelPivotFilter.LabelGreaterThan
- Method ExcelPivotFilter.LabelGreaterThanOrEqual
- Method ExcelPivotFilter.LabelLessThan
- Method ExcelPivotFilter.LabelLessThanOrEqual
- Method ExcelPivotFilter.LabelNotBeginsWith
- Method ExcelPivotFilter.LabelNotBetween
- Method ExcelPivotFilter.LabelNotContains
- Method ExcelPivotFilter.LabelNotEndsWith
- Method ExcelPivotFilter.LabelNotEquals
- Method ExcelPivotFilter.TopCount
- Method ExcelPivotFilter.TopPercent
- Method ExcelPivotFilter.TopSum
- Method ExcelPivotFilter.Value
- Method ExcelPivotFilter.ValueBetween
- Method ExcelPivotFilter.ValueEquals
- Method ExcelPivotFilter.ValueGreaterThan
- Method ExcelPivotFilter.ValueGreaterThanOrEqual
- Method ExcelPivotFilter.ValueLessThan
- Method ExcelPivotFilter.ValueLessThanOrEqual
- Method ExcelPivotFilter.ValueNotBetween
- Method ExcelPivotFilter.ValueNotEquals
- Method ExcelPivotFilter.WithWholeDay
- Property ExcelPivotTableOptions.PivotFilters
Methods
public static ExcelPivotFilter BottomCount(string fieldName, string dataFieldName, int count, string? name = null, string? description = null) #Creates a bottom-count pivot filter for the specified data field.
Parameters
- fieldName string
- dataFieldName string
- count int
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter BottomPercent(string fieldName, string dataFieldName, int percent, string? name = null, string? description = null) #Creates a bottom-percent pivot filter for the specified data field.
Parameters
- fieldName string
- dataFieldName string
- percent int
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter BottomSum(string fieldName, string dataFieldName, double value, string? name = null, string? description = null) #Creates a bottom-sum pivot filter for the specified data field.
Parameters
- fieldName string
- dataFieldName string
- value double
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter Date(string fieldName, ExcelPivotFilterType type, DateTime value1, DateTime? value2 = null, string? name = null, string? description = null) #Creates a fixed date pivot filter using a supported Open XML pivot filter type.
Parameters
- fieldName string
- type OfficeIMO.Excel.ExcelPivotFilterType
- value1 System.DateTime
- value2 System.DateTime? = null
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateBetween(string fieldName, DateTime from, DateTime to, string? name = null, string? description = null) #Creates a date-between pivot filter.
Parameters
- fieldName string
- from System.DateTime
- to System.DateTime
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateEquals(string fieldName, DateTime value, string? name = null, string? description = null) #Creates a date-equals pivot filter.
Parameters
- fieldName string
- value System.DateTime
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateLastMonth(string fieldName, string? name = null, string? description = null) #Creates a dynamic date filter for last month.
Parameters
- fieldName string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateLastQuarter(string fieldName, string? name = null, string? description = null) #Creates a dynamic date filter for last quarter.
Parameters
- fieldName string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateLastWeek(string fieldName, string? name = null, string? description = null) #Creates a dynamic date filter for last week.
Parameters
- fieldName string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateLastYear(string fieldName, string? name = null, string? description = null) #Creates a dynamic date filter for last year.
Parameters
- fieldName string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateMonth(string fieldName, int month, string? name = null, string? description = null) #Creates a dynamic date filter for a calendar month.
Parameters
- fieldName string
- month int
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateNewerThan(string fieldName, DateTime value, string? name = null, string? description = null) #Creates a date-newer-than pivot filter.
Parameters
- fieldName string
- value System.DateTime
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateNewerThanOrEqual(string fieldName, DateTime value, string? name = null, string? description = null) #Creates a date-newer-than-or-equal pivot filter.
Parameters
- fieldName string
- value System.DateTime
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateNextMonth(string fieldName, string? name = null, string? description = null) #Creates a dynamic date filter for next month.
Parameters
- fieldName string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateNextQuarter(string fieldName, string? name = null, string? description = null) #Creates a dynamic date filter for next quarter.
Parameters
- fieldName string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateNextWeek(string fieldName, string? name = null, string? description = null) #Creates a dynamic date filter for next week.
Parameters
- fieldName string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateNextYear(string fieldName, string? name = null, string? description = null) #Creates a dynamic date filter for next year.
Parameters
- fieldName string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateNotBetween(string fieldName, DateTime from, DateTime to, string? name = null, string? description = null) #Creates a date-not-between pivot filter.
Parameters
- fieldName string
- from System.DateTime
- to System.DateTime
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateNotEquals(string fieldName, DateTime value, string? name = null, string? description = null) #Creates a date-not-equals pivot filter.
Parameters
- fieldName string
- value System.DateTime
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateOlderThan(string fieldName, DateTime value, string? name = null, string? description = null) #Creates a date-older-than pivot filter.
Parameters
- fieldName string
- value System.DateTime
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateOlderThanOrEqual(string fieldName, DateTime value, string? name = null, string? description = null) #Creates a date-older-than-or-equal pivot filter.
Parameters
- fieldName string
- value System.DateTime
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateQuarter(string fieldName, int quarter, string? name = null, string? description = null) #Creates a dynamic date filter for a calendar quarter.
Parameters
- fieldName string
- quarter int
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateThisMonth(string fieldName, string? name = null, string? description = null) #Creates a dynamic date filter for this month.
Parameters
- fieldName string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateThisQuarter(string fieldName, string? name = null, string? description = null) #Creates a dynamic date filter for this quarter.
Parameters
- fieldName string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateThisWeek(string fieldName, string? name = null, string? description = null) #Creates a dynamic date filter for this week.
Parameters
- fieldName string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateThisYear(string fieldName, string? name = null, string? description = null) #Creates a dynamic date filter for this year.
Parameters
- fieldName string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateToday(string fieldName, string? name = null, string? description = null) #Creates a dynamic date filter for today.
Parameters
- fieldName string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateTomorrow(string fieldName, string? name = null, string? description = null) #Creates a dynamic date filter for tomorrow.
Parameters
- fieldName string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateYearToDate(string fieldName, string? name = null, string? description = null) #Creates a dynamic date filter for year-to-date.
Parameters
- fieldName string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DateYesterday(string fieldName, string? name = null, string? description = null) #Creates a dynamic date filter for yesterday.
Parameters
- fieldName string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter DynamicDate(string fieldName, ExcelPivotFilterType type, string? name = null, string? description = null) #Creates a dynamic date pivot filter using a supported Open XML pivot filter type.
Parameters
- fieldName string
- type OfficeIMO.Excel.ExcelPivotFilterType
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter Label(string fieldName, ExcelPivotFilterType type, string value1, string? value2 = null, string? name = null, string? description = null) #Creates a label pivot filter using a specific Open XML pivot filter type.
Parameters
- fieldName string
- type OfficeIMO.Excel.ExcelPivotFilterType
- value1 string
- value2 string? = null
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter LabelBeginsWith(string fieldName, string value, string? name = null, string? description = null) #Creates a label-begins-with pivot filter.
Parameters
- fieldName string
- value string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter LabelBetween(string fieldName, string from, string to, string? name = null, string? description = null) #Creates a label-between pivot filter.
Parameters
- fieldName string
- from string
- to string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter LabelContains(string fieldName, string value, string? name = null, string? description = null) #Creates a label-contains pivot filter.
Parameters
- fieldName string
- value string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter LabelEndsWith(string fieldName, string value, string? name = null, string? description = null) #Creates a label-ends-with pivot filter.
Parameters
- fieldName string
- value string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter LabelEquals(string fieldName, string value, string? name = null, string? description = null) #Creates a label-equals pivot filter.
Parameters
- fieldName string
- value string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter LabelGreaterThan(string fieldName, string value, string? name = null, string? description = null) #Creates a label-greater-than pivot filter.
Parameters
- fieldName string
- value string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter LabelGreaterThanOrEqual(string fieldName, string value, string? name = null, string? description = null) #Creates a label-greater-than-or-equal pivot filter.
Parameters
- fieldName string
- value string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter LabelLessThan(string fieldName, string value, string? name = null, string? description = null) #Creates a label-less-than pivot filter.
Parameters
- fieldName string
- value string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter LabelLessThanOrEqual(string fieldName, string value, string? name = null, string? description = null) #Creates a label-less-than-or-equal pivot filter.
Parameters
- fieldName string
- value string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter LabelNotBeginsWith(string fieldName, string value, string? name = null, string? description = null) #Creates a label-not-begins-with pivot filter.
Parameters
- fieldName string
- value string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter LabelNotBetween(string fieldName, string from, string to, string? name = null, string? description = null) #Creates a label-not-between pivot filter.
Parameters
- fieldName string
- from string
- to string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter LabelNotContains(string fieldName, string value, string? name = null, string? description = null) #Creates a label-not-contains pivot filter.
Parameters
- fieldName string
- value string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter LabelNotEndsWith(string fieldName, string value, string? name = null, string? description = null) #Creates a label-not-ends-with pivot filter.
Parameters
- fieldName string
- value string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter LabelNotEquals(string fieldName, string value, string? name = null, string? description = null) #Creates a label-not-equals pivot filter.
Parameters
- fieldName string
- value string
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter TopCount(string fieldName, string dataFieldName, int count, string? name = null, string? description = null) #Creates a top-count pivot filter for the specified data field.
Parameters
- fieldName string
- dataFieldName string
- count int
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter TopPercent(string fieldName, string dataFieldName, int percent, string? name = null, string? description = null) #Creates a top-percent pivot filter for the specified data field.
Parameters
- fieldName string
- dataFieldName string
- percent int
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter TopSum(string fieldName, string dataFieldName, double value, string? name = null, string? description = null) #Creates a top-sum pivot filter for the specified data field.
Parameters
- fieldName string
- dataFieldName string
- value double
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter Value(string fieldName, string dataFieldName, ExcelPivotFilterType type, double value1, double? value2 = null, string? name = null, string? description = null) #Creates a value pivot filter using a specific Open XML pivot filter type.
Parameters
- fieldName string
- dataFieldName string
- type OfficeIMO.Excel.ExcelPivotFilterType
- value1 double
- value2 double? = null
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter ValueBetween(string fieldName, string dataFieldName, double from, double to, string? name = null, string? description = null) #Creates a value-between pivot filter.
Parameters
- fieldName string
- dataFieldName string
- from double
- to double
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter ValueEquals(string fieldName, string dataFieldName, double value, string? name = null, string? description = null) #Creates a value-equals pivot filter.
Parameters
- fieldName string
- dataFieldName string
- value double
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter ValueGreaterThan(string fieldName, string dataFieldName, double value, string? name = null, string? description = null) #Creates a value-greater-than pivot filter.
Parameters
- fieldName string
- dataFieldName string
- value double
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter ValueGreaterThanOrEqual(string fieldName, string dataFieldName, double value, string? name = null, string? description = null) #Creates a value-greater-than-or-equal pivot filter.
Parameters
- fieldName string
- dataFieldName string
- value double
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter ValueLessThan(string fieldName, string dataFieldName, double value, string? name = null, string? description = null) #Creates a value-less-than pivot filter.
Parameters
- fieldName string
- dataFieldName string
- value double
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter ValueLessThanOrEqual(string fieldName, string dataFieldName, double value, string? name = null, string? description = null) #Creates a value-less-than-or-equal pivot filter.
Parameters
- fieldName string
- dataFieldName string
- value double
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter ValueNotBetween(string fieldName, string dataFieldName, double from, double to, string? name = null, string? description = null) #Creates a value-not-between pivot filter.
Parameters
- fieldName string
- dataFieldName string
- from double
- to double
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic static ExcelPivotFilter ValueNotEquals(string fieldName, string dataFieldName, double value, string? name = null, string? description = null) #Creates a value-not-equals pivot filter.
Parameters
- fieldName string
- dataFieldName string
- value double
- name string? = null
- description string? = null
Returns
ExcelPivotFilterpublic ExcelPivotFilter WithWholeDay() #Returns a fixed-date filter that matches entire calendar days.
Returns
ExcelPivotFilterInherited Methods
Properties
public ExcelPivotFilterType Type { get; } #Gets the Open XML pivot filter type.
public string? Value2 { get; } #Gets the second filter value for between-style filters.
public string? DataFieldName { get; } #Gets the data field used by value filters.
public bool? IsTop { get; } #Gets whether a top/bottom filter keeps top values. False means bottom values.
public bool? IsPercent { get; } #Gets whether a top/bottom filter uses a percentage threshold.
public string? FilterValue { get; } #Gets the optional calculated top/bottom filter value threshold.
public bool WholeDay { get; } #Gets whether a fixed-date filter matches the entire calendar day.