The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello everyone, I am trying to figure out how to extract the text that is enclosed within certain characters. Specifically, I would like to extract the name. Thank you for your help.
<span class="63f561bef77505002913b22d">John Doe</span> |
Solved! Go to Solution.
In Power Query, you can go to Transform > Extract > Text Between Delimiters.
If you need to do it in DAX, then try:
Text Between Quotes =
var startIndex = SEARCH(">", [columnName]) // find the index of the first > character
var remainingText = LEFT([columnName], LEN([columnName]) - startIndex)
var endIndex = SEARCH("<", [columnName]) // find the index of the next quote character (starting from the startIndex)
return LEFT(remainingText, endIndex)
(I haven't tested the code, so you will need to do some tweaking. Hopefully you get the idea)
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
81 | |
75 | |
52 | |
47 |
User | Count |
---|---|
133 | |
124 | |
78 | |
64 | |
61 |