Table:
LOAD [policy No],
MaxString(If(Len(Trim([Endorsement No])) > 0, [Endorsement No])) as [Endorsement No]
Group By [policy No];
LOAD * INLINE [
policy No, Endorsement No
P1,
P1, E1
P2,
P2, E1
P3,
];
I used If statement to make sure that Endorsement No was forced to be null as I was loading it from an Inline table... but if you have true nulls coming from your source data... MaxString([Endorsement No]) should work for you....