Forum Discussion

graceweii's avatar
graceweii
Frequent Visitor
4 years ago
Solved

Create conditional column based on Two tables

I have two tables: Tests and Results. In the data model, the two tables are connected by the key column and it is a one (Tests) to many (Results).  relationship.  Tests:  key  Lot code 1 xx...
  • ryan_mayu's avatar
    4 years ago

    graceweii 

    is this what you want?

    Measure = if(COUNTROWS('Results')=CALCULATE(COUNTROWS(Results),FILTER(Results,Results[condition]="pass")),"pass","fail")