To switch the data items
that are assigned to two roles, drag one item onto another either
by using the buttons in the visualization or by using the fields on
the
Roles tab.
For example, you can
switch the axes of a scatter plot by dragging the measure on the X
axis to the measure on the Y axis.