From 1004d8a9ea57c96b5c1b65335222b3bce77e2f6b Mon Sep 17 00:00:00 2001 From: dfinke Date: Thu, 12 Oct 2017 10:55:18 -0400 Subject: [PATCH] Updated --- Examples/TryMultiplePivotTables.ps1 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Examples/TryMultiplePivotTables.ps1 b/Examples/TryMultiplePivotTables.ps1 index 449ac2c..134058c 100644 --- a/Examples/TryMultiplePivotTables.ps1 +++ b/Examples/TryMultiplePivotTables.ps1 @@ -1,4 +1,6 @@ -ipmo .\ImportExcel.psd1 -Force +"To ship, is to choose" + +ipmo .\ImportExcel.psd1 -Force $file = "c:\temp\testPT.xlsx" rm $file -ErrorAction Ignore @@ -18,5 +20,6 @@ $pt.PT2=@{ } -$data = gsv | select status, Name, displayName, starttype -$data | Export-Excel -Path $file -Show -PivotTable $pt -AutoSize \ No newline at end of file +Get-Service | + select status, Name, displayName, starttype | + Export-Excel -Path $file -Show -PivotTable $pt -AutoSize \ No newline at end of file