Provide your workings with screen shots...
I don't think so, it is possible
You can modify the where clause of a table type value set to reference another parameter.
By doing so, you can return only the last period or all periods.
(period_name = (select .. from gl_period_statuses where .... *get the last open period logic* )
and :$FLEX$.First_Parameter = 'ALL')
or :$FLEX$.First_Parameter != 'ALL')