Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
The data is in this format (shortened for simplicity, but there are 20+ questions/corrections and additional identifying columns):
| Manager | Date | Region | Site Name | Question 1 | Correction | Question 2 | Correction | Question 3 | Correction |
| John Smith | 1/15/2023 | West | ABC Facility | No | Fix XYZ | Yes | No | Call Locksmith | |
| George Foreman | 1/23/2023 | Southeast | 123 Plant | Yes | No | Fix Signage | Yes |
The response for each question is Yes or No. If No is selected, a correction is filled out. (For example: Is the fire extinguisher working? If no is selected, the correction next to the question would be "Fix fire extinguiser") If Yes, Correction is left blank.
I need to transform the above data to the following format in preparation for a Power Automate import to a SharePoint list:
| Site Name | Correction | Date | Region | Manager |
| ABC Facility | Fix XYZ | 1/15/2023 | West | John Smith |
| ABC Facility | Call Locksmith | 1/15/2023 | West | John Smith |
| 123 Plant | Fix Signage | 1/23/2023 | Southeast | George Foreman |
If there is a correction, then it needs to extracted into its own row accompanied by the identfiying columns (site name, date, etc.)
I tried a column to row transformation and pivoting the Correction columns but I can't get it to look the way I want. Any ideas? Thank you!
Solved! Go to Solution.
Hi @hazwoper ,
You could try unpivotting columns.
Select the following columns, and then click "Unpivot Other Columns".
Filter out "Yes", "No" and blank.
Remove the Attribute column and below is your expexted result.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @hazwoper ,
You could try unpivotting columns.
Select the following columns, and then click "Unpivot Other Columns".
Filter out "Yes", "No" and blank.
Remove the Attribute column and below is your expexted result.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |