Forum Discussion

Dudeman's avatar
Dudeman
Icon for Helper I rankHelper I
5 years ago
Solved

Finding MIN date in a table within a group

Hi. I have the following flight booking data. I'm looking for a Dax formula to pick out the actual destination. See below for what I'm looking for and some IF logic. RDU is the actual destination, th...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Dudeman 
    There are only a few more rows I can just type in. That was my mistake, I have thought about the multiple booking numbers, but forgot to bring it into the formula. Change the Result Destination measure to the following should work.

     

    Result Destination = IF([MaxArrival]=MINX(FILTER(ALLSELECTED(Legs),[BookingNumber]=MAX([BookingNumber])),[MaxArrival]) && [ArriveConnect]="Arrival",MAX([arrivalAirport]))
     

     

    Best Regards
    Paul Zheng _ Community Support Team