Effect of set ordering on VisualTotals -
04-05-2005
, 08:01 PM
Hi,
The VisualTotals function does not appear to work if the set being operated
on is not ordered in its natural hierarchy. Can anyone confirm whether or
not this is by design?
In the following two MDX queries, the values returned for USA and each state
are the sum of sales for all their children despite the use of VisualTotals.
However, the second query behaves as expected.
-- parent totals do not reflect selected child members
select
{ [measures].[unit sales] } on axis(0),
non empty
visualtotals(
{ [customers].[country].members,
[customers].[state province].members,
[customers].[usa].[ca].[arcadia], [customers].[usa].[or].[beaverton],
[customers].[usa].[wa].[ballard]
})
on axis(1)
from sales
-- parent totals reflect the child members in the set
select
{ [measures].[unit sales] } on axis(0),
non empty
visualtotals(
hierarchize(
{ [customers].[country].members,
[customers].[state province].members,
[customers].[usa].[ca].[arcadia], [customers].[usa].[or].[beaverton],
[customers].[usa].[wa].[ballard]
}))
on axis(1)
from sales
Peter |