Say I have a csv file with following data format:
ID, Name, Gender, Q1
1, ABC, Male, "A1;A2"
2, ACB, Male, "A2;A3;A4"
3, BAC, Female, "A1"
I would like to transform it into following format so that my data virtualization tool can process it properly:
ID, Name, Gender, Questions, Responses
1, ABC, Male, Q1, A1
1, ABC, Male, Q1, A2
2, ACB, Male, Q1, A2
2, ACB, Male, Q1, A3
2, ACB, Male, Q1, A4
3, BAC, Female, Q1, A1
Using Text to Columns feature in LibreOffice I can easily separate Q1 column A1;A2 into different columns like A1, A2, but I am stuck at transposing and repeating rows.
Additional Info:
Data is collected via Google Form, unfortunately google spreadsheets store multiple choice question responses in one cell using semicolon-separator like
A1;A2;A3..., while my visualization tool cannot see this underlying data structure, only treat them as a single string, making aggregation/grouping difficult.In the actual data (survey results) I have around 5000 entries, each with multiple cells that require such processing, which will result in a table of around 100,000 entries. A way to automate the transformation is needed.
The tool I use to analyze/visualize data is "Tableau Public", they have a data reshaper plugin for Excel that semi-automate such tasks (see section Make sure each row contains only one piece of data), but no LibreOffice alternative.