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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
NewPBIe
Helper II
Helper II

Split multivalue column into a row for each value in the same table

Hello everybody. 

 

From this table:

id

Multivalue
1A, B
2A
3B
4A, B, C
5

C

 

I need this table:

idValue
1A
1B
2A
3B
4

A

 

and so on. Thank you!

1 ACCEPTED SOLUTION
Arul
Super User
Super User

@NewPBIe ,

In Power query editor try the below steps,

1. Split the multivalue column by comma delimiter by selecting split at Each occurrence of the delimiter,

Arul_1-1677062105488.png

2. Select the id column and do a right click and then do Unpivot Other Columns,

Arul_2-1677062214847.png

3. Delete the attribute column to get the desired output,

Arul_3-1677062287038.png

Arul_4-1677062304013.png

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

2 REPLIES 2
Arul
Super User
Super User

@NewPBIe ,

In Power query editor try the below steps,

1. Split the multivalue column by comma delimiter by selecting split at Each occurrence of the delimiter,

Arul_1-1677062105488.png

2. Select the id column and do a right click and then do Unpivot Other Columns,

Arul_2-1677062214847.png

3. Delete the attribute column to get the desired output,

Arul_3-1677062287038.png

Arul_4-1677062304013.png

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Thank you @Arul!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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