Forum Discussion

joshua1990's avatar
joshua1990
Post Prodigy
3 years ago
Solved

FILTER NOT CONTAINS

Hi all! Let's say I have a table with values and string. In the column Article I have different strings. Now I would like to calculate the SUM of the column Quantity but I would like to exclude...
  • tamerj1's avatar
    3 years ago

    Hi joshua1990 

    please try

    Sales :=
    CALCULATE (
        [Sales Amount],
        NOT ( 'Sales'[Article]
            IN { "Article1", "Article2", "Article3", "Article4", "Article5" } )
    )