Recently I came up with this problem: I have a table with two different codes: COD1 and COD2. I want to create in power bi bar charts and tables with this information but I want to be able to change whether if I want to see them with COD1 or COD2. I have a slicer that gives you the option of which code you want the info be displayed. I've done this before with numeric data types because you can do this with a measure, however I don't know how to make it work with non-numeric columns.
| COD1 | COD2 | Sales |
|---|---|---|
| AA | A10 | 5 |
| AB | B45 | 10 |
| CD | D44 | 20 |
