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.
Hi there!
I have a messy column that I need to split off the first instance of digit (the number of digits differs by each row) and leave the rest of the cell contents as is.
I tried to Split Column Digit to Non Digit which is almost there, but it splits off at every instance of digit (ie. will extend to 4 or more custom columns).
Example:
Any ideas?
Thanks 🙂
Solved! Go to Solution.
hi, @JNelson
let
Source = table_with_messy_column,
chars = List.Buffer({"a".."z", "A".."Z", " "}),
split = Table.SplitColumn(
Source, "Logistics",
(x) => Splitter.SplitTextByPositions(
{0, List.PositionOfAny(Text.ToList(x), chars, Occurrence.First)}
)(x),
{"Custom", "Custom.1"}
)
in
split
hi, @JNelson
let
Source = table_with_messy_column,
chars = List.Buffer({"a".."z", "A".."Z", " "}),
split = Table.SplitColumn(
Source, "Logistics",
(x) => Splitter.SplitTextByPositions(
{0, List.PositionOfAny(Text.ToList(x), chars, Occurrence.First)}
)(x),
{"Custom", "Custom.1"}
)
in
split
Hi @AlienSx ,
May be a silly question, but how do I insert that into my existing Advanced Editor?
My last step is currently #"Removed Other Columns". I think I'm getting confused because this looks like an entire editor (with the let and in parts).
Thanks!
Thank you! Got it.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
10 | |
7 | |
6 | |
6 | |
6 |