The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
hi,
I have the text string as below from html table.
It has no delimiter, please help me to extrac them into columns as below:
Problem:
Contract: ABCLocation: USADate Start: 2020Date End: 2021Requester: Mr SmithCode: 01
Contract: XYZLocation: AmerciaSDate Start: 01/07/2019Date End: 01/01/2022Requester: Jim BoCode: 0100
Required solution:
Contract Requester Location
ABC Mr Smith USA
XYZ Jim Bo Amercia
I have tried this solution but my dax knowledge is limited and cant make it works.
thanks in advance.
Solved! Go to Solution.
@Anonymous Try these DAX columns:
Contract =
VAR __Start = SEARCH(" ",[Column]) + 1
VAR __End = SEARCH("Location:",[Column])
RETURN
MID([Column],__Start,__End - __Start)
Requestor =
VAR __Start = SEARCH("Requester: ",[Column]) + LEN("Requester: ")
VAR __End = SEARCH("Code:",[Column])
RETURN
MID([Column],__Start,__End - __Start)
Location =
VAR __Start = SEARCH("Location: ",[Column]) + LEN("Location: ")
VAR __End = SEARCH("Date Start:",[Column])
RETURN
MID([Column],__Start,__End - __Start)
@Anonymous Try these DAX columns:
Contract =
VAR __Start = SEARCH(" ",[Column]) + 1
VAR __End = SEARCH("Location:",[Column])
RETURN
MID([Column],__Start,__End - __Start)
Requestor =
VAR __Start = SEARCH("Requester: ",[Column]) + LEN("Requester: ")
VAR __End = SEARCH("Code:",[Column])
RETURN
MID([Column],__Start,__End - __Start)
Location =
VAR __Start = SEARCH("Location: ",[Column]) + LEN("Location: ")
VAR __End = SEARCH("Date Start:",[Column])
RETURN
MID([Column],__Start,__End - __Start)
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
7 | |
7 |