Created
December 13, 2022 08:23
-
-
Save prateeka/5730a80bcbd9589a7df2830cd23f7c15 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val idx = idxMinus + 1 | |
val fd = hier.dimension | |
val uniqueName = MdxSelectorString(fd.name, hier.name) | |
val allMemberExpression = s"$uniqueName.[All]" | |
val (defaultMember, allMember) = hier.defaultMember match { | |
case AllMember => | |
if (hier.isCalculationGroup) { | |
(s"${hier.uniqueName}.&[${fd.calculationGroup.get.defaultMember.name}]", None) | |
} else { | |
(allMemberExpression, Some(allMemberExpression)) | |
} | |
case MdxLanguage.LiteralDefaultMemberSelector(ms) => | |
val all = | |
if (supressAllMemberWhenDefaultExists) { | |
None | |
} else { | |
Some(allMemberExpression) | |
} | |
(MdxSelectedMember(cube)(ms).uniqueName, all) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment