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[]]$PivotRows,
|
||||||
[string[]]$PivotColumns,
|
[string[]]$PivotColumns,
|
||||||
$PivotData,
|
$PivotData,
|
||||||
|
[Switch]$PivotDataToColumn,
|
||||||
[string]$Password,
|
[string]$Password,
|
||||||
[OfficeOpenXml.Drawing.Chart.eChartType]$ChartType="Pie",
|
[OfficeOpenXml.Drawing.Chart.eChartType]$ChartType="Pie",
|
||||||
[Switch]$IncludePivotTable,
|
[Switch]$IncludePivotTable,
|
||||||
@@ -292,6 +293,9 @@ function Export-Excel {
|
|||||||
$df.Function = 'Count'
|
$df.Function = 'Count'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if($PivotDataToColumn) {
|
||||||
|
$pivotTable.DataOnRows = $false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($IncludePivotChart) {
|
if($IncludePivotChart) {
|
||||||
|
|||||||
Reference in New Issue
Block a user