Forum Discussion
harrinho
Helper III
8 years agoCalculate SUM with Multiple Criteria
Hi Community, I want to create a measure which will calculate the price of my line items (opportunities) when: Family_type = "Product" AND business_type_name="New" and Closed Pipeline="Open" ...
- Anonymous8 years ago
Hi
Try this.
4Q TCV = CALCULATE(SUM(FACT_PIPELINE[SalesPrice]), FILTER (FACT_PIPELINE, FACT_PIPELINE[Family]= "Product"), FILTER (FACT_PIPELINE,FACT_PIPELINE[business_type_name]= "New"), FILTER (FACT_PIPELINE,'FACT_PIPELINE'[Closed Pipeline]="Open") )Thanks
Raj
Anonymous
8 years agoNot applicable
Hi
Try this.
4Q TCV =
CALCULATE(SUM(FACT_PIPELINE[SalesPrice]),
FILTER (FACT_PIPELINE, FACT_PIPELINE[Family]= "Product"),
FILTER (FACT_PIPELINE,FACT_PIPELINE[business_type_name]= "New"),
FILTER (FACT_PIPELINE,'FACT_PIPELINE'[Closed Pipeline]="Open")
)Thanks
Raj
croufspesi
6 years agoFrequent Visitor
Anonymous hey hey! stumbled across this old thread and am using your recommendation below. It's been very helpful to me already -- thanks!!!
One other question -- can you show me how to make one of the filters an AND statement?
I've tried using && but can tell it wasn't quite the right placement. Basically just looking for some of my rows to have 2 criteria that are mandatory in order to be included in the SUM.