Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
We have a column capturing data in below format. Is it possible to split the text and numbers in 2 different columns in power query editor?
ABC |
1 |
2 |
Bhy |
3 |
Solved! Go to Solution.
r = Table.TransformColumns(
Source,
{"ABC", (x) =>
[num = try Number.From(x) otherwise null,
txt = if num = null then x else null]}
),
expand = Table.ExpandRecordColumn(r, "ABC", {"num", "txt"})
Hi,
Another solution
= Table.SplitColumn(
Source,
"ABC",
(x) => if Value.Is(x, type number) then {x,null} else {null,x},
{"Num", "Text"}
)
Stéphane
Hi,
Another solution
= Table.SplitColumn(
Source,
"ABC",
(x) => if Value.Is(x, type number) then {x,null} else {null,x},
{"Num", "Text"}
)
Stéphane
Thank you very much!! It worked!
r = Table.TransformColumns(
Source,
{"ABC", (x) =>
[num = try Number.From(x) otherwise null,
txt = if num = null then x else null]}
),
expand = Table.ExpandRecordColumn(r, "ABC", {"num", "txt"})
Check out the July 2025 Power BI update to learn about new features.