Forum Discussion
Creating a new table based on multiple criteria
- 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
Hi dandywong,
If you are on the query Editor you just need to Reference the query to the initial one and then add a filter on the columns you need.
On dax add a new table with the following code:
Table =
FILTER (
ALL ( Projects[Project1]; Projects[ProjectPhase]; Projects[ScopeStatus] );
Projects[ProjectPhase] = "Completed"
&& Projects[ScopeStatus] = "Green"
)On the ALL sintax add all the columns you want to pass to the new column from the previous one.
Regards,
MFelix
Hi there,
I tried this formula, but it didn't work:
Any idea on how to fix this?
- MFelix8 years agoSuper User
Hi dandywong,
You need to take out the comma after "Green". The && cannot be preceded by a comma.
Regards,
MFelix
- dandywong8 years agoFrequent Visitor
Thanks MFelix!!!!
Sorry, I think I'm missing something....
Still getting an error.
- MFelix8 years agoSuper User
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