Can you share the template with me? What means "it does not work as expected" - can you explain exactly what you are trying to achieve.
I have sent report template to you on mail.
Were you able to find a resolution to this issue? If so, would you mind adding a reply to this thread detailing the solution and marking it as the "Correct Answer" to increase visibility?
If you still need help, just let us know and we would be happy to continue working with you.
I also updated the tags on this thread to make it easier to search.
I went ahead and marked this as "Assumed Answered" as it appears that this was resolved offline.