Hi All,
i'm sorry. I did a silly mistake in Webi. Forget to apply Sorting after Ranking. This is the reason for the improper output.
Corrected it myself.
I 'm not allowed to download .zip files hence i didn't check your attachements yet. sorry.
Thanks for your responses