Forum Discussion

HuwThomas's avatar
HuwThomas
Frequent Visitor
8 years ago
Solved

Returning IDs based on a specified MIN value

Good morning,   I'm relatively new to Power BI and am having trouble with returning IDs where the Staus is only 5, where IDs appear multiple times in the table. Below is a simplified version of my ...
  • danextian's avatar
    danextian
    8 years ago

    Hi HuwThomas,

     

    You can try creating a calculated column which checks whether the average of Status for each ID is 5. The formula below returns either true or false

     

    Status5 = 
    CALCULATE(
    AVERAGE ( 'Table'[Status] ),
    ALLEXCEPT ( 'Table','Table'[ID] )
    ) = 5