Forum Discussion
edithb40
3 years agoFrequent Visitor
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...
- 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" ) )
johnt75
Super User
3 years agoTry 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"
)
)