From e4d73ee294d239908c3ca667bb2621c5264f7e88 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Mon, 16 Feb 2026 09:48:52 +1100 Subject: [PATCH] Update pivot table ranges in summary report for accurate data representation --- internal/report/snapshots.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/report/snapshots.go b/internal/report/snapshots.go index 8bbd51d..78c6db4 100644 --- a/internal/report/snapshots.go +++ b/internal/report/snapshots.go @@ -945,7 +945,7 @@ func addSummaryPivotSheet(logger *slog.Logger, xlsx *excelize.File, dataSheet st Title: "Sum of Avg vCPUs", TitleCell: "A1", PivotName: "PivotAvgVcpu", - PivotRange: fmt.Sprintf("%s!A3:H22", summarySheet), + PivotRange: fmt.Sprintf("%s!A3:H40", summarySheet), RowFields: []string{"Datacenter", "ResourcePool"}, DataField: "AvgVcpuCount", DataName: "Sum of Avg vCPUs", @@ -955,7 +955,7 @@ func addSummaryPivotSheet(logger *slog.Logger, xlsx *excelize.File, dataSheet st Title: "Sum of Avg RAM", TitleCell: "J1", PivotName: "PivotAvgRam", - PivotRange: fmt.Sprintf("%s!J3:P22", summarySheet), + PivotRange: fmt.Sprintf("%s!J3:P40", summarySheet), RowFields: []string{"Datacenter"}, DataField: "AvgRamGB", DataName: "Sum of Avg RAM", @@ -965,7 +965,7 @@ func addSummaryPivotSheet(logger *slog.Logger, xlsx *excelize.File, dataSheet st Title: "Sum of prorated VM count", TitleCell: "A23", PivotName: "PivotProratedVmCount", - PivotRange: fmt.Sprintf("%s!A25:H44", summarySheet), + PivotRange: fmt.Sprintf("%s!A43:H62", summarySheet), RowFields: []string{"Datacenter"}, DataField: "AvgIsPresent", DataName: "Sum of prorated VM count", @@ -975,7 +975,7 @@ func addSummaryPivotSheet(logger *slog.Logger, xlsx *excelize.File, dataSheet st Title: "Count of VM Name", TitleCell: "J23", PivotName: "PivotVmNameCount", - PivotRange: fmt.Sprintf("%s!J25:P44", summarySheet), + PivotRange: fmt.Sprintf("%s!J43:P62", summarySheet), RowFields: []string{"Datacenter"}, DataField: "Name", DataName: "Count of VM Name",