Hey there,
I have a report I am trying to run which seems reasonably simple to me, but unfortunately doesn’t work. Will try and explain what I want and what I did.
I have 3 labels: A, B, C and I want a report over time, every month how many got label C out of A+B+C and how many got A or B out of the same total. (Want to display it as stacked bars)
What I did was defined 2 calculated members in Label:
- ABC -
Aggregate({[Label].[A], [Label].[B], [Label].[C]})
- AB -
Aggregate({[Label].[A], [Label].[B]})
I added a calculated member on Issue named ABC:
NonZero(
Count(
Filter(
Descendants([Issue].CurrentHierarchyMember,[Issue].[Issue]),
([Measures].[Issues created],
[Label].[ABC]) > 0)
))
(When I define this I get a warning:
Do not use the other dimension Measures, Label when defining a calculated member in Issue . Create complex calculations in Measures
how can I do it otherwise?)
And finally I added 2 measures:
AB:
Count(
Filter(
Descendants([Issue].CurrentMember, [Issue].[Issue]),
([Measures].[Issues created],
[Label].[AB]) > 0
)
)
C:
Count(
Filter(
Descendants([Issue].CurrentMember, [Issue].[Issue]),
([Measures].[Issues created],
[Label].[C]) > 0
)
)
Both measures give me blank (or zeroes if I remove the NonZero). Why?
Thanks ahead,
Uri