Forum Discussion
dandywong
8 years agoFrequent Visitor
Creating a new table based on multiple criteria
I am trying to create a new table based on 2 filter criteria: 1) The ScopeStatus has to = Green 2) ProjectPhase has to = Completed If the 2 criteria are not met, then it will not show up on ...
- 8 years ago
Hi dandywong,
Your parentesis are misplaced so the all function is.working incorrectly.
The measure should beTest Table = FILTER ( ALL ( Projects[ProjectIdentifier], Projects[ProjectPhase], Projects[EnterpriseProjectTypeDescription], Projects[ScopeStatus] ), Projects[ProjectPhase] = "Completed" && Projects[ScopeStatus] = "Green" )
I also notice that you were missing the Project ScopeStatus on your ALL formula without it the filter wouldn't had context and the result would be incorrect.
Regards
MFelix
MFelix
8 years agoSuper User
Hi dandywong,
Your parentesis are misplaced so the all function is.working incorrectly.
The measure should be
Test Table =
FILTER (
ALL (
Projects[ProjectIdentifier],
Projects[ProjectPhase],
Projects[EnterpriseProjectTypeDescription],
Projects[ScopeStatus]
),
Projects[ProjectPhase] = "Completed"
&& Projects[ScopeStatus] = "Green"
)
I also notice that you were missing the Project ScopeStatus on your ALL formula without it the filter wouldn't had context and the result would be incorrect.
Regards
MFelix
dandywong
8 years agoFrequent Visitor
Thank you MFelix! That did the trick!