Forum Discussion
Lookup Function not return the value
I have the two table Global parameter and Remark2(local) . i am trying to get BOM value from Remark2(BOM) in Global parameter table using the below
Global Parameter :
ItemCode Rev Outer
FA031375.12 11 Thenna
FA031375.13 9 Thenna
Remark2 (Local)
ItemCode Rev BOMTEXT(Parameter BOM)
FA031375.12 11 Thenna
FA031375.13 9 Thenna
Execpted output:
ItemCode Rev Outer BOMTEXT
FA031375.12 11 Thenna Thenna
FA031375.13 9 Thenna Thenna
Looking for support . thanks in advance .
- Anonymous3 years ago
Kriekis after the changes Relationshiop it is working . Thank you.
2 Replies
- KriekisFrequent Visitor
Hi,
You can use dax expressions below.
But in general Your model is good example which shows that usage of many-to-many relationships isn't good idea.
So many-to-many is the main problem here.
Lookup val-Remark 2 - BomText =VAR _itemCode = 'Global Parameters'[Item Code]RETURNCALCULATE(LOOKUPVALUE('Remark2 (local)'[BOM Text (Parameter BOM)],'Remark2 (local)'[Number],_itemCode),CROSSFILTER('Remark2 (local)'[Item Code], 'Remark1 (local)'[Item Code], None) // disables relationship)/Andris - AnonymousNot applicable
Kriekis after the changes Relationshiop it is working . Thank you.