I have the following template I am trying to upload-
This is giving me an output like -

This should come like -
How can i change the RTF template to get the desired output ?
Problem 1: Ending with incorrect tags
You are beginning with a <?for-each-group?> but ending with an <?end for-each?>. Change to <?end for-each-group?>.
Problem 2: Merged/Split cells
"For" loops should be for an entire row. They get really messy and unpredictable when you use them with merged and/or split cells. You can nest the for loops inside one another, but make sure they include entire line. Like this:
