Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
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"})
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 7 | |
| 4 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 11 | |
| 10 | |
| 7 | |
| 6 |