I think you want to swap dimensions based on the selection in a parameter. The basic example ( Example – Swap Measures Using Parameters - Tableau ) uses measures, but the method is the same.
Hope this answers your question!
example dimension swap.twbx 2.4 MB
Hi Esther, so sorry for replying to you this late, I did figure it out myself later that day, but I really appreciate you sharing a link that shows this step by step and screenshots.