• why can't you just put

    Dataset2:

    Select *

    from MyTable

    Where Period = @EndPeriod;

    ?