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