mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
Merge pull request #91 from pauldalewilliams/master
Adds switch for PivotDataToColumn
This commit is contained in:
@@ -27,6 +27,7 @@ function Export-Excel {
|
||||
[string[]]$PivotRows,
|
||||
[string[]]$PivotColumns,
|
||||
$PivotData,
|
||||
[Switch]$PivotDataToColumn,
|
||||
[string]$Password,
|
||||
[OfficeOpenXml.Drawing.Chart.eChartType]$ChartType="Pie",
|
||||
[Switch]$IncludePivotTable,
|
||||
@@ -292,6 +293,9 @@ function Export-Excel {
|
||||
$df.Function = 'Count'
|
||||
}
|
||||
}
|
||||
if($PivotDataToColumn) {
|
||||
$pivotTable.DataOnRows = $false
|
||||
}
|
||||
}
|
||||
|
||||
if($IncludePivotChart) {
|
||||
|
||||
Reference in New Issue
Block a user