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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
DebbieE
Community Champion
Community Champion

Split a column with items into rows when you don't know how many items there could be

I have the following column in some data (and at the moment I have to transform using Power Query Editor

 

Data ID       IDs

1                 1;44;55;66

2                  3;4;5;6;7;8;9;20;22

3                  2;21;23

4                  10

 

And you dont know how many there will be for each record. And I want to pivot to this

 

Data ID       IDs

1                 1

1                 44

1                 55

1                 66

2                  3

2                4

2                5

2                6

2                7

2                8

2                9

2                20

2                22

3                2

3                21

3               23

4              10

 

But I can't split rows because I dont know how many columns there could be so i dont know how many to pivot on. Has anyone got a good way of achieving this?

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

pls try this step

Screenshot_1.png

View solution in original post

3 REPLIES 3
Ahmedx
Super User
Super User

pls try this step

Screenshot_1.png

KRISHP1234
Helper I
Helper I

= Text.Split([IDs], ";")

Yes you got it. 

DebbieE
Community Champion
Community Champion

I think I have it.

 

create custom column 

= Text.Split([IDs], ";")

And then expand the list 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.