Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

String Function

Is there a string function to convert my string of type servername.na.corp.companyname to servername.

I have to delete the .na.corp.companyname part.

10 Replies
Not applicable
Author

Please try this:


if(isnum(Subfield(YOURFIELD, '.',1)), trim(replace(YOURFIELD,'.sa.corp','')), Subfield(YOURFIELD, '.',1))


This should work