![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||
| ||||
|
| ... |
| with member [Measures].[Role] as |
#3
| |||
| |||
|
|
There certainly is - though it can get a bit tricky, as parent-child dims have a single level of a special type: http://msdn.microsoft.com/library/de.../en-us/olapdma d/agdimensions_5ab7.asp .. Unlike regular and virtual dimensions, which are defined with a number of levels that determines the number of levels seen by end users, a parent-child dimension is defined with a single level of a special type that usually produces multiple levels seen by end users. The number of displayed levels depends on the contents of the columns that store the member keys and the parent keys. This number can change when the dimension table is updated and the cubes using the dimension are subsequently processed. .. An example is the [Employees] dimension in Foodmart, which has various Member Properties, from which the [Position] virtual dimension is derived. Here's a Foodmart query: with member [Measures].[Role] as 'Employees.CurrentMember.Properties("Management Role")' select {[Measures].[Role]} on columns, Descendants(Employees,,Leaves) on rows from HR - Deepak *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#4
| |||
| |||
|
| with member [Measures].[Role] as |
#5
| |||
| |||
|
|
Mark, Text measures have some quirks in MDX expressions: for example, iif alternate clause strings have to be "hidden". Don't know if/where [MS] has documented it, but this works: with member [Measures].[Role] as 'Employees.CurrentMember.Properties("Management Role")' select {[Measures].[Role]} on columns, Filter(Descendants(Employees,,Leaves), CStr([Measures].[Role]) = "Store Temp Staff") on rows from HR - Deepak *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
![]() |
| Thread Tools | |
| Display Modes | |
| |