Forum Discussion
KimberlyHM
4 years agoFrequent Visitor
New Column: If other table contains value
Hi guys! Hopefully you can help with creating a measure 🙂 I want to add a New column in the Data tab in Table1 (could also maybe be the Power Query?). I have two data tables: Table1 has 1 I...
- 4 years ago
Try this calculated column in Table1:
New Column = VAR vID = Table1[ID] VAR vTable = FILTER ( Table2, Table2[ID] = vID && Table2[Zero Section] = "yes" ) VAR vResult = IF ( ISEMPTY ( vTable ), "no", "yes" ) RETURN vResult
DataInsights
Super User
4 years ago
Try this calculated column in Table1:
New Column =
VAR vID = Table1[ID]
VAR vTable =
FILTER ( Table2, Table2[ID] = vID && Table2[Zero Section] = "yes" )
VAR vResult =
IF ( ISEMPTY ( vTable ), "no", "yes" )
RETURN
vResultKimberlyHM
4 years agoFrequent Visitor
Yes this worked perfectly, thank you!