@Ankur Bawiskar 
But I have a variable X and based on the values of X the choices of Y variable should display. But the choices of Y is different for group A and non group A members.