Forum Discussion
lukexuereb
5 years agoRegular Visitor
Get Value Associated with the Minimum Number per Group
I have the following table: Foreign Key Company Name Bid Cheapest Bid 1234 Fruit&Veg Ltd. 12,000 4,000 1234 Plastic Ltd. 4,000 4,000 1234 Technology Plc. 6,000 4,000 56...
- 5 years ago
My bad. Working too fast. Here you go.
Lowest Bidder =
VAR cheapest = Bids[Cheapest Bid]
RETURN
CALCULATE (
MIN ( Bids[Company Name] ),
ALLEXCEPT ( Bids, Bids[Foreign Key] ),
Bids[Bid] = cheapest
)Pat
mahoneypat
Microsoft Employee
5 years agoMy bad. Working too fast. Here you go.
Lowest Bidder =
VAR cheapest = Bids[Cheapest Bid]
RETURN
CALCULATE (
MIN ( Bids[Company Name] ),
ALLEXCEPT ( Bids, Bids[Foreign Key] ),
Bids[Bid] = cheapest
)
Pat
lukexuereb
5 years agoRegular Visitor
Thank you mahoneypat!