- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Pivot table with multiple values
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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...

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
05-24-2024 05:52 AM | |||
12-05-2023 08:46 AM | |||
05-21-2024 04:55 AM | |||
06-18-2024 02:50 AM | |||
06-03-2024 02:35 PM |