![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Simple question appears when reading BOL cut here The following example returns TRUE if [Time].[Fiscal].CurrentMember is a leaf member: IsLeaf([Time].[Fiscal].CurrentMember) cut here But if CurrentMember is set, this request will generate an error. Is it possible to identify such situation before evaluating IsLeaf? Thank you in advance for help. |
#3
| |||
| |||
|
|
CurrentMember can be used against 1 dimension only, not against a set. use the Extract function to extract 1 dimension only from your set, then use the currentmember IsLEaf(Extract(<<my set>>, [Time].[Fiscal]).CurrentMember) |
#4
| |||
| |||
|
|
"Jéjé", the problem is that you never know either is CurrentMember is a member or set (lets assume). So i'd like to create a construction something like this IIF( [Time].[Fiscal].CurrentMember is set, IsLeaf(Extract.....), IsLeaf([Time].[Fiscal].CurrentMember) Thank you. "Jéjé" wrote: CurrentMember can be used against 1 dimension only, not against a set. use the Extract function to extract 1 dimension only from your set, then use the currentmember IsLEaf(Extract(<<my set>>, [Time].[Fiscal]).CurrentMember) |
![]() |
| Thread Tools | |
| Display Modes | |
| |