Using the Qualtrics API connector, I bring in the 'Survey Responses' report that depicts the user's answer to each question. When surfaced using the API, the data is returned with each question/answer as a row (vs. each response as a row as when extracted to Excel). This has the obvious benefit of allowing one to combine multiple surveys in one dataset as the number of columns will always be the same. The difficulty I'm having is how to associate all of the question/answers for a given response by using the answer of one of the questions (in my example 'Dept').
For example, the simple table below depicts how a survey's data is structured In DoMo using the API connector. Because 'Dept' in this case is just one question/row, the only way to associate all of HR's other answers is by the 'ResponseID' as shown.
Example table
SurveyID | ResponseID | Question | Answer |
1 | 45 | Dept | HR |
1 | 45 | Volume | 100 |
1 | 45 | Status | Green |
1 | 45 | Date | 5/3/2019 |
1 | 752 | Dept | Marketing |
1 | 752 | Volume | 175 |
1 | 752 | Status | Yellow |
1 | 752 | Date | 5/3/2019 |
1 | 66 | Dept | Research |
1 | 66 | Volume | 548 |
1 | 66 | Status | Red |
1 | 66 | Date | 5/3/2019 |
1 | 45 | Dept | HR |
1 | 45 | Volume | 125 |
1 | 45 | Status | Yellow |
1 | 45 | Date | 5/4/2019 |
Example desired outcome

I considered using a MySQL data flow to build a table of response IDs and Depts and then join this to the main table but I'm a bit new to MySQL (and DoMo) and wasn't quite sure if this is the way to go.
Any examples or insight much appreciated. Thanks!