Forum Discussion
Lookupvalue not working between 2 tables
- 4 years ago
Try this instead...
IF('Master Plant & Product'[Merged Plant & Product] IN DISTINCT('SKU by line - Official'[Merged Plant & Product]), 1,0)I may have typo'd your column names so double check those.
Hi KNP
The purpose is to have an alert system when user misses adding the correct data. Long story short I summarized it in that excel to not include all the model and sensible data.
Can we have it in dax calculated column?
Thanks !!
I think the RELATED function would be more useful given you already have a relationship setup.
Checkout this link.
- o593934 years agoPost Prodigy
- KNP4 years agoSuper User
Can you double check the column name in the SKU table?
It isn't recognising it for some reason.
- KNP4 years agoSuper User
Just did some testing/reading.
Looks like the RELATED (at least in this scenario) only works on the table on the 'many' side of the relationship. So in your case, the column would need to be added to the SKU table I believe.
There will be a better way. Going to do some more investigation.
- KNP4 years agoSuper User
Try this instead...
IF('Master Plant & Product'[Merged Plant & Product] IN DISTINCT('SKU by line - Official'[Merged Plant & Product]), 1,0)I may have typo'd your column names so double check those.