Hi,
(1)Create a variable say XYZ
(2) Insert below formula: (ie)
If [Name] = Previous([Name]) and [Rank based on Marks] = Previous([Rank based on marks]) Then "0" Else "1"
(3) Apply the Filter on XYZ variable.
You will get expected results.
Regards,
Bansi