Hi Gayathri,
We have a similar requirement in the current project and I have used RANK() in a script-based calculation view. The query runs fast in around 40s, but the CPU usage is toughing 90%.
Did the graphical view workaround help in your case?
Thanks,
Remya