I have a list of vendors, together with the names of the products and their costs. The data that had numerous entries for the same product name but under various providers was then formatted. I need to know the lowest price for each product and from which suppliers I can acquire it.
I'm not sure if there is a simpler way to use a power query, but the approach I used involved utilising FILTER.
=FILTER(DATA,CRITERIA)
ITEM |
SUPPLIER |
PRICE |
ITEMA |
SUPPLIERA |
100 |
ITEMA |
SUPPLIERB |
150 |
ITEMA |
SUPPLIERC |
125 |
ITEMB |
SUPPLIERA |
100 |
ITEMB |
SUPPLIERB |
150 |
ITEMB |
SUPPLIERC |
125 |
What I tried: I was able to create a FILTER function to output the suppliers and price based on the item I need. Through searching the net, I don't know how to get the minimum number from the filtered list itself.
Output I was able to get through the function: UNIQUE(TABLE[ITEM])|FILTER(TABLE,A1=TABLE[ITEM])
A |
B |
C |
ITEMA |
SUPPLIERA |
100 |
ITEMA |
SUPPLIERB |
150 |
ITEMA |
SUPPLIERC |
125 |
Since the output is a dynamic array, I don't know how to "read" the 3rd column of this array to get the minimum value.