Forum Discussion
maurcoll
Helper IV
2 years agocreating a dimension table from multiple columns in a fact table
Good morning
i am trying to look at some survey data. I have a question that is multiple select answers. Each answer appears in a separate column in my table. (It is an external data source).
what i need to do is to merge them into one column, so i can say 10% prefer option a compared to 5% prefer option c, as it is multiple choice some people have selected more than one answer
Is there a way of doing this? or if not any suggestions as the best way to show this
| ID | Q1 option a | Q1 option b | Q1 option c | Q1 option d | Q1 option e |
| 1 | 1 | 1 | 1 | 0 | 0 |
| 2 | 0 | 0 | 1 | 1 | 0 |
| 3 | 0 | 0 | 0 | 0 | 1 |
Thank you