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
I havae the following table
| ID | DATE | QUESTION | ANSWER |
| 123 | 01/01/2023 | name | jorge |
| 123 | 01/01/2023 | age | 17 |
| 123 | 01/01/2023 | gender | male |
| 456 | 01/02/2023 | name | lara |
| 456 | 01/02/2023 | age | 24 |
| 456 | 01/02/2023 | gender | female |
I want to transform the rows into columns, like this:
| ID | DATE | NAME | AGE | GENDER |
| 123 | 01/01/2023 | jorge | 17 | male |
| 456 | 01/02/2023 | lara | 24 | female |
is an example, the table I have has 19 questions and when I use the dynamic columns option and select the option to not summarize the data, the following error appears:
Expression.Error: There were too many elements in the enumeration to complete the operation.
Details:
[List]
Solved! Go to Solution.
=Table.Pivot(YourTable,List.Distinct(YourTable[QUESTION]),"QUESTION","ANSWER",each _{0}?)
=Table.Pivot(YourTable,List.Distinct(YourTable[QUESTION]),"QUESTION","ANSWER",each _{0}?)
Thank you!!!
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 |