Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Filter with ALLEXCEPT

I am trying to do a very simple measure, which should count rows for all the 'Open' requests. In doing so, I want all the exiting filters to be removed except the one(s) I don't want to. My measure l...
  • AlexisOlson's avatar
    AlexisOlson
    7 years ago

    OK. Then how about this?

     

    Number of Open Requests =
    VAR SelectedGroups = VALUES(Table1[Group])
    RETURN
    COUNTROWS(
        FILTER(
            ALL(Table1),
            Table1[Group] IN SelectedGroups
            && Table1[Status] = "Open" 
        )
    )

    This takes off all filters and then adds back the group selection and the status specification.