Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello,
I have a data range of approximately 2,000 rows, each containing the supplier number followed by the name.
The table is structured using this same logic throughout.
I would like to transform this column into two columns with the number and the name.
I have two methods that work, but I would like to optimise them with fewer steps.
If possible, I would also like to see one or two other methods suggested.
I am attaching a small sample file.
Thanks in advance
Best regards
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
group = Table.Group(
Source,
"List",
{"fx", (x) => Record.FromTable(Table.SplitColumn(x, "List", Splitter.SplitTextByEachDelimiter({" "}), {"Name", "Value"}))},
GroupKind.Local,
(s, c) => Number.From(Text.StartsWith(c, "Supplier"))
),
z = Table.FromRecords(group[fx])
in
z
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
result = Table.FromList(
List.Split(Table.ToList(Source, (x) => Text.AfterDelimiter(x{0}, " ")), 2),
(x) => x,
{"Supplier", "Name"}
)
in
result
Hi @Mederic
Here's one suggestion:
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"List", type text}}),
#"Split List" = List.Split(#"Changed Type"[List],2),
#"Extract Text" = List.Transform(#"Split List", each { Text.AfterDelimiter(_{0},"Supplier "), Text.AfterDelimiter(_{1},"Name ") } ),
#"Convert to Table" = Table.FromList(#"Extract Text", each _, type table[Supplier = text, Name = text])
in
#"Convert to Table"
List.Split is used to partition the list into pairs.
Depending on the source, there might be some need to ensure original row order is preserved when the list is split.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 16 | |
| 12 | |
| 11 | |
| 7 | |
| 6 |