Forum Discussion
admin_xlsior
Post Prodigy
5 years agoCalculate issue, something wrong with the context ?
Hi guys, Needs some light on of my measure. I have this table : And the last column is a measure which is like this : Count open critical orders = CALCULATE(
...
- 5 years ago
admin_xlsior , My Bad, change it like
Count open critical orders = CALCULATE(
DISTINCTCOUNTNOBLANK('Work orders'[Work order number]),
filter('Work orders','Work orders'[Critical] = "Yes" &&
NOT('Work orders'[Status] IN {"Closed", "Invoiced", "Finished", "Canceled"})
))
amitchandak
Super User
5 years agoadmin_xlsior , Try like
Count open critical orders = CALCULATE(
DISTINCTCOUNTNOBLANK('Work orders'[Work order number]),
filter('Work orders','Work orders'[Critical] = "Yes",
NOT('Work orders'[Status] IN {"Closed", "Invoiced", "Finished", "Canceled"})
))
- admin_xlsior5 years ago
Post Prodigy
oo but FILTER, can only contain 1 condition, is it?
And actually now I'm confuse why we need to use FILTER again, while CALCULATE is able to do filtering, it even support multiple condition, right ?