mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-14 15:23:15 +00:00
try
This commit is contained in:
@@ -265,7 +265,8 @@ function Export-Excel {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
foreach ($Item in $PivotData) {
|
foreach ($Item in $PivotData) {
|
||||||
$null=$pivotTable.DataFields.Add($pivotTable.Fields[$Item])
|
$df=$pivotTable.DataFields.Add($pivotTable.Fields[$Item])
|
||||||
|
$df.Function = 'Count'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user