Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

exists in same table

hi, i'm new to Power BI... not sure if i need a calculated column or a measure. I want to check for each row if another row exists where value in column A is the same as this row and value in colum...
  • v-yuta-msft's avatar
    v-yuta-msft
    7 years ago

    Anonymous ,

     

    Create two measures using DAX below:

    count with true = CALCULATE(DISTINCTCOUNT('Table'[A]), FILTER(ALLEXCEPT('Table', 'Table'[B]), 'Table'[C] = TRUE()))
    count with false = CALCULATE(DISTINCTCOUNT('Table'[A]), FILTER(ALLEXCEPT('Table', 'Table'[B]), 'Table'[C] = FALSE()))

     

     

    Community Support Team _ Jimmy Tao

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.