Forum Discussion
Help with a lookup?
- 1 year ago
Hi rmcgrath are you looking for lookupvalue function in dax ?
Column =
VAR Match1 = LOOKUPVALUE('Site Table'[Site], 'Site Table'[Site Lookup], 'First Table'[Dept Loc Code])
VAR Match2 = LOOKUPVALUE('Site Table'[Site], 'Site Table'[Site Lookup], 'First Table'[Department Code])
VAR Match3 = LOOKUPVALUE('Site Table'[Site], 'Site Table'[Site Lookup], 'First Table'[Location Code])RETURN
COALESCE(Match1, Match2, Match3, "No Match") - 1 year ago
Please try to avoid LOOKUPVALUE. If there is a data model, use the data model. If there isn't, use TREATAS. LOOKUPVALUE should be the very last resort.
Hi rmcgrath
Please share sample data that clearly represents your issue or question. Make sure not to include any sensitive or unrelated information.
check this to upload your data
https://community.fabric.microsoft.com/t5/Power-BI-Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216