Forum Discussion
selpaqm
Helper V
3 years agoFind previous manufacturer
Hi, having a table as summarized below. Supplier item shipment date Unique Desired Result aaaa 11111 01/08/2023 aaaa-11111 First Supplier bbbb 22222 03/08/2023 bbbb-22222 F...
- 3 years ago
Is this what you are looking for?
Column = VAR _MinDate = CALCULATE(MIN('Table'[shipment date]),ALLEXCEPT('Table','Table'[item])) VAR _items = CALCULATE(MIN('Table'[upplier]),ALLEXCEPT('Table','Table'[item]),'Table'[shipment date]=_MinDate) RETURN IF(_items =[upplier],"First Supplier",_items)