ExcelScript.PivotFilterType enum

PivotField のフィルターの種類を表す単純な列挙型。

注釈

/**
 * This script gets the "Type" field from the "Farms Sales" PivotTable 
 * and clears the value filter from it.
 */ 
function main(workbook: ExcelScript.Workbook) {
  // Get the PivotTable named "Farm Sales".
  const pivot = workbook.getPivotTable("Farm Sales");

  // Get the "Type" field.
  const typeField = pivot.getHierarchy("Type").getPivotField("Type");

  // Clear the value filter (if there is one) from the field.
  typeField.clearFilter(ExcelScript.PivotFilterType.value);
}

フィールド

date

ラベルの代わりに日付を含む PivotItems をフィルター処理します。 注: PivotField には、ラベル フィルターと日付フィルターを同時に適用することはできません。

label

ラベルに基づいて PivotItems をフィルター処理します。 注: PivotField には、ラベル フィルターと日付フィルターを同時に適用することはできません。

manual

手動で選択した特定の PivotItems をピボットテーブルからフィルター処理します。

unknown

PivotFilterType が不明であるか、サポートされていません。

value

に関する PivotItem の値に基づいてフィルター処理します DataPivotHierarchy