To move dimensions from one axis to another, you can use the drag-and-drop approach:
You can also do so by dragging and dropping dimensions from the Data Layout Panel.
To change the hierarchy of dimensions on an axis, you can use the same drag-and-drop approach.