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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
joseluissa001
Frequent Visitor

Range to columns

Hello, good afternoon community, I have a question about how to solve a problem that I have encountered.
I have a file that is filled out with a Microsoft form, these are vehicle inspection procedures for a company but the procedures do not appear in the correct form: I need to get from example 1 to 2. I will be very grateful for your help.

 

example 1 
Clientregistration
BobBPA2222, PMA7777, PLA8888
JoshMAD9878, LDC5475, AAD7369

 

example 1 
Clientregistration
BobBPA2222
BobPMA7777
BobPLA8888
JoshMAD9878
JoshLDC5475
JoshAAD7369
1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcspPUtJRcgpwNAICHYUAX0dzIAAyfBwtgEApVidaySu/OAOoyNfRxdLC3EJHwcfF2dTE3FRHwdHRxdzYzFIpNhYA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Client = _t, registration = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Client", type text}, {"registration", type text}}),
    #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Changed Type", {{"registration", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "registration"),
    #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"registration", type text}})
in
    #"Changed Type1"

View solution in original post

2 REPLIES 2
joseluissa001
Frequent Visitor

Thank you very much, I have to move things but that's how you learn.

Syndicate_Admin
Administrator
Administrator

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcspPUtJRcgpwNAICHYUAX0dzIAAyfBwtgEApVidaySu/OAOoyNfRxdLC3EJHwcfF2dTE3FRHwdHRxdzYzFIpNhYA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Client = _t, registration = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Client", type text}, {"registration", type text}}),
    #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Changed Type", {{"registration", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "registration"),
    #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"registration", type text}})
in
    #"Changed Type1"

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.