Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Check out the Pareto Select action in the following Help link, see if that may do things for you, will require a button, but this may work in the front end side.
https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/Button2.htm
Regarding script, the only thing that comes to mind for me would be OrderBy in the Load statement and then use Peek against the resident table to look at the first two records...
Hopefully this gives you some ideas to try. I am no developer, so there are likely much better ways to accomplish this, but hopefully this may get you somewhere with things.
Regards,
Brett