Forum Discussion
George1973
Helper V
4 years agoOne Product, two suppliers - Latest Vendor Code
Hi All, I have an issue, with this following table and formula: There is one product having two difference supplier. For the purpose of the further filtering, I need to seperate them, s...
- 4 years ago
George1973 ok, try this:
Supplier Final Code = VAR _current_kod = 'Supplier and Goods'[Goods_KOD] VAR _max_rank_for_this_supplier = CALCULATE( MAX('Supplier and Goods'[Supplier_rank), REMOVEFILTERS('Supplier and Goods'), 'Supplier and Goods'[Goods_KOD] = _current_kod ) VAR _result = CALCULATE( SELECTEDVALUE(('Supplier and Goods'[Supplier_LookUP), REMOVEFILTERS('Supplier and Goods'), 'Supplier and Goods'[Goods_KOD] = _current_kod, 'Supplier and Goods'[Supply Rank] = _max_rank_for_this_supplier ) RETURN _result
SpartaBI
Community Champion
4 years agoGeorge1973 my pleasue 🙂
Give it a thumbs up 🙂
George1973
Helper V
4 years agoYou do not know for how long I was fighting with that problem!
While filtering products bu suppliers, in case of having 2 and more vendors for one SKU, I had a real headake 🙂
Not, thanks to you.. It's solved 🙂