Hi @anuajax,
Ideally, it is best practice to create a new question with what you are now asking and you can supply a link back to this question for context.
For each example you have given what result do you want to see and what did you get when you tried the existing solution?
Also, when supplying data, it is a lot easier for everyone to help you if you supply data using a data step with datalines, as can be seen in the solution.
Thanks & kind regards,
Amir.
... View more