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
GarryFarrell
Advocate III
Advocate III

Unpivot issue

 

Hi,

 

I have files that have different data on the rows. See original file format below. I have multiple files loaded in my PBX file so far. I have created a Category column which I want to use as the column headings. My issues is that when I unpivot I never get whay I need. I required the format on the right 'Required Format'.

 

 

Capture.PNG

 

2 ACCEPTED SOLUTIONS
Capstone
Resolver I
Resolver I

In the Query editor select the Category column, then under the Transform->Any Column sub menu click Pivot Column.

 

In the dialog box that appears change the Values Column to "Column1" from the drop down box

 

Click on advanced options and choose "don't aggrgate" from the Aggregate Value Function drop down box.

 

You should get the desired output.

 

Abhi

View solution in original post

Hi,

 

I think I have solved your problem. Made a video, let me know if it works,

 

http://www.filedropper.com/groupfrommultipletextfiles

 

 

View solution in original post

8 REPLIES 8
Capstone
Resolver I
Resolver I

In the Query editor select the Category column, then under the Transform->Any Column sub menu click Pivot Column.

 

In the dialog box that appears change the Values Column to "Column1" from the drop down box

 

Click on advanced options and choose "don't aggrgate" from the Aggregate Value Function drop down box.

 

You should get the desired output.

 

Abhi

Thank you.

 

I was using the right click pop-up menu and I could not find the pivot functionality which I needed. However, you answer showed me that it is on the Transform menu and not in the pop-up menu.

Have edited my post to include the location of the Pivot Column option. Cheers.

 

I got the pivot to work. However when there are two sets of data in a file then I get an error "There were too many elements in the enumeration to complete the operation". This happens because there are now duplicates in the Source.Name and the Category columns. I only get the error for file1. I have tried to add an index column which removes the error but the data is then on different rows. I was thinking if instead of an index column maybe a row number for each file might help.

 

Capture1.PNG

Hi,

 

I think I have solved your problem. Made a video, let me know if it works,

 

http://www.filedropper.com/groupfrommultipletextfiles

 

 

Anonymous
Not applicable

Hi,

Could you please share the link (Report Directly). The video link what you sent is not visible.

 

Wow. Nice one. Thanks you saved me. Perfect.

 

 

 

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
Top Kudoed Authors