Forum Discussion

jostnachs's avatar
jostnachs
Helper IV
2 years ago
Solved

Finding the match

Hi All,

I have two tables DimCommissionAgreements with Description3 column and DimCommissionAgreementsCriteria with Status COlumn. The two tables are connected with one to many relationship. Now, I want to compare the two columns and add a new column in DimCommissionAgreements table where if Description3 = Status then 0 else 1. But right now i have an issue as below.

even if the Description3 and Status is different it gives me 0.i have put the formula used below.

 

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi,

    thanks for the soluition Greg_Deckler offered, and i want to offer some more information for user to refer to.

    hello jostnachs , you can consider to create a measure instead of calculated column.

    MEASURE =
    IF (
        MAX ( Sheet1[Description3] ) <> BLANK (),
        IF ( MAX ( Sheet1[Description3] ) = MAX ( 'Sheet1 (2)'[Status] ), 0, 1 )
    )
    

    Output

     

     

    Best Regards!

    Yolo Zhu

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

     

3 Replies