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
mt599t
Frequent Visitor

How to transpose values with Power Query in a column using a separator

Hi everyone,

 

I hope some could help us to make the following transformation

 

We have a file that has a column called "role", but some of these roles ar concatenated in a single column and they are separated by a "/". 

 

mt599t_0-1658432381253.png

 

We need to create a transformation in PowerQuery (or DAX) that creates the following output:

 

mt599t_1-1658432654634.png

 

Basically we need to count de number of separators and create rows bellow the current row and then transpose the roles and drag all other columns until the next one and so on.

 

Does anyone knows how to archive this?  This would really help us Thank you.

 

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

Split the column by delimiter (using /) and there's an extra option under Advanced which is Split into Rows

View solution in original post

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

You seem to understand the subject really well.

HotChilli
Super User
Super User

Split the column by delimiter (using /) and there's an extra option under Advanced which is Split into Rows

Wow that was easy, Thank you!

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.