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!
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"})
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 |
|---|---|
| 16 | |
| 12 | |
| 9 | |
| 7 | |
| 6 |