if color coded rows, then pivot table not working #1462
Unanswered
GrantHarrington
asked this question in
Q&A
Replies: 2 comments 2 replies
-
I'd need a small repro of this, data, script and xlsx |
Beta Was this translation helpful? Give feedback.
2 replies
-
Thanks for the update. I would need a small repro so I can determine the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm wondering if it's a limitation of Excel in general or I'm not doing something right.
I'm able to add the zebra striping when using -tablename, and no pivot table assigned.
`$ptd += New-PivotTableDefinition @base -pivottablename servicetype -PivotRows servicetype -ChartType Area3D
$ptd += New-PivotTableDefinition @base -pivottablename status -PivotRows status -ChartType PieExploded3D
$ptd += New-PivotTableDefinition @base -pivottablename starttype -PivotRows starttype -ChartType BarClustered3D
$ptd += New-PivotTableDefinition @base -pivottablename canstop -PivotRows canstop -ChartType ConeColStacked
Get-Service | Export-Excel -path $xlSourcefile -WorkSheetname gsv -FreezeTopRow -AutoNa
meRange -PivotTableDefinition $ptd
Get-Service | Export-Excel -path $xlSourcefile -WorkSheetname testing -Show -FreezeTopRow -AutoNameRange -TableName 'mytable'`
This results in the 'gsv' worksheet in plain text. And the 'testing' worksheet with the zebra striping.
When I add this to the first Get-Service line, the pivot tables give this error message, and the 'gsv' worksheet is properly colored in, but the pivot tables are all "broke".
Get-Service | Export-Excel -path $xlSourcefile -WorkSheetname gsv -FreezeTopRow -AutoNameRange -TableName 'zebra' -PivotTableDefinition $ptd
Removed Feature: PivotTable report from /xl/pivotCache/pivotCacheDefinition1.xml part (PivotTable cache)
Removed Feature: PivotTable report from /xl/pivotCache/pivotCacheDefinition2.xml part (PivotTable cache)
Removed Feature: PivotTable report from /xl/pivotCache/pivotCacheDefinition3.xml part (PivotTable cache)
Removed Feature: PivotTable report from /xl/pivotCache/pivotCacheDefinition4.xml part (PivotTable cache)
Removed Feature: PivotTable report from /xl/pivotTables/pivotTable1.xml part (PivotTable view)
Removed Feature: PivotTable report from /xl/pivotTables/pivotTable2.xml part (PivotTable view)
Removed Feature: PivotTable report from /xl/pivotTables/pivotTable3.xml part (PivotTable view)
Removed Feature: PivotTable report from /xl/pivotTables/pivotTable4.xml part (PivotTable view)
Removed Records: Workbook properties from /xl/workbook.xml part (Workbook)
Beta Was this translation helpful? Give feedback.
All reactions