We are using Time depenedent Hierarchy structures.
year and period will be entered by the user in the query
Is there any simple solution where in based on the User entered year and period, corresponding hierarchy should be used in the query execution.