Forum Discussion

lukexuereb's avatar
lukexuereb
Regular Visitor
5 years ago
Solved

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...
  • mahoneypat's avatar
    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