Forum Discussion

admin_xlsior's avatar
admin_xlsior
Post Prodigy
5 years ago
Solved

Calculate 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( ...
  • amitchandak's avatar
    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"})
    ))