Hello friends! Clueless Alex again looking for your kind help 
I have a Measure ([Measure].[Issues with dev completed]) and I want to apply a filter on this measure. Specifically, I want to exclude those issues that have the the Ready for Demo flag marked as Yes (i.e. [Ready for Demo].[Yes]).
Likewise, I have a measure that brings back all issues with [Status].[In Progress], but I want to exclude issues that have Dev Complete <> blank, UAT Completed <> blank, Ready for demo <> Yes.
There are other scenarios, but they broadly fit the above scenario where Iâd like to filter one element based on the value (or not) of anotherâŠ
Ok, so I think Iâve solved it for the filtering across dimensions:
SUM(Filter(
â this will filter out issues with Ready for Demo = yes
Descendants([Ready for Demo].CurrentMember,[Ready for Demo].[Ready for Demo]),
[Ready for Demo].CurrentMember.Name <> âYesâ),
â this measure in the last SUM works as a fitler and as counter
[Measures].[Issues with uat started])
)
NowâŠI want to filter out something that isnât a unique Dimension, but is a property on the Issue (specifically, the UAT Completed date). For the below, I want to filter out any issues that have a UAT Completed date populated (itâs a date field). The following doesnât seem to work:
SUM(Filter(
â this will filter out issues with Ready for Demo - yes
Descendants([Ready for Demo].CurrentMember,[Ready for Demo].[Ready for Demo]),
[Ready for Demo].CurrentMember.Name <> âYesâ),
SUM(Filter(Descendants([Issue].CurrentMember, [Issue].[Issue]),
[Issue].CurrentHierarchyMember.get(âUAT Startedâ) <> (ânoneâ)),
â this measure in the last SUM works as a filter and as counter
[Measures].[Issues with dev completed])
)
Ok, I think Iâve cracked it for the second query I was trying to figure outâŠcan a âguruâ on here validate the below is actually correct (and not just luck!):
SUM(Filter(
â this will filter out issues with Ready for demo = yes
Descendants([Ready for Demo].CurrentMember,[Ready for Demo].[Ready for Demo]),
[Ready for Demo].CurrentMember.Name <> âYesâ),
â this will filter out issues where Dev Completed is empty
SUM(Filter(Descendants([Issue].CurrentMember,[Issue].[Issue]),
isEmpty([Issue].CurrentMember.get(âDev Completedâ))),
â this measure in the last SUM works as a fitler and as counter
[Status].[In Progress]))
Thoughts?
Hi,
In this case, you could create a calculated member in âReady for Demoâ dimension using aggregate except
Aggregate(
Except(
[Ready for Demo].[Ready for Demo].Members,
{
[Ready for Demo].[Yes]
})
)
Then you could create a calculated measure using a tuple (where you use the calculated member from previous step)
(
[Measures].[Issues with dev completed],
[Ready for Demo].[New calculated member]
)
The same principle also for other dimensions.
Martins / eazyBI support