J
Joe
Hi all,
Does anyone know how to sort a total on multiple dimensions?
I’m using owc 11.
Suppose you have a pivot table with 2 dimensions called “customers†and
“stores†with a measure called “salesâ€. Both are in the pivot grid and can
be drilled into. If you sort on the total, it will sort it on the right most
dimension, so the inner expanded items are ordered, but the outer collapsed
ones are not.
The method I’m using is:
Dim ttl As PivotTotal
Set ttl = PivotTable1.ActiveView.Totals("Unit Sales")
PivotTable1.Select ttl, ttl
PivotTable1.Commands(2031).Execute 'descending
PivotTable1.Select Nothing, Nothing
I didn’t have luck with the SortOn function of the fieldset.field, I
received an error message on it – something about method not found.
End result: I want dim1 sorted by total, then dim2 sorted within dim1 by
total.
Any help would be appreciated.
Thanks,
--Joe
Does anyone know how to sort a total on multiple dimensions?
I’m using owc 11.
Suppose you have a pivot table with 2 dimensions called “customers†and
“stores†with a measure called “salesâ€. Both are in the pivot grid and can
be drilled into. If you sort on the total, it will sort it on the right most
dimension, so the inner expanded items are ordered, but the outer collapsed
ones are not.
The method I’m using is:
Dim ttl As PivotTotal
Set ttl = PivotTable1.ActiveView.Totals("Unit Sales")
PivotTable1.Select ttl, ttl
PivotTable1.Commands(2031).Execute 'descending
PivotTable1.Select Nothing, Nothing
I didn’t have luck with the SortOn function of the fieldset.field, I
received an error message on it – something about method not found.
End result: I want dim1 sorted by total, then dim2 sorted within dim1 by
total.
Any help would be appreciated.
Thanks,
--Joe