Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi,
May I know is there any way I could split text before multiple Delimiters in one function?
Original Column | Desired Result |
1 & 5 | 1 |
50 - 1000 | 50 |
1000/2000 | 1000 |
2000&5000 | 2000 |
5000/10000 | 5000 |
Great thanks!
Solved! Go to Solution.
Add a step to extract the text before one of those delimiters, and then modify the code in the formula bar to look like this
= Table.TransformColumns(Source, {{"Column1", each Text.Start(_, Text.PositionOfAny(_, {"&", "/", "-"})), type text}})
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Add a step to extract the text before one of those delimiters, and then modify the code in the formula bar to look like this
= Table.TransformColumns(Source, {{"Column1", each Text.Start(_, Text.PositionOfAny(_, {"&", "/", "-"})), type text}})
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Two follow-on questions:
Thank you,
-Travis
how can this be done with a multiple character string?