Cmdlet
Get-OfficeExcelPivotTable
Gets pivot tables defined in a workbook.
Syntax
Examples
Read pivot table metadata from a workbook.
$pivots = Get-OfficeExcelPivotTable -Path .\report.xlsx -Sheet Summary
$pivots |
Select-Object -Property Name, Sheet, SourceRange, RowFields, DataFields |
Format-ListReturns pivot table metadata so generated reports can prove the pivot source and layout.
Parameters
- -Name String
- Optional pivot table name filter.
- -Path String
- Path to the workbook.
- -Sheet String
- Optional sheet name filter.
- -SheetIndex Int32
- Optional sheet index (0-based) filter.
- -Document ExcelDocument
- Workbook to inspect.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.