Forum Discussion

dandywong's avatar
dandywong
Frequent Visitor
8 years ago
Solved

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 ...
  • MFelix's avatar
    MFelix
    8 years ago

    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