Forum Discussion

Eesa's avatar
Eesa
Frequent Visitor
4 years ago
Solved

CALCULATE with multiple filters

Hi all,    I want to create a simple DAX measure that calculates the sum of sales for the column product, selecting only "iphone", "Samsung" and "Hawaii".    I tried with below measure but it doe...
  • Samarth_18's avatar
    Samarth_18
    4 years ago

    Eesa ,Try this

    Smart Phones Sales =
    CALCULATE (
        SUM ( Sales[Price] ),
        FILTER (
            Sales,
            Sales[product] in { "iPhone","Samsung","Hawaii"}
    ))