Last active
July 5, 2021 19:26
-
-
Save prateeka/cb2bcb6527bdacc121e544873dcdf517 to your computer and use it in GitHub Desktop.
DistinctCount additionDistinctCount addition
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
case MdxFunctions.DistinctCount.Applied(valueSet :: HNil) => | |
val resolvedVal = ConstantValue(5, IntType) | |
ComplexAggregatedValue(resolvedVal, resolveSetExpression(valueSet), core.DistinctCountExact) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for atscale-3271, made the above additions and testing with:
is always giving the distinct count as for all elements of result set. This is happening as distinct count is incorrectly working on the Constant value above (which is 5 but was earlier 1 but for investigation changed it to 5) instead of 'reporting quarter' . Attaching a sample sql for your preview: