This commit is contained in:
dfinke
2018-12-20 09:15:25 -05:00
parent 9c79ba573c
commit 9560ea83f9

View File

@@ -45,14 +45,11 @@ $pivotTableParams.PivotRows = echo Date Region Fruit
$pt = Add-PivotTable @pivotTableParams -PassThru
$pt.RowHeaderCaption = "By Date,Region,Fruit"
$pivotTableParams.PivotTableName = "ByX"
$pivotTableParams.PivotTableName = "ByYears"
$pivotTableParams.Address = $excel.Sheet1.cells["S1"]
$pivotTableParams.GroupDatePart = echo Years
$pt = Add-PivotTable @pivotTableParams -PassThru
$pt.RowHeaderCaption = "By Years,Region"
Set-ExcelColumn -Worksheet $excel.Sheet1 -Column 2 -AutoSize
Close-ExcelPackage $excel -Show