Forum Discussion
Anonymous
7 years agoNot applicable
Calcultae and Filter DAx errror
Hi Experts
Cannot see the error here. I am trying to filter on Product Franchise first then Calculate the result of the second filter on Reporting Hierarchy....
IDIS vAOP$ less CCC Part 1 = CALCULATE(
[$NSvPY4% (NOE @ AOP Rate)], FILTER(
'Product','Product'[Product Franchise]="Continence & Critcal Care"),'Reporting Hierarchy'[ID-IS]="ID - INFUSION DEVICES")Hi Anonymous
Try this formula instead.
This formula i use in a measure, if you'd like a column, plrase let me know.
IDIS vAOP$ less CCC Part 1 = VAR filter1 = CALCULATE ( [$NSvPY4% (NOE @ AOP Rate)], FILTER ( 'Product', 'Product'[Product Franchise] = "Continence & Critcal Care" ) ) RETURN CALCULATE ( filter1, FILTER ( 'Reporting Hierarchy', 'Reporting Hierarchy'[ID-IS] = "ID - INFUSION DEVICES" ) )Best Regards
Maggie
1 Reply
- v-juanli-msft
Community Support
Hi Anonymous
Try this formula instead.
This formula i use in a measure, if you'd like a column, plrase let me know.
IDIS vAOP$ less CCC Part 1 = VAR filter1 = CALCULATE ( [$NSvPY4% (NOE @ AOP Rate)], FILTER ( 'Product', 'Product'[Product Franchise] = "Continence & Critcal Care" ) ) RETURN CALCULATE ( filter1, FILTER ( 'Reporting Hierarchy', 'Reporting Hierarchy'[ID-IS] = "ID - INFUSION DEVICES" ) )Best Regards
Maggie