I have a survey data where the questions are column names are [Question1], [Question2], [Question3] and response is the row value.
The ResponseID is unique and has one row per table.I wanted to unpivot the data where I have more than one response ID and the questions and responses are recorded in separate columns.I tried the below query but the Question name is not appearing in the dataset. Appreciate the support.Thank you
SELECT [Response Id],[Date Created], Question
FROM(
SELECT [Response Id], [Date Created],[Question1],
[Question2], [Question3]
FROM dbo.surveys) AS cp UNPIVOT (Question FOR Questions IN (,[Question1],[Question2],[Question3]
) AS up;
Can this be handled directly in tableau?