N
nigeaman
I am trying to sort a total within an Office Web Component 11 pivot table. I
can sort a Field from a FieldSet
e.g
fSetCustomer = objPTView.FieldSets("Customers")
objPTView.RowAxis.InsertFieldSet(fSetCustomer)
fSetCustomer.Fields("Customer").IsIncluded = True
fSetCustomer.Fields("Customer").SortDirection =
PivotFieldSortDirectionEnum.plSortDirectionAscending
but not a PivotTotal
objPTView.DataAxis.InsertTotal(objPTView.Totals("Order Value"))
objPTView.DataAxis.Totals("Order Value").NumberFormat = "Currency"
objPTView.DataAxis.Totals("Order Value").Field.SortDirection =
PivotFieldSortDirectionEnum.plSortDirectionDescending
Any help would be much appreciated.
Using SQL Server 2000 Analysis Services, .NET 2003
can sort a Field from a FieldSet
e.g
fSetCustomer = objPTView.FieldSets("Customers")
objPTView.RowAxis.InsertFieldSet(fSetCustomer)
fSetCustomer.Fields("Customer").IsIncluded = True
fSetCustomer.Fields("Customer").SortDirection =
PivotFieldSortDirectionEnum.plSortDirectionAscending
but not a PivotTotal
objPTView.DataAxis.InsertTotal(objPTView.Totals("Order Value"))
objPTView.DataAxis.Totals("Order Value").NumberFormat = "Currency"
objPTView.DataAxis.Totals("Order Value").Field.SortDirection =
PivotFieldSortDirectionEnum.plSortDirectionDescending
Any help would be much appreciated.
Using SQL Server 2000 Analysis Services, .NET 2003