For above format - You can try like this
1.you need to create parameter - Select String - List add 2 fields.
2.You can create one calculated field with Case, add your fields.
3. Apply that particular field in Columns.
4. Show parameter control.
i am new to tableau so could you give me a more thorough guide to do this?