Create a calculated member using this formula:
Descendants(Employees.CurrentMember).Count - 1
The -1 is because (oddly) MDX includes the member in the set.
public @ the domain below
www.tomchester.net
"Ravindra Babburi" <rbbabburi (AT) yahoo (DOT) com> wrote
Quote:
There is a "Employee" dimension that is built using the parent-child
relationship on the source table columns named "employee_id" and
|
"manager_id". There is a need for a measure "Total People" whose value
should be the count of the people working under a Manager. Obviously, the
scope of this measure would be only along the "Employee" dimension, that is,
the measure value changes only when the user drills along the "Employee"
dimension. Since the Analysis Manager's Cube Editor UI only allows measures
to be selected from amonst the fact table columns, how can such a measure be
created?