If a nominal variable is selected in a data table when you run the analysis, this variable is automatically entered in the Y Variables (Row) field of the Variables tab.
Any variable in the data table with a Weight role is automatically entered in the appropriate field of the Roles tab.