Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Transpose or Pivot table

Hi

 

My Data is a table that has two column's, a user name and their type.  I want to take this information and flip it so I have new columns based on the User Type values, in my case there are just two.  The Pivot options works, I get the headings, but as i don't add any aggregation I get an error.

 

Start and Result table:

StartStartResultResult

 

The smaller tabel is waht I am trying to aim for.

 

Chris

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @Anonymous ,

 

I believe this is due to the fact that your data configuration provides no relationship between the names for PQ to be able to assign them together on a single row under the new headings.

 

This thread explains it pretty well, I think:

https://community.powerbi.com/t5/Power-Query/There-were-too-many-elements-in-the-enumeration-to-comp... 

 

One user suggests to add an index before performing the pivot which is actually pretty smart as it visualises the problem quite nicely:

BA_Pete_0-1634041194963.png

 

You can see where PQ is struggling: it can't correctly allocate two names to the same row as they have no relationsip to one another in the original table.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Hi @ccarpent ,

 

I believe this is due to the fact that your data configuration provides no relationship between the names for PQ to be able to assign them together on a single row under the new headings.

 

This thread explains it pretty well, I think:

https://community.powerbi.com/t5/Power-Query/There-were-too-many-elements-in-the-enumeration-to-comp... 

 

One user suggests to add an index before performing the pivot which is actually pretty smart as it visualises the problem quite nicely:

BA_Pete_0-1634041194963.png

 

You can see where PQ is struggling: it can't correctly allocate two names to the same row as they have no relationsip to one another in the original table.

 

Pete

BA_Pete
Super User
Super User

Hi @Anonymous ,

 

I believe this is due to the fact that your data configuration provides no relationship between the names for PQ to be able to assign them together on a single row under the new headings.

 

This thread explains it pretty well, I think:

https://community.powerbi.com/t5/Power-Query/There-were-too-many-elements-in-the-enumeration-to-comp... 

 

One user suggests to add an index before performing the pivot which is actually pretty smart as it visualises the problem quite nicely:

BA_Pete_0-1634041194963.png

 

You can see where PQ is struggling: it can't correctly allocate two names to the same row as they have no relationsip to one another in the original table.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Anonymous
Not applicable

Hi

 

Your right, I need to rethink the problem, thanks for the quick response.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors