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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Zuy_NA
Regular Visitor

Combine column

Dear @HotChilli ,

Please help me to transfer data like this:

ClassName1Name2Name3Name4Name5Score1Score2Score3Score4Score5
1A    6    
2B    7    
3CA   89   
4DABCA53437

Into:

ClassNameScore
1A6
2B7
3C8
3A9
4D5
4A3
4B4
4C3
4A7

 

Thanks,

Best regards,

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

Hello @Zuy_NA 

 

In Power Query, select the Class column and 'Unpivot other columns'.

Filter out the blank values in the Values column (use the dropdown).

Use 'split by delimiter' on the attribute column (Using 'By Non-digit to digit').

Select the 'Attribute1' column and choose Pivot from the Transform menu. Choose Value for the Values column and 'Don't aggregate' from the Advanced section. 

View solution in original post

1 REPLY 1
HotChilli
Super User
Super User

Hello @Zuy_NA 

 

In Power Query, select the Class column and 'Unpivot other columns'.

Filter out the blank values in the Values column (use the dropdown).

Use 'split by delimiter' on the attribute column (Using 'By Non-digit to digit').

Select the 'Attribute1' column and choose Pivot from the Transform menu. Choose Value for the Values column and 'Don't aggregate' from the Advanced section. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.