All,
I was able to create a logic for this successfully at the the report level, had to create a bunch of variables though, but it works perfect. I don't have time to post what I did, but I'll share the solution if and when I see someone having a similar issue.
Thanks everyone for the help,
Mahboob Mohammed