Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I need to convert this table:
| question_text | answer | id_event |
| ABC | OPL | 1 |
| GHI | UIL | 1 |
| DEF | LLK | 1 |
Into:
| id_event | ABC | GHI | DEF |
| 1 | OPL | UIL | LLK |
I have tried:
Table.Pivot(#"Previous Step", List.Distinct(#"Previous Step"[question_text]), "question_text", "answer")
But this is returning the error:
Expression.Error: There are too many elements in the enumeration to conclude the operation.
Details:
[List]
Solved! Go to Solution.
Hi @webportal
It's working for me:
= Table.Pivot(#"Encabezados promovidos", List.Distinct(#"Encabezados promovidos"[question_text]), "question_text", "answer")
I have put this:
The error will drop if your resulting table contains duplicated column names. Some topics treat it: https://community.fabric.microsoft.com/t5/Power-Query/There-were-too-many-elements-in-the-enumeratio...
Hi @webportal
It's working for me:
= Table.Pivot(#"Encabezados promovidos", List.Distinct(#"Encabezados promovidos"[question_text]), "question_text", "answer")
I have put this:
The error will drop if your resulting table contains duplicated column names. Some topics treat it: https://community.fabric.microsoft.com/t5/Power-Query/There-were-too-many-elements-in-the-enumeratio...
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 7 | |
| 5 | |
| 5 | |
| 3 |