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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Femke_DPG
Contributor III
Contributor III

How to isolate text before numbers in string

Hi all

I want to isolate the name in the string before the 'point': FIRSTNAME.LASTNAME1.5431581498658286E12

I am using this: 

Left(accountmanager, If(FindOneOf(accountmanager, '0123456789') > 0, FindOneOf(accountmanager, '0123456789'), Len(accountmanager)))

But then I get:

FIRSTNAME.LASTNAME1 (I want to eliminate the '1') and just recover the name. 

 

Thx!

Femke

Labels (1)
1 Solution

Accepted Solutions
Mark_Little
Luminary
Luminary

Hi Review the Subfield function.

Try Somthing like

SUBFIELD(accountmanager,'.',1) as FirstName

SUBFIELD(accountmanager,'.',2) as SurnameName

IF you want to remove a number of the end

LEFT(SUBFIELD(accountmanager,'.',2),LEN(SUBFIELD(accountmanager,'.',2))-1) as SurnameName

View solution in original post

2 Replies
Mark_Little
Luminary
Luminary

Hi Review the Subfield function.

Try Somthing like

SUBFIELD(accountmanager,'.',1) as FirstName

SUBFIELD(accountmanager,'.',2) as SurnameName

IF you want to remove a number of the end

LEFT(SUBFIELD(accountmanager,'.',2),LEN(SUBFIELD(accountmanager,'.',2))-1) as SurnameName

sk002
Contributor
Contributor

Can you add a sample dataset ?