![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
the descendants function will insure to get all of the members of the dimension hierarchy. The two (2) is the number of levels you want to go down; you'll want to specify what you want. The problem with TopCount and BottomCount (because in this case you're looking for the SQL equivalent of top and bottom against the dimension) is that its based on a measure. So you'll notice the topcount and bottomcount is applied against a measure I created ([Measures].[test]) which has a value of 1. Since all of the values are 1, then the TopCount and BottomCount will simply go with the internal hierarchy which then is the equivalent of FirstChild.FirstChild and LastChild.LastChild in these cases respectively. |
|
Hi, Within a dimenion I need to find the first child at the leaf level. In other words, if I have 5 levels and I'm at the top level my statement would look something like this incredibly bad example... [Time.Fiscal].FirstChild.FirstChild.FirstChild.FirstChild would go down... 2005, QTR1, Jan, Week1, 1st giving me 01/01/2005 as the result I Also Want the same thing but for LastChild 2005, QTR4, Dec, Week52, 31st giving me 31/12/2005as the result How can I do this correctly and relatively simply. Ta! Paul |
![]() |
| Thread Tools | |
| Display Modes | |
| |