mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
Updates to examples . Minor bug fix to format in Merge-Multiple
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
try {. $PSScriptRoot\..\..\LoadPSD1.ps1} catch {}
|
||||
|
||||
$xlFile=".\testPivot.xlsx"
|
||||
$xlFile="$env:TEMP\testPivot.xlsx"
|
||||
Remove-Item $xlFile -ErrorAction Ignore
|
||||
|
||||
$data =@"
|
||||
@@ -18,4 +18,18 @@ $data |
|
||||
-AutoSize -AutoFilter `
|
||||
-IncludePivotTable `
|
||||
-PivotRows Product `
|
||||
-PivotData @{"Units"="sum"} -PivotFilter Region, Area
|
||||
-PivotData @{"Units"="sum"} -PivotFilter Region, Area -Activate
|
||||
|
||||
<#
|
||||
Creates a Pivot table that looks like
|
||||
Region All^
|
||||
Area All^
|
||||
|
||||
Sum of Units
|
||||
Row Labels Total
|
||||
Apple 100
|
||||
Pear 240
|
||||
Grape 280
|
||||
Banana 160
|
||||
Grand Total 780
|
||||
#>
|
||||
Reference in New Issue
Block a user