Forum Discussion

edithb40's avatar
edithb40
Frequent Visitor
3 years ago
Solved

Check if value is in another table - DAX

I have two tables with a one-to-many relationship on the child's id. The table has other columns including the columns I have depicted below.  The two tables are: Child table child_id locatio...
  • johnt75's avatar
    3 years ago

    Try creating a new column like

    new column =
    IF (
        NOT ISBLANK ( 'child table'[location] ),
        IF (
            'child table'[location]
                IN SELECTCOLUMNS ( RELATEDTABLE ( 'parent table' ), 'parent table'[location] ),
            "Yes",
            "No"
        )
    )