Returns whether a specified member is in a specified generation.
The IsGeneration function returns true if the specified member is in the specified generation number. Otherwise, the function returns false. Also, if the specified member evaluates to an empty member, the IsGeneration function returns false.
For the purposes of generation indexing, leaf members are generation index 0. The generation index of nonleaf members is determined by first getting the highest generation index from the union of all child members for the specified member, then adding 1 to that index. Because of how the generation index of nonleaf members is determined, a specific nonleaf member could belong to more than one generation.
The following example returns TRUE if [Time].[Fiscal].CurrentMember is part of the second generation: