Forum Discussion
Spencer
Helper II
10 years agoSimple Sum Filter
Hi If I have a dataset like the following: Status Qty P 10 P 20 M 50 M 30 C 25 C ...
- 10 years ago
Assuming your table is called "Table":
Measure = CALCULATE(SUM('Table'[QTY]);'Table'[Status]<>"C";'Table'[Status]<>"D")
CALCULATE() allows multiple filters
Douwe
Helper I
10 years agoSomething like this should work:
Sum = CALCULATE(SUM(Qty);FILTER(Status=C))
Spencer
Helper II
10 years agoThanks for the reply Douwe but I don't think that will filter out the D's as well.
- SanderBeukers10 years ago
Advocate I
Assuming your table is called "Table":
Measure = CALCULATE(SUM('Table'[QTY]);'Table'[Status]<>"C";'Table'[Status]<>"D")
CALCULATE() allows multiple filters
- Douwe10 years ago
Helper I
Extend it like this: Sum = CALCULATE(SUM(Qty);FILTER(Status<>"C" || Status<>"D"))