Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
78 | |
65 | |
60 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |