From 894e645a4710ef1d5948a37947da5f574476b691 Mon Sep 17 00:00:00 2001 From: Doug Finke Date: Thu, 20 Dec 2018 09:01:21 -0500 Subject: [PATCH] Update MultiplePivotTables.ps1 --- Examples/PivotTable/MultiplePivotTables.ps1 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Examples/PivotTable/MultiplePivotTables.ps1 b/Examples/PivotTable/MultiplePivotTables.ps1 index 95d72b7..8f97401 100644 --- a/Examples/PivotTable/MultiplePivotTables.ps1 +++ b/Examples/PivotTable/MultiplePivotTables.ps1 @@ -1,5 +1,3 @@ -cls - $data = ConvertFrom-Csv @" Region,Date,Fruit,Sold North,1/1/2017,Pears,50 @@ -32,8 +30,6 @@ $pivotTableParams = @{ $pt = Add-PivotTable @pivotTableParams -PassThru #$pt.RowHeaderCaption ="By Region,Fruit,Date" $pt.RowHeaderCaption = "By " + ($pivotTableParams.PivotRows -join ",") -#$pt.ColumnHeaderCaption = "By " + ($pivotTableParams.PivotRows -join ",") -#$pt.FieldPrintTitles = "By " + ($pivotTableParams.PivotRows -join ",") $pivotTableParams.PivotTableName="ByFruit" $pivotTableParams.Address = $excel.Sheet1.cells["J1"] @@ -59,4 +55,4 @@ $pt.RowHeaderCaption ="By Years,Region" Set-ExcelColumn -Worksheet $excel.Sheet1 -Column 2 -AutoSize -Close-ExcelPackage $excel -Show \ No newline at end of file +Close-ExcelPackage $excel -Show