@bjrmatos Thanks for your explanation. I hope you understood, why I used the "Nested table" term for this layout?
If you can show me the example to render another table within the table cell with the condition then it will work for me.
Note: The screenshot uploaded above was rendered using jsreport itself without using the dynamic columns feature. I am just facing an issue with the condition. If you can provide me an example to render a table within the cell or merged cell, then it will be great for me.