Enum PivotValueDisplayType
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
透視值顯示類型
列舉顯示樞紐值的其他值函式的方法。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
SpreadsheetApp.PivotValueDisplayType.PERCENT_OF_ROW_TOTAL
。
屬性
屬性 | 類型 | 說明 |
DEFAULT | Enum | 預設。以實際值顯示樞紐值,而非其他值的函式。 |
PERCENT_OF_ROW_TOTAL | Enum | 以該列總數的百分比顯示透視值。 |
PERCENT_OF_COLUMN_TOTAL | Enum | 以百分比的形式顯示該欄的總數的透視值。 |
PERCENT_OF_GRAND_TOTAL | Enum | 以總和的百分比顯示樞紐值。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003e\u003ccode\u003ePivotValueDisplayType\u003c/code\u003e is used to control how values are displayed in a pivot table, offering options to present them as raw values or percentages relative to row, column, or grand totals.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize a specific display type, reference it using the format \u003ccode\u003eSpreadsheetApp.PivotValueDisplayType.[property]\u003c/code\u003e, such as \u003ccode\u003eSpreadsheetApp.PivotValueDisplayType.PERCENT_OF_ROW_TOTAL\u003c/code\u003e for displaying values as a percentage of the row total.\u003c/p\u003e\n"],["\u003cp\u003eAvailable display types include \u003ccode\u003eDEFAULT\u003c/code\u003e (displays the raw value), \u003ccode\u003ePERCENT_OF_ROW_TOTAL\u003c/code\u003e, \u003ccode\u003ePERCENT_OF_COLUMN_TOTAL\u003c/code\u003e, and \u003ccode\u003ePERCENT_OF_GRAND_TOTAL\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum PivotValueDisplayType\n\nPivotValueDisplayType\n\nAn enumeration of ways to display a pivot value as a function of another value.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.PivotValueDisplayType.PERCENT_OF_ROW_TOTAL`. \n\n### Properties\n\n| Property | Type | Description |\n|---------------------------|--------|--------------------------------------------------------------------------------------------|\n| `DEFAULT` | `Enum` | Default. Displays pivot values as the actual value and not as a function of another value. |\n| `PERCENT_OF_ROW_TOTAL` | `Enum` | Displays pivot values as a percent of the total for that row. |\n| `PERCENT_OF_COLUMN_TOTAL` | `Enum` | Displays pivot values as a percent of the total for that column. |\n| `PERCENT_OF_GRAND_TOTAL` | `Enum` | Displays pivot values as a percent of the grand total. |"]]