Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi,
I would like to extract text from the input string and get the result provided in the output by using Power Query.
input:
hello bd AD-001234 hb
this is AD-3245
output:
AD-001234
AD-3245
Can anyone give me some tips? not using R?
Thank you
Solved! Go to Solution.
Create a Custom Column with this code
List.Select(Text.Split([input]," "), each Text.Contains( _ , "-")){0}
regards
Phil
Proud to be a Super User!
Hi,
What is basis of extraction? Everthing from AD till the next space? Please clarify.
Create a Custom Column with this code
List.Select(Text.Split([input]," "), each Text.Contains( _ , "-")){0}
regards
Phil
Proud to be a Super User!
Any way to add an if statement where if another column has a certain value then apply the extraction
User | Count |
---|---|
141 | |
113 | |
104 | |
78 | |
64 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |