Hi,
it was not working properly. But i guess i figured it out. I did an extra step in the subreport. You need to use interactive filter in the subreport. I selected the result object to be filtered and the parameter i just created and which is getting the values from main report.
Regards,
Martin Zluky