I have a table with the below results.
+------------+----------+-----+-----+-----+-----+-----+ | department | location | q1 | q2 | q3 | q4 | q5 | +------------+-