What is best to solve this issue?

@vinaymaurya84, maybe the best and easiest option would be to use the repeat group.

BTW, I also advise you to use the coalesce function to overcome the non-response variables by following this post discussed previously: