Forum Discussion
Redacted_VAR
Helper I
2 years agoNon Exact Lookup Column Across Two Tables
Hi There, i have two tables, one is attendees to an event, and the other is a master customer list: EventTable: Customer Name Feedback Score Bobs Burgers 8 Fine Foods 7 Smart...
- 2 years ago
Try this DAX calculated column in EventTable:
Industry = VAR vCustomerName = EventTable[Customer Name] VAR vTargetRow = FILTER ( MasterCustomer, CONTAINSSTRING ( MasterCustomer[Customer Name], vCustomerName ) ) VAR vResult = MAXX ( vTargetRow, MasterCustomer[Industry] ) RETURN vResult
DataInsights
Super User
2 years ago
Try this DAX calculated column in EventTable:
Industry =
VAR vCustomerName = EventTable[Customer Name]
VAR vTargetRow =
FILTER (
MasterCustomer,
CONTAINSSTRING ( MasterCustomer[Customer Name], vCustomerName )
)
VAR vResult =
MAXX ( vTargetRow, MasterCustomer[Industry] )
RETURN
vResult