Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello everyone,
I wish to extract specific values in a column to a new column. The rule is that the values need to start with 75 or 76 and can have maximum of 10 digits. Examples below should make it clear.
Input | Result |
PO: 7500013234 - SO -12832 | 7500013234 |
SO117934 PO-7500012312 | 7500012312 |
PN; 15800-024A/7600012040 | 7600012040 |
PO7500012030 -SO-12312 | 7500012030 |
Kindly help. I would need this on Power Query.
Thank you.
Solved! Go to Solution.
Try this custom column in Power Query:
if Text.PositionOf([Input], "75") <> - 1 then
Text.Middle([Input], Text.PositionOf([Input], "75"), 10)
else if Text.PositionOf([Input], "76") <> - 1 then
Text.Middle([Input], Text.PositionOf([Input], "76"), 10)
else
null
Proud to be a Super User!
Try this custom column in Power Query:
if Text.PositionOf([Input], "75") <> - 1 then
Text.Middle([Input], Text.PositionOf([Input], "75"), 10)
else if Text.PositionOf([Input], "76") <> - 1 then
Text.Middle([Input], Text.PositionOf([Input], "76"), 10)
else
null
Proud to be a Super User!
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
90 | |
86 | |
83 | |
64 | |
49 |
User | Count |
---|---|
127 | |
108 | |
88 | |
70 | |
66 |