I am using the below measure in PowerPivot (Excel 2013):
This will give me the the number of records in the "Fruit" column that are equal to "Apple". I'd like to include "Oranges" in my filter, so that I can have a count of records in the "Fruit" column that are either "Apple" or "Orange".
All the documentation I find on using filters in the CALCULATE() function describe how to do "Apple" and "Orange".
Does anyone know how to go about using "OR" syntax in the CALCULATE() function filter?
Code:
=CALCULATE(COUNTA(ShoppingCart[Fruit]), ShoppingCart[Fruit]="Apple")
This will give me the the number of records in the "Fruit" column that are equal to "Apple". I'd like to include "Oranges" in my filter, so that I can have a count of records in the "Fruit" column that are either "Apple" or "Orange".
All the documentation I find on using filters in the CALCULATE() function describe how to do "Apple" and "Orange".
Does anyone know how to go about using "OR" syntax in the CALCULATE() function filter?