Joinaggregate and argmax() using transform

I see that you've asked a similar question already. Let's move discussion to that thread. Using rank and partition in vega-lite