Passing the two most recent semesters to a subrepo

Printed From: Crystal Reports Book — Forum Name: Technical Questions

Hello there,
I would like to seek your assistance. i have a report for instructors and the semesters they taught. I have
a column for semester like below

Semester          
Fall 2016     
Fall 2016       
Fall 2016       
Fall 2016       
Fall 2016       
Spring 2016       
Spring 2016
Spring 2016
Spring 2016
Spring 2016
Spring 2016
Spring 2016      
Fall 2015
Fall 2015
Fall 2015
Fall 2015
Fall 2015       
Spring 2015
Spring 2015
Spring 2015
Spring 2015       

I grouped by most recent semester but I would like to view only the two most recent semesters and pass these values to a subreport. e.g in the above case, i just want to pass "Fall 2016" and "Spring 2016" to a subreport. Kindly help.