Forum Discussion
alfredorhz
2 years agoHelper I
Extract text from string
HI Community I have a string, that I get from a PowerShell script, This script creates a report from SharePoint page views, so, in the context of the information the audit data has a very large stri...
- 2 years ago
Thanks guys
I resolve this with a dax,Extract =var fin = LEFT(Table[AuditLog], SEARCH("http",Table[AuditLog])-1)var Lentf = LEN(fin)var Midd = MID(Table[AuditLog], Lentf, 250)
#This is a delimiter before .aspx or .pdf acces file
var http = SEARCH(",", Midd)returnLEFT(Midd, http)
alfredorhz
2 years agoHelper I
Thanks guys
I resolve this with a dax,
Extract =
var fin = LEFT(Table[AuditLog], SEARCH("http",Table[AuditLog])-1)
var Lentf = LEN(fin)
var Midd = MID(Table[AuditLog], Lentf, 250)
#This is a delimiter before .aspx or .pdf acces file
var http = SEARCH(",", Midd)
#This is a delimiter before .aspx or .pdf acces file
var http = SEARCH(",", Midd)
return
LEFT(Midd, http)